Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Pending breakpoints
@ 2004-05-10 20:52 Nick Roberts
  2004-05-11 15:31 ` Andrew Cagney
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Roberts @ 2004-05-10 20:52 UTC (permalink / raw)
  To: gdb-patches

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;
  }


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-05-11 23:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-10 20:52 [PATCH] Pending breakpoints Nick Roberts
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox