Debugging Core Files Using HP WDB (5900-1573; WDB 6.2; January 2011)
function_a(&one, 32);
}
int function_a(struct st_one *a, int b)
{
function_b(b, a);
}
int function_b(int a, struct st_one *b)
{
function_abort(b, a);
}
int function_abort(struct st_one *a, int b)
{
a->three->b=99;
abort();
}
Sample Program 2
$ cat example2.c
struct st_two {
char *a;
int b;
float c;
char *d;
};
struct st_one {
int one;
char *two;
struct st_two *three;
int *four;
char *five;
};
main()
{
}
Sample Debugging Session
In this example,example.c is compiled and stripped. The program,example2.c, is
compiled with the -g option. The symbol table from example2 is used to debug the
core file that is created by the stripped executable,example, as illustrated in the following
debugging session:
Examples Illustrating Core File Debugging 55