What about add a interface to output the assembly codes follow inferior execution

Pedro Alves pedro@codesourcery.com
Wed Mar 4 22:20:00 GMT 2009


On Wednesday 04 March 2009 22:14:32, Eli Zaretskii wrote:
> > Date: Wed, 4 Mar 2009 13:25:05 -0800
> > From: Doug Evans <dje@google.com>
> > Cc: gdb@sourceware.org, Daniel Jacobowitz <drow@false.org>,         Eli Zaretskii <eliz@gnu.org>, teawater@gmail.com
> > 
> > Ya, extending the disassemble command makes sense to me.
> 
> I don't see how it can make sense that the same command does both
> one-time disassembly and disassemble the next source line each time
> GDB stops.  It's like "print" and "display" -- it's not an accident we
> have 2 different commands there.

Certainly.  I was just pointing out that the "disassembly"
command could have said option.  I had a hook-stop in mind --- if it
had such an option already, the user could could just set a hook-stop
to show the disassembly of the current source line.

> If anything, extending "display" with yet another format specifier, or
> maybe a qualifier for /i, would make much more sense to me.

Of course, I don't disagree.  Daniel surely mentioned "x/i", because
"display" takes the exact same formats as the "x" command does.

-- 
Pedro Alves



More information about the Gdb mailing list