breakpoint instruction isn't shown in disassemble or examine (x) commands?

Marco Molteni molter@tin.it
Thu Sep 30 19:39:00 GMT 2004


On Thu, 30 Sep 2004 Jim Ingham <jingham@apple.com> wrote:

> gdb will always hide the breakpoint trap from you, and show you the 
> instruction that is actually going to be run when you get to that pc 
> instead.  This is on purpose, it would be very confusing, and not at 
> all helpful, for folks to see trap instructions showing up in their 
> disassembly.
> 
> Is there some reason, other than curiosity, the leads you to want to 
> see the trap there?

No, just curiosity and looking for confirmation of what I am doing ;-)

> If you are just curious, try running gdb with:
> 
> (gdb) set debug target 1
> 
> You can see gdb copy out the actual instruction and lay down the
> traps, and lots of other things you may or may not want to know
> about...

that is what I was looking for I think. Thanks.

marco



More information about the Gdb mailing list