This is the mail archive of the
mailing list for the GDB project.
Re: What about add a interface to output the assembly codes follow inferior execution
On Wednesday 04 March 2009 22:14:32, Eli Zaretskii wrote:
> > Date: Wed, 4 Mar 2009 13:25:05 -0800
> > From: Doug Evans <email@example.com>
> > Cc: firstname.lastname@example.org, Daniel Jacobowitz <email@example.com>, Eli Zaretskii <firstname.lastname@example.org>, email@example.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.