This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC][patch] Allow to disassemble line.
On Mon, Oct 19, 2009 at 09:40:30PM +0200, Joel Brobecker wrote:
> Wouldn't it be a problem with targets using MI? Or IDEs that run
> GDB through a pipe (thinking of Windows in this case)?
I hope they don't use the CLI disassemble command; there's been an MI
equivalent for ages. But yes, anything we change could break
anything...
> > (gdb) x/2i main
> > Dump of assembler code for function main:
> > 0x44cce0 (+0): sub $0x28,%rsp
> > 0x44cce4 (+4): movq $0x0,(%rsp)
>
> This one is a little less obviously nice. I have little user-define
> functions such as "ssi" which does "stepi; x /i $pc". Having the
> output fit in a couple of lines would really add clutter in this case
> (IMO).
Good point; I use display/i $pc all the time. And I do find the
offsets useful, just not the function name. I suppose it could be an
option...
--
Daniel Jacobowitz
CodeSourcery