Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFC] An initial patch for PR/1961
@ 2005-06-20  1:56 Wu Zhou
  2005-07-03 19:12 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Wu Zhou @ 2005-06-20  1:56 UTC (permalink / raw)
  To: gdb-patches

Hello all,

I did some initial analysis against PR/1961 (Pls add a test for command 
input of "-(" ).  I found this SEGV error will also pop when issuing "+)", 
"<)", ">(" and so on under gdbtui. 

My intial patch is attached as follows.  Please review.  Thanks.

2005-06-20  Wu Zhou  <woodzltc@cn.ibm.com>

	* tui/tui-win.c (parse_scrolling_args): Fix SEGV error with invalid
	scroll command.

Index: tui/tui-win.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-win.c,v
retrieving revision 1.25
diff -c -p -r1.25 tui-win.c
*** tui/tui-win.c	24 Feb 2005 13:51:36 -0000	1.25
--- tui/tui-win.c	20 Jun 2005 01:43:59 -0000
*************** parse_scrolling_args (char *arg, struct 
*** 1543,1549 ****
  
  	  if (*win_to_scroll == (struct tui_win_info *) NULL ||
  	      !(*win_to_scroll)->generic.is_visible)
! 	    warning (_("Invalid window specified. \n\
  The window name specified must be valid and visible.\n"));
  	  else if (*win_to_scroll == TUI_CMD_WIN)
  	    *win_to_scroll = (struct tui_win_info *) (tui_source_windows ())->list[0];
--- 1543,1549 ----
  
  	  if (*win_to_scroll == (struct tui_win_info *) NULL ||
  	      !(*win_to_scroll)->generic.is_visible)
! 	    error (_("Invalid window specified. \n\
  The window name specified must be valid and visible.\n"));
  	  else if (*win_to_scroll == TUI_CMD_WIN)
  	    *win_to_scroll = (struct tui_win_info *) (tui_source_windows ())->list[0];


Cheers
- Wu Zhou


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

end of thread, other threads:[~2005-07-06  7:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-20  1:56 [RFC] An initial patch for PR/1961 Wu Zhou
2005-07-03 19:12 ` Daniel Jacobowitz
2005-07-06  7:50   ` Wu Zhou

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