From: Tom Tromey <tromey@redhat.com>
To: Lluís <xscript@gmx.net>
Cc: David Reitter <david.reitter@gmail.com>,
Stefan Monnier <monnier@iro.umontreal.ca>,
"emacs-devel@gnu.org devel" <emacs-devel@gnu.org>
Subject: Re: Gdb in emacs 24
Date: Wed, 19 Oct 2011 07:38:42 -0600 [thread overview]
Message-ID: <m3zkgx2ja5.fsf@fleche.redhat.com> (raw)
In-Reply-To: <87k481gma9.fsf@ginnungagap.bsc.es> ("Lluís"'s message of "Wed, 19 Oct 2011 15:10:06 +0200")
>>>>> "Lluís" == Lluís <xscript@gmx.net> writes:
Lluís> * interpreter-exec mi <command>
Lluís> Execute each command under the MI interpreter, even if the user
Lluís> did not actually set it up in the cmdline.
Lluís> Even if not optimal, the cost of setting the interpreter on a
Lluís> per-command basis (as opposed to setting the current
Lluís> interpreter for all future commands) should not have a
Lluís> noticeable impact on performance.
I think the drawback is that you don't get MI notifications for commands
entered by the user.
What I mean by notifications is, e.g., if the user types "break main",
the current gdb will inform the MI consumer:
&"break main\n"
~"Breakpoint 1 at 0x485fb3: file ../../archer/gdb/gdb.c, line 30.\n"
=breakpoint-created,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000485fb3",func="main",file="../../archer/gdb/gdb.c",fullname="/home/tromey/gnu/archer/archer/gdb/gdb.c",line="30",times="0",original-location="main"}
^done
Lluís> * What to do if the user ever passed "-i=tui" in the gdb cmdline
Lluís> (which seems to make MI unusable even through
Lluís> "interpreter-exec").
Yeah, that will just fail. There's no reason to use the TUI and Emacs
at the same time, it doesn't make sense. Maybe we could disable the TUI
if $EMACS is set.
Lluís> * Should user-issued commands in the gdb buffer use the mi or console
Lluís> interpreter?
Lluís> If it were mi, no problems, apply same approach as above. If it
Lluís> were the console interpeter (append "-i=console" when starting
Lluís> gdb; see above), there would still be a need for the
Lluís> "interpreter-exec" command.
I think you'd have to use interpreter-exec to get the notification
behavior.
So, maybe this can all be done with no changes on the gdb side. Worth a
try.
Tom
next prev parent reply other threads:[~2011-10-19 13:38 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-08 8:07 Gdb in emacs 24 Andrea Crotti
2011-03-08 8:56 ` Eli Zaretskii
2011-10-05 21:55 ` David Reitter
2011-10-06 5:52 ` Eli Zaretskii
2011-10-06 10:45 ` David Reitter
2011-10-06 11:25 ` Eli Zaretskii
2011-10-06 13:37 ` David Reitter
2011-10-06 14:55 ` Chong Yidong
2011-10-06 18:07 ` Eli Zaretskii
2011-10-06 20:00 ` David Reitter
2011-10-06 20:07 ` Stephen J. Turnbull
2011-10-06 20:45 ` Eli Zaretskii
2011-10-07 6:08 ` Stephen J. Turnbull
2011-10-07 12:28 ` Eli Zaretskii
2011-10-06 12:40 ` Stefan Monnier
2011-10-19 1:48 ` Tom Tromey
2011-10-19 13:10 ` Lluís
2011-10-19 13:38 ` Tom Tromey [this message]
2011-10-19 14:14 ` Lluís
2011-10-19 14:35 ` Stefan Monnier
2011-10-19 14:54 ` Tom Tromey
2011-10-19 17:54 ` Stefan Monnier
2011-10-19 18:55 ` Lluís
2011-10-19 21:22 ` Stefan Monnier
2011-10-20 16:11 ` Lluís
2011-10-21 17:20 ` Stefan Monnier
2011-10-23 19:47 ` Lluís
2011-10-28 2:25 ` Stefan Monnier
2011-10-19 15:42 ` Lluís
2011-03-09 22:23 ` Andreas Schwab
-- strict thread matches above, loose matches on Subject: below --
2011-03-09 0:22 Nick Roberts
2011-03-09 14:20 ` Andrea Crotti
2011-03-10 13:50 Nick Roberts
2011-03-10 14:07 ` Andreas Schwab
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3zkgx2ja5.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=david.reitter@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=xscript@gmx.net \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).