From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31070 invoked by alias); 3 Jun 2007 22:54:34 -0000 Received: (qmail 31062 invoked by uid 22791); 3 Jun 2007 22:54:33 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 03 Jun 2007 22:54:31 +0000 Received: from kahikatea.snap.net.nz (222.61.255.123.dynamic.snap.net.nz [123.255.61.222]) by viper.snap.net.nz (Postfix) with ESMTP id 9C80E3D984F for ; Mon, 4 Jun 2007 10:54:27 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 43F868F946; Mon, 4 Jun 2007 10:54:26 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18019.18081.448928.93993@kahikatea.snap.net.nz> Date: Sun, 03 Jun 2007 22:54:00 -0000 To: gdb@sourceware.org Subject: Re: PATCH: PR tui/2173: Arrow keys no longer works in breakpoint command list X-Mailer: VM 7.19 under Emacs 22.1.50.10 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00022.txt.bz2 This change breaks the behaviour of annotations with commands that span multiple lines, like if, while, etc: 2007-01-03 Jan Kratochvil Daniel Jacobowitz * Makefile.in (top.o): Update. * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result) (saved_after_char_processing_hook, gdb_readline_wrapper_line) (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup): New. (gdb_readline_wrapper): Rewrite to use asynchronous readline. To see this compare the output of GDB in CVS with that of 6.6 for the simple construct: (gdb) if >end (gdb) With 6.6, omitting ^Z^Z, (gdb -ann=3): pre-prompt (gdb) prompt if 1 post-prompt pre-commands > commands end post-commands pre-prompt (gdb) prompt With GDB in CVS: pre-prompt (gdb) prompt if 1 post-prompt pre-commands pre-prompt > commands prompt end pre-prompt > commands prompt post-commands pre-prompt (gdb) prompt where superfluous pre-prompt,prompt and commands annotations are output (and an extra ">"). -- Nick http://www.inet.net.nz/~nickrob