Debugging Core Files Using HP WDB
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:
44