Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Marc Khouzam" <marc.khouzam@ericsson.com>
To: "Nick Roberts" <nickrob@snap.net.nz>
Cc: "Hui Zhu" <teawater@gmail.com>, <gdb@sources.redhat.com>,
	        "Michael Snyder" <msnyder@vmware.com>
Subject: RE: Reverse debugging
Date: Fri, 17 Jul 2009 14:12:00 -0000	[thread overview]
Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA07BD7500@ecamlmw720.eamcs.ericsson.se> (raw)
In-Reply-To: <19039.58589.853319.841012@totara.tehura.co.nz>

> -----Original Message-----
> From: Nick Roberts [mailto:nickrob@snap.net.nz] 
> Sent: July-16-09 10:42 PM
> To: Marc Khouzam
> Cc: Hui Zhu; gdb@sources.redhat.com; Michael Snyder
> Subject: RE: Reverse debugging
> 
>  > So in your case you are dealing with a proper tty?
>  > For eclipse, we fall in the !from_tty case.
> 
> Emacs communicates with GDB through a pseudo-tty.  How does Eclipse
> do it?
> 
> This also seems contrary to what Daniel Jacobowitz has 
> previously told me,
> perhaps about Eclipse more generally.  CDT has a console and 
> I thought he
> assured me that there was interest in developing that functionality.

We do have a console and we do want it to be fully supported :-)
But all commands sent from the console are redirected through
our normal MI channel and I think this is the reason we
are not a tty in that case.

For example when turning off record from that console or from
the eclipse buttons I get: 
"Delete recorded log and stop recording?(y or n) [answered Y; input not
from terminal]"

I noticed that the previous CDT GDB integration has its console
considered
a tty.  It may be worth looking into the difference... when time allows
it :-)

> 
>  > Frontends should definetely not be bothered with those queries.
>  > In my mind, a FE should know what it is doing so if it requests
>  > an action like 'record stop' it should not be prompted at all.
>  > This is probably true for any of these queries.
>  > 
>  > I was originally going to ask Hui always have a !from_tty check,
>  > but now it seems this would not work for emacs.
>  > 
>  > Can we check if the default interpreter is MI somehow and in those
>  > cases not do the query?  The idea is that if one uses MI then
>  > it is not in some user-interactive session.
>  > 
>  > Just a thought...
> 
> That might be a good idea but this request isn't for Emacs on 
> trunk, which has
> now migrated fully to GDB/MI, but for the release branch 
> which still uses
> annotations.  

So you start GDB in CLI mode?
My idea was that if gdb is started with '-interpreter mi', we could
assume it is a frontend that started it and not use queries.

> It's just a small request for a slight change 
> to the existing
> command "record stop" or, as Hui suggested, adding a special 
> CLI command
> to stop recording that doesn't need confirmation.

I have nothing against that.  How about making this command MI?

Marc


  reply	other threads:[~2009-07-17 14:12 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-14  0:40 Nick Roberts
2009-07-14  0:53 ` Michael Snyder
2009-07-14  1:28   ` Nick Roberts
2009-07-14 17:36     ` Michael Snyder
2009-07-15  2:28       ` Nick Roberts
2009-07-16  3:09         ` Hui Zhu
2009-07-16 15:55           ` Marc Khouzam
2009-07-17  2:41             ` Nick Roberts
2009-07-17 14:12               ` Marc Khouzam [this message]
2009-07-17 14:25                 ` Daniel Jacobowitz
2009-07-17 14:56                   ` Marc Khouzam
2009-07-17 15:02                     ` Daniel Jacobowitz
2009-07-19  3:21                   ` Marc Khouzam
2009-07-20  3:27                     ` Hui Zhu
2009-07-20 12:50                       ` Marc Khouzam
2009-07-20 13:19                         ` Marc Khouzam
2009-07-20 14:51                           ` Hui Zhu
2009-07-21  3:21                             ` Marc Khouzam
2009-09-11 13:26                       ` Marc Khouzam
2009-07-18  1:06                 ` Nick Roberts
2009-07-18  4:00                   ` Daniel Jacobowitz
2009-07-22 17:46                     ` Marc Khouzam
2009-07-16  3:05     ` Hui Zhu
2009-07-17  2:32       ` Nick Roberts
2009-08-17  7:49   ` Jakob Engblom

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=6D19CA8D71C89C43A057926FE0D4ADAA07BD7500@ecamlmw720.eamcs.ericsson.se \
    --to=marc.khouzam@ericsson.com \
    --cc=gdb@sources.redhat.com \
    --cc=msnyder@vmware.com \
    --cc=nickrob@snap.net.nz \
    --cc=teawater@gmail.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