Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: PATCH: PR tui/2173: Arrow keys no longer works in breakpoint command list
@ 2007-06-03 22:54 Nick Roberts
  2007-06-03 23:10 ` Andreas Schwab
  2007-06-04  1:06 ` Daniel Jacobowitz
  0 siblings, 2 replies; 7+ messages in thread
From: Nick Roberts @ 2007-06-03 22:54 UTC (permalink / raw)
  To: gdb


This change breaks the behaviour of annotations with commands that span
multiple lines, like if, while, etc:

2007-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
	    Daniel Jacobowitz  <dan@codesourcery.com>

	* 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


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

end of thread, other threads:[~2007-06-10  1:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-03 22:54 PATCH: PR tui/2173: Arrow keys no longer works in breakpoint command list Nick Roberts
2007-06-03 23:10 ` Andreas Schwab
2007-06-03 23:13   ` Andreas Schwab
2007-06-04  1:06 ` Daniel Jacobowitz
2007-06-04  2:09   ` Nick Roberts
2007-06-09 19:29     ` Jan Kratochvil
2007-06-10  1:02       ` Asynchronous Gdb [was Re: PATCH: PR tui/2173: Arrow keys no longer works in breakpoint command list] Nick Roberts

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