public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Nick Roberts <nick@nick.uklinux.net>
Cc: gdb@sources.redhat.com
Subject: Re: GDB 6
Date: Sun, 11 May 2003 22:00:00 -0000	[thread overview]
Message-ID: <3EBEC7DC.10609@redhat.com> (raw)
In-Reply-To: <20030511201320.0C21675FDD@nick.uklinux.net>


> I don't really need frame-begin. The problem that I have, however, is that
> frame-begin (and other annotations) are issued *before* stopped. This meant
> that sometimes Emacs thought that frame details output by Gdb were output by
> the inferior and so they were displayed in the IO buffer. I can only reproduce
> this problem now with tbreak where a typical annotation sequence (avoiding
> many repeats) looks like:
> 
> frames-invalid
> breakpoints-invalid
> starting                <--
> frames-invalid
> breakpoints-invalid
> frame-begin etc         <--
> source
> frame-end
> stopped                 <--

The testsuite now looks like:

(gdb)
^Z^Zprompt
PASS: gdb.base/annota3.exp: breakpoint info
run

^Z^Zpost-prompt
Starting program: 
/home/scratch/PENDING/2003-03-11-ann-3/N-powerpc-unknown-netbs
d1.6/gdb/testsuite/gdb.base/annota3

^Z^Zframes-invalid

^Z^Zframes-invalid

^Z^Zbreakpoints-invalid

^Z^Zstarting

^Z^Zframes-invalid

^Z^Zframes-invalid

^Z^Zframes-invalid

^Z^Zframes-invalid

^Z^Zbreakpoint 1

Breakpoint 1, main () at 
/home/scratch/PENDING/2003-03-11-ann-3/src/gdb/testsuit
e/gdb.base/annota3.c:32

^Z^Zsource 
/home/scratch/PENDING/2003-03-11-ann-3/src/gdb/testsuite/gdb.base/ann
ota3.c:32:323:beg:0x1800bc8

^Z^Zstopped

^Z^Zpre-prompt
(gdb)

Does this help?  You get ^Z^Zbreakpoint 1 when the target hits that 
breakpoint.

> Using break instead of tbreak, the breakpoint annotation is issued before
> frame-begin which tells Emacs that output is now from Gdb and not the
> inferior.

There are other places that could gain events if needed.

> Before frame-begin is deleted, can Gdb issue another annotation (stopping ?)
> prior to printing frame details so that Emacs will always understand that this
> is output from Gdb?
> 
> Also Emacs doesn't need prompt-for-continue.

Ok.

Andrew




  reply	other threads:[~2003-05-11 22:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-10 22:35 Nick Roberts
2003-05-11 15:22 ` Andrew Cagney
2003-05-12 18:57   ` Nick Roberts
2003-05-11 22:00     ` Andrew Cagney [this message]
2003-05-12 19:29     ` Bob Rossi
2003-05-13 17:47       ` Nick Roberts
2003-05-12 19:36     ` Bob Rossi
2003-05-13 17:47       ` Nick Roberts
  -- strict thread matches above, loose matches on Subject: below --
2003-05-09 18:17 Michael Elizabeth Chastain
2003-05-09 20:25 ` Andrew Cagney
2003-05-09 16:58 Andrew Cagney
2003-05-09 17:12 ` Daniel Jacobowitz
2003-05-09 17:41   ` Elena Zannoni
2003-05-09 18:05 ` Bob Rossi
2003-05-09 20:21   ` Andrew Cagney

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=3EBEC7DC.10609@redhat.com \
    --to=ac131313@redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=nick@nick.uklinux.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.
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).