Hi all/any,

I applied the 'rescue' patch for shared library breakpoints.  Seems to be OK
for rerunning applications.

However when you recompile a shared library (unloaded when starting the
application but loaded again dynamically with dlopen) and rerun the
application, the debugger reports

warning: Cannot insert breakpoint -2:           -- strange number !
Cannot access memory at address 0x40873710

I am not sure but I have the impression that the address shown above was a
valid address in the previous version of the library but not anymore in the
current compilation.  So Could it be that the address on which the breakpoint
is set is in fact NOT the new address but the old ?

Another thing I find strange in the patch in breakpoint.c is that save_address
is in fact used to remeber the b->address value but b->address is NEVER used
(EXCEPT to set is to (CORE_ADDR)0 and then back to save_address).

Is my conclusion correct ??
Thanx
Wim Delvaux

Reply via email to