This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: A Patch/fix


Don't forget 5.3.
Andrew

Paul Breed <Paul@Netburner.com> writes:


I'm not familiar with the procedure for submitting a patch,
but I have a simple one line fix that is  a bug.

in gdb/main.c line 384

baud_rate=i;
}
<----------------------insert a "break;" here
case ''l':


Without the break when you set the baud rate you also set the time out to some
ungodly long amount.

Committed as obvious:

2002-09-24  Jim Blandy  <jimb@redhat.com>

	Fix from Paul Breed:
	* main.c (captured_main): Add a `break' after the case for 'b'.

Index: gdb/main.c
===================================================================
RCS file: /cvs/src/src/gdb/main.c,v
retrieving revision 1.18
diff -c -r1.18 main.c
*** gdb/main.c	25 Jun 2002 05:35:16 -0000	1.18
--- gdb/main.c	25 Sep 2002 03:07:30 -0000
***************
*** 397,402 ****
--- 397,403 ----
  	      else
  		baud_rate = i;
  	    }
+             break;
  	  case 'l':
  	    {
  	      int i;





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]