[Info-vax] Debugging shareable images on Integrity
glen herrmannsfeldt
gah at ugcs.caltech.edu
Fri Apr 24 16:06:55 EDT 2009
jcwoman1963 at hotmail.com wrote:
> I wish I could post code for you guys, but this is a small but
> integral piece of a very large system. One of my coworkers commented
> that he often pulls the code out of the shareable image and copies it
> into his local application when he needs to debug, but it's alot of
> work and he usually ends up quadrupling the size of his program just
> to debug something. I can do that, but would like to avoid it if at
> all possible. So nobody here has come across this odd behavior
> before?
Many debuggers work by modifying the code in memory. Putting a
trap instruction at a breakpoint, which then allows the debugger
to take control, replace the instruction and put a trap after
it, or execute it somewhere else. In any case, that doesn't
work so will with sharable code.
-- glen
More information about the Info-vax
mailing list