Hi,
I am debugging with gdb a huge program on HP-UX. It has a very strange behaviour and I could not identify the cause. Have a look at this for example:
(gdb) c
Continuing.
Breakpoint 2, CExtract::extractDAT (this=0x80000001007bb9d8, user=@0x80000001004d4670) at Extract.cpp:1761
1761 meas.getSumMethodName ( sCol.meas_sum_method_name );
(gdb) p &meas
$9 = (class CMeasurement *) 0x800003ffbfb1f358
(gdb) s
CMeasurement::getSumMethodName (this=0x800003ffbfb20198, sum_method_name=@0x800003ffbfb204d0) at Measurement.cpp:1020
1020 sum_method_name = m_sum_method_name;
(gdb)
I'm printing the address of meas before calling meas.getSumMethodName. After stepping inside the method, gdb prints the value of "this". Shouldn't "this" inside CMeasurement::getSumMethodName have the same value as &meas?
If yes, any idea why it doesn't?