This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
patch to sparc*-stub.c, removes 'b' command
- To: gdb-patches@sourceware.cygnus.com
- Subject: patch to sparc*-stub.c, removes 'b' command
- From: jtc@redback.com (J.T. Conklin)
- Date: 30 Aug 1999 10:44:01 -0700
- Reply-To: jtc@redback.com
Here's some of that low-hanging fruit I promised last week. This
patch removes the 'b' command from the sparc* stubs.
--jtc
1999-08-30 J.T. Conklin <jtc@redback.com>
* sparc-stub.c, sparcl-stub.c, sparclet-stub.c (handle_exception):
Removed #ifdef'd out code which implements the non-standard 'b'
(set baud rate) command.
Index: sparc-stub.c
===================================================================
RCS file: /home/jtc/CVSROOT/gdb/gdb/sparc-stub.c,v
retrieving revision 1.4
diff -c -r1.4 sparc-stub.c
*** sparc-stub.c 1999/08/18 06:25:43 1.4
--- sparc-stub.c 1999/08/27 23:03:36
***************
*** 62,70 ****
*
* ? What was the last sigval ? SNN (signal NN)
*
- * bBB..BB Set baud rate to BB..BB OK or BNN, then sets
- * baud rate
- *
* All commands and responses are sent with a packet which includes a
* checksum. A packet consists of
*
--- 62,67 ----
***************
*** 769,811 ****
asm ("call 0
nop ");
break;
-
- #if 0
- Disabled until we can unscrew this properly
-
- case 'b': /* bBB... Set baud rate to BB... */
- {
- int baudrate;
- extern void set_timer_3();
-
- if (!hexToInt(&ptr, &baudrate))
- {
- strcpy(remcomOutBuffer,"B01");
- break;
- }
-
- /* Convert baud rate to uart clock divider */
- switch (baudrate)
- {
- case 38400:
- baudrate = 16;
- break;
- case 19200:
- baudrate = 33;
- break;
- case 9600:
- baudrate = 65;
- break;
- default:
- strcpy(remcomOutBuffer,"B02");
- goto x1;
- }
-
- putpacket("OK"); /* Ack before changing speed */
- set_timer_3(baudrate); /* Set it */
- }
- x1: break;
- #endif
} /* switch */
/* reply to the request */
--- 766,771 ----
Index: sparcl-stub.c
===================================================================
RCS file: /home/jtc/CVSROOT/gdb/gdb/sparcl-stub.c,v
retrieving revision 1.4
diff -c -r1.4 sparcl-stub.c
*** sparcl-stub.c 1999/08/18 06:25:43 1.4
--- sparcl-stub.c 1999/08/27 23:04:06
***************
*** 64,72 ****
*
* ? What was the last sigval ? SNN (signal NN)
*
- * bBB..BB Set baud rate to BB..BB OK or BNN, then sets
- * baud rate
- *
* All commands and responses are sent with a packet which includes a
* checksum. A packet consists of
*
--- 64,69 ----
***************
*** 936,978 ****
asm ("call 0
nop ");
break;
-
- #if 0
- Disabled until we can unscrew this properly
-
- case 'b': /* bBB... Set baud rate to BB... */
- {
- int baudrate;
- extern void set_timer_3();
-
- if (!hexToInt(&ptr, &baudrate))
- {
- strcpy(remcomOutBuffer,"B01");
- break;
- }
-
- /* Convert baud rate to uart clock divider */
- switch (baudrate)
- {
- case 38400:
- baudrate = 16;
- break;
- case 19200:
- baudrate = 33;
- break;
- case 9600:
- baudrate = 65;
- break;
- default:
- strcpy(remcomOutBuffer,"B02");
- goto x1;
- }
-
- putpacket("OK"); /* Ack before changing speed */
- set_timer_3(baudrate); /* Set it */
- }
- x1: break;
- #endif
} /* switch */
/* reply to the request */
--- 933,938 ----
Index: sparclet-stub.c
===================================================================
RCS file: /home/jtc/CVSROOT/gdb/gdb/sparclet-stub.c,v
retrieving revision 1.4
diff -c -r1.4 sparclet-stub.c
*** sparclet-stub.c 1999/08/18 06:25:44 1.4
--- sparclet-stub.c 1999/08/27 23:05:29
***************
*** 65,73 ****
*
* ? What was the last sigval ? SNN (signal NN)
*
- * bBB..BB Set baud rate to BB..BB OK or BNN, then sets
- * baud rate
- *
* All commands and responses are sent with a packet which includes a
* checksum. A packet consists of
*
--- 65,70 ----
***************
*** 1039,1081 ****
asm ("call 0
nop ");
break;
-
- #if 0
- Disabled until we can unscrew this properly
-
- case 'b': /* bBB... Set baud rate to BB... */
- {
- int baudrate;
- extern void set_timer_3();
-
- if (!hexToInt(&ptr, &baudrate))
- {
- strcpy(remcomOutBuffer,"B01");
- break;
- }
-
- /* Convert baud rate to uart clock divider */
- switch (baudrate)
- {
- case 38400:
- baudrate = 16;
- break;
- case 19200:
- baudrate = 33;
- break;
- case 9600:
- baudrate = 65;
- break;
- default:
- strcpy(remcomOutBuffer,"B02");
- goto x1;
- }
-
- putpacket("OK"); /* Ack before changing speed */
- set_timer_3(baudrate); /* Set it */
- }
- x1: break;
- #endif
} /* switch */
/* reply to the request */
--- 1036,1041 ----
--
J.T. Conklin
RedBack Networks