From: Daniel Jacobowitz <drow@mvista.com>
To: gdb@sources.redhat.com
Subject: Re: source with inlined assembly
Date: Sat, 28 Jun 2003 15:21:00 -0000 [thread overview]
Message-ID: <20030628152016.GA8004@nevyn.them.org> (raw)
In-Reply-To: <20030628150159.GA2774@white>
On Sat, Jun 28, 2003 at 11:01:59AM -0400, Bob Rossi wrote:
> Hi,
>
> I am investigating the best way to show the user assembly code via my
> front end called cgdb. It appears that there is a disassemble function
> that will get the assembly code.
>
> Is there any way to nicely show to the user the source with the assembly
> inlined between the source lines? Can I ask gdb for the assembly for 1
> source line of code? Then can I ask it the assembly for every source
> line of code in a file?
>
> What is the mechanism for doing this with a front end? I really want to
> stay away from parsing the output of the disassemble command to try to
> guess which assembly lines go with the source code.
>
> Also, if up till now there is only a disassemble function and this
> doesn't supply a front end with what I am asking for, does this seem
> like a good feature to add to the mi command set?
Please look at the GDB/MI manual, at the "-data-disassemble" command.
It should be exactly what you're looking for.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
prev parent reply other threads:[~2003-06-28 15:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-28 15:20 Bob Rossi
2003-06-28 15:21 ` Daniel Jacobowitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030628152016.GA8004@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox