Debugging Core Files Using HP WDB (5900-1573; WDB 6.2; January 2011)
On the contrary, the source line number information is available for core files created
by Itanium-based binaries, irrespective of whether the core file is compiled with the -g
option, or not.
The following examples illustrate how to use the common core file debugging commands
in WDB:
(The examples are based on core files created by PA-RISC 32–bit binaries)
Example 8 Debugging a Core File to Find the Values for Parameters of a Function When
the Program is not Compiled with -g
Sample Program
The sample program used in this example has multiple functions. The
function_abort() function in this program causes the application to abort. This
example illustrates how to debug this core file and find values for the parameters of
function_abort().
Following is the code for the structures in function_abort():
extern int function_abort(struct st_one *, int);
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;
};
.
.
.
Sample Debugging Session
40