Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: Michael Snyder <msnyder@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFC] Interpreters (~final) (fwd)
Date: Tue, 27 Aug 2002 15:19:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.44.0208271513320.1408-100000@valrhona.uglyboxes.com> (raw)
In-Reply-To: <3D6BF434.B9D4C62D@redhat.com>

On Tue, 27 Aug 2002, Michael Snyder wrote:

> I'm not sure whose domain this is.  /me lacks context.
> What is it we're trying to do here?  Provide replacements
> to the CLI interpreter?  Lash an extension language into gdb?
> Excuse my ignorance, I haven't followed the conversation 
> too closely.

No problem, let me explain what this all does and where it all comes from.

Much of this code comes originally from Jim Ingham at Apple.  Like us, 
they wanted to address the lack of a command-line pass-through in MI, 
i.e., they want a console window like Insight's, one which can execute CLI 
commands in the MI interpreter.

Jim's original patch included the ability to do switch interpreters at 
runtime. I have (temporarily) removed that, so that it stays static. But 
the useful bit is that one can execute a command in another interpreter.

For example, on my interps branch, one can use the "interpreter-exec" 
MI command to run a CLI command:

(gdb)
-interpreter-exec console "break main"
~"Breakpoint 3 at 0x8074fc6: file ../../src/gdb/main.c, line 743.\n"
=breakpoint-create,number="3"
^done
(gdb)

Note that the CLI output is properly encapsulated for MI. This all mainly 
exists for MI, but it could be used, for example, by Insight, too, 
although no one has attempted that.

If there is anything specific you want to know, by all means, ask away.

(Thanks for the look!)
Keith



  reply	other threads:[~2002-08-27 22:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-27  9:26 Keith Seitz
2002-08-27 15:01 ` Michael Snyder
2002-08-27 15:19   ` Keith Seitz [this message]
2002-08-28  7:14     ` Eli Zaretskii
2002-08-28  8:37       ` Keith Seitz
2002-08-28  9:03         ` Eli Zaretskii
2002-08-28 13:33         ` Michael Snyder
2002-08-28 17:13           ` Andrew Cagney
2002-08-28 22:09             ` Eli Zaretskii
     [not found] <1030485672.17451.ezmlm@sources.redhat.com>
2002-08-27 15:21 ` Jim Ingham
2002-09-06  8:40 Keith Seitz
2002-09-22 15:40 ` Elena Zannoni
2002-09-23 11:57   ` Keith Seitz
2002-09-23 12:44     ` Keith Seitz
2002-09-30 11:35       ` Elena Zannoni
2002-09-30 15:58       ` Elena Zannoni

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=Pine.LNX.4.44.0208271513320.1408-100000@valrhona.uglyboxes.com \
    --to=keiths@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=msnyder@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