Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Marc Khouzam <marc.khouzam@ericsson.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: Using telnet to control a running GDB
Date: Mon, 29 Nov 2010 02:56:00 -0000	[thread overview]
Message-ID: <20101129025627.GA4356@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <F7CE05678329534C957159168FA70DEC572E0C0DCD@EUSAACMS0703.eamcs.ericsson.se>

On Sun, 28 Nov 2010 19:27:56 +0100, Marc Khouzam wrote:
> The user could ask GDB to open a tcp port which would accept a telnet connection.
> Using telnet, the user could then start a _second_ shell to the same GDB and control it.
> 
> This would help a user get a full-fledge GDB command shell, even when GDB
> is being run by a frontend.

Such shell is present there, isn't it?  You have even provided a fix for it:
	https://bugs.eclipse.org/bugs/show_bug.cgi?id=285320

(eclipse-cdt-6.0.2-5.fc13.x86_64, a bit old, sorry)  Click on Debug window,
line with "gdb" then I can type CLI GDB commands into the window "Console".
It does not print the GDB prompt there but it works.  GDB gets this command
via MI:
	40-interpreter-exec console "print 1+1"N (N=\n)


> It would also allow the remote controlling of a running GDB.  Could be useful
> for troubleshooting.

When GDB is really running (and not waiting on external event) it is not
thread safe in general to do anything else in that moment.

In async (+ non-stop) mode you enabled to be implemented it should never do
such operation any noticeable time; if it does, GDB should be fixed (either
for missing async or for performance).

So it is fully on the front end to provide asynchronous "Console" window
interface, isn't it?


Thanks,
Jan


  parent reply	other threads:[~2010-11-29  2:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-28 18:28 Marc Khouzam
2010-11-28 22:40 ` Mike Frysinger
2010-11-29  2:56 ` Jan Kratochvil [this message]
2010-11-29 15:24   ` Marc Khouzam
2010-11-29 18:55     ` Jan Kratochvil
2010-11-29 20:00       ` Marc Khouzam
2010-11-29 20:39         ` Jan Kratochvil
2010-12-06 18:40           ` Tom Tromey
2010-12-06 18:36         ` Tom Tromey
2010-12-07  2:50           ` Marc Khouzam
2010-12-07 15:51             ` Tom Tromey
2010-12-07 16:13               ` Tristan Gingold
2010-12-07 17:14               ` Marc Khouzam
2010-11-29 21:10 ` Tom Tromey

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=20101129025627.GA4356@host0.dyn.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=marc.khouzam@ericsson.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