Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Nick Roberts <nick@nick.uklinux.net>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] Pending breakpoints
Date: Mon, 10 May 2004 20:52:00 -0000	[thread overview]
Message-ID: <16543.59280.786760.919884@nick.uklinux.net> (raw)

utils.c defines three new functions: nquery and yquery which appear to have
been introduced with the new pending breakpoints feature. nquery and yquery
generate new annotation types: ^Z^Znquery and ^Z^Zyquery respectively. This
breaks the Emacs interface to GDB (gdb-ui.el) that I am developing. I can
easily install a fix but I am surprised that new annotations are being defined
as it is a feature that I thought GDB developers wanted to make
obsolete. Also, I wonder if it is really necessary as the user interface only
needs to know that GDB is expecting input. This patch makes the annotations
from nquery and yquery consistent with other prompts for input.

Nick

*** utils.c.~1.120.~	2004-04-29 20:42:47.000000000 +0100
--- utils.c	2004-05-10 21:21:33.000000000 +0100
***************
*** 1388,1400 ****
        gdb_flush (gdb_stdout);
  
        if (annotation_level > 1)
! 	printf_filtered ("\n\032\032pre-%cquery\n", defchar);
  
        vfprintf_filtered (gdb_stdout, ctlstr, args);
        printf_filtered ("(%s or %s) ", y_string, n_string);
  
        if (annotation_level > 1)
! 	printf_filtered ("\n\032\032%cquery\n", defchar);
  
        wrap_here ("");
        gdb_flush (gdb_stdout);
--- 1388,1400 ----
        gdb_flush (gdb_stdout);
  
        if (annotation_level > 1)
! 	printf_filtered ("\n\032\032pre-query\n");
  
        vfprintf_filtered (gdb_stdout, ctlstr, args);
        printf_filtered ("(%s or %s) ", y_string, n_string);
  
        if (annotation_level > 1)
! 	printf_filtered ("\n\032\032query\n");
  
        wrap_here ("");
        gdb_flush (gdb_stdout);
***************
*** 1438,1444 ****
      }
  
    if (annotation_level > 1)
!     printf_filtered ("\n\032\032post-%cquery\n", defchar);
    return retval;
  }
--- 1438,1444 ----
      }
  
    if (annotation_level > 1)
!     printf_filtered ("\n\032\032post-query\n");
    return retval;
  }


             reply	other threads:[~2004-05-10 20:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-10 20:52 Nick Roberts [this message]
2004-05-11 15:31 ` Andrew Cagney
2004-05-11 20:26   ` Nick Roberts
     [not found]     ` <40A15558.8090803@gnu.org>
2004-05-11 23:13       ` Nick Roberts

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=16543.59280.786760.919884@nick.uklinux.net \
    --to=nick@nick.uklinux.net \
    --cc=gdb-patches@sources.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