This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]