From: teawater <teawater@gmail.com>
To: tromey@redhat.com, Eli Zaretskii <eliz@gnu.org>,
Doug Evans <dje@google.com>,
Pedro Alves <pedro@codesourcery.com>,
Daniel Jacobowitz <drow@false.org>
Cc: gdb ml <gdb@sourceware.org>
Subject: Re: What about add a interface to output the assembly codes follow inferior execution
Date: Thu, 05 Mar 2009 02:42:00 -0000 [thread overview]
Message-ID: <daef60380903041841j5c8a30e0geda537ade3df2032@mail.gmail.com> (raw)
In-Reply-To: <m3prgwg8le.fsf@fleche.redhat.com>
Thanks guys,
For the people that want extend disassemble:
Output assembly codes of next-line is just one part of this idea.
We still have another part:
1. Auto mode, output assembly codes only if there is not line message
for current pc.
For example:
(gdb) si
0x080483ee 24 b = printf ("a = %d b = %d c = %d\n", a, b, c);
(gdb) si
0x080482d8 in printf@plt ()
Current language: auto; currently asm
0x080482d8 <printf@plt+0>: jmp *0x8049670
(gdb) si
0x080482de in printf@plt ()
0x080482de <printf@plt+6>: push $0x10
I think maybe is can be default option of gdb. Add it to display with itself?
2. Output assembly codes number limit.
This idea form Doug:
Also, the user might want to set a limit on the number of lines of
disassembly displayed.
If cut short gdb could print "[output cut short due to `set
dissemble-next-line-max 10']" (or some such).
I think maybe it need output something like "This message is cut ...
you can set it with ...".
3. Special for optimized code.
This idea form Doug too:
For debugging optimized code, maybe it'd be nice if gdb determined
there were more (discontiguous) lines of disassembly to display for
the current source line and notified the user (by printing
"discontiguous source line" or some such) before and/or after the
output.
I think maybe is too much thing for disassemble.
Thanks,
Hui
On Thu, Mar 5, 2009 at 07:40, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Daniel" == Daniel Jacobowitz <drow@false.org> writes:
>
>>> Right, I thought about something that begins with "disassemble", but
>>> didn't want to shoot our completion habits in the foot, since
>>> currently typing just "disas TAB" is all I need to get disassembly.
>
> Daniel> I agree we don't want to change that binding (I use it all the time).
> Daniel> But is it a problem? This would be under set, if I understand right.
>
> Yeah, this sounds reasonable to me.
> I'd prefer to have some word like "disassemble" in the parameter name.
>
> Tom
>
prev parent reply other threads:[~2009-03-05 2:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-03 3:11 teawater
2009-03-03 16:42 ` Doug Evans
2009-03-03 17:04 ` Daniel Jacobowitz
2009-03-04 2:29 ` teawater
2009-03-04 4:09 ` Eli Zaretskii
2009-03-04 5:30 ` teawater
2009-03-04 17:15 ` Doug Evans
2009-03-04 19:09 ` Eli Zaretskii
2009-03-04 19:20 ` Pedro Alves
2009-03-04 22:10 ` Eli Zaretskii
2009-03-04 19:24 ` Doug Evans
2009-03-04 19:26 ` Daniel Jacobowitz
2009-03-04 19:32 ` Pedro Alves
2009-03-04 21:25 ` Doug Evans
2009-03-04 22:14 ` Eli Zaretskii
2009-03-04 22:20 ` Pedro Alves
2009-03-04 22:31 ` Doug Evans
2009-03-04 23:41 ` Tom Tromey
2009-03-05 2:42 ` teawater [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=daef60380903041841j5c8a30e0geda537ade3df2032@mail.gmail.com \
--to=teawater@gmail.com \
--cc=dje@google.com \
--cc=drow@false.org \
--cc=eliz@gnu.org \
--cc=gdb@sourceware.org \
--cc=pedro@codesourcery.com \
--cc=tromey@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