in reply to GDB journey into perl internals

I've never used GDB. Does it allow you to place watch statements on breakpoints? If so, and if the address of the unreference scalar is consistant, then put a breakpoint on the return statement from malloc with a watch looking for the breaking address. That should allow you to backtrack to the routine that allocates the SV.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

Replies are listed 'Best First'.
Re^2: GDB journey into perl internals
by cosimo (Hermit) on Mar 17, 2008 at 07:51 UTC

    Good idea! That remembers me my soft-ice sessions of many years ago :-)
    I just don't know how to do that in gdb. Of course, I should RTFM. Maybe I should try ddd once again...