Hi all,
I have a corefile from a C++ executable on HP-UX. The only information I can retrieve from the coredump using GDB/WDB is "where"(the coredump occured). What I want to find out is the value of certain variables in one of the calling functions.
This is part of what "where" gives me:
(gdb) where
#0 0xc0183648 in mallinfo () from /lib/libc.2
#1 0xc01860f4 in free () from /lib/libc.2
#2 0x1c958 in TopcomInterface::getData (this=0x400b0720, name=@0x400c9118,
header=0x4007d6e0, buffer=@0x7a0a1210, len=0x7a0a1214)
Looks like it may be trying to free buffer that is not allocated. I want to read the variable "buffer" at location 0x7a0a1210 that u can see stated by gdb above.
Does anyone know how to read corefile and retrieve variable data? Can I read value from a particular memory location ?
What all do I get from the "$ strings -a <corefile>" command?
HELP!!!!
I have a corefile from a C++ executable on HP-UX. The only information I can retrieve from the coredump using GDB/WDB is "where"(the coredump occured). What I want to find out is the value of certain variables in one of the calling functions.
This is part of what "where" gives me:
(gdb) where
#0 0xc0183648 in mallinfo () from /lib/libc.2
#1 0xc01860f4 in free () from /lib/libc.2
#2 0x1c958 in TopcomInterface::getData (this=0x400b0720, name=@0x400c9118,
header=0x4007d6e0, buffer=@0x7a0a1210, len=0x7a0a1214)
Looks like it may be trying to free buffer that is not allocated. I want to read the variable "buffer" at location 0x7a0a1210 that u can see stated by gdb above.
Does anyone know how to read corefile and retrieve variable data? Can I read value from a particular memory location ?
What all do I get from the "$ strings -a <corefile>" command?
HELP!!!!