This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: breakpoint instruction isn't shown in disassemble or examine(x) commands?
- From: Marco Molteni <molter at tin dot it>
- To: Jim Ingham <jingham at apple dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 30 Sep 2004 21:37:35 +0200
- Subject: Re: breakpoint instruction isn't shown in disassemble or examine(x) commands?
- References: <1096526181.3491.ezmlm@sources.redhat.com><73118E63-1306-11D9-85DF-000A958F4C44@apple.com>
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