mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 10:35:12 +08:00
1999-01-31 J.T. Conklin <jtc@redbacknetworks.com>
* i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c, sparcl-stub, sparclet-stub.c: Change declaration of putDebugChar to include explicit void return type as per documentation. Fix up occasions where stubs erroneously checked return type.
This commit is contained in:
parent
b7263fb370
commit
3a70e50388
@ -1,3 +1,10 @@
|
||||
1999-01-31 J.T. Conklin <jtc@redbacknetworks.com>
|
||||
|
||||
* i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
|
||||
sparcl-stub, sparclet-stub.c: Change declaration of putDebugChar
|
||||
to include explicit void return type as per documentation. Fix up
|
||||
occasions where stubs erroneously checked return type.
|
||||
|
||||
Sun Jan 31 13:18:33 1999 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
From J.T. Conklin <jtc@redbacknetworks.com>:
|
||||
|
1621
gdb/m32r-stub.c
Normal file
1621
gdb/m32r-stub.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -202,8 +202,7 @@ static int computeSignal (int exceptionVector);
|
||||
static void handle_exception (int exceptionVector);
|
||||
void init_serial();
|
||||
|
||||
|
||||
int putDebugChar (char);
|
||||
void putDebugChar (char);
|
||||
char getDebugChar (void);
|
||||
|
||||
/* These are in the file but in asm statements so the compiler can't see them */
|
||||
@ -1457,8 +1456,6 @@ exceptions()
|
||||
#define BPS 32 /* 9600 for 10 Mhz */
|
||||
#endif
|
||||
|
||||
char getDebugChar (void);
|
||||
int putDebugChar (char);
|
||||
void handleError (char theSSR);
|
||||
|
||||
void
|
||||
@ -1531,7 +1528,7 @@ putDebugCharReady()
|
||||
return (SSR1 & SCI_TDRE);
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
putDebugChar (char ch)
|
||||
{
|
||||
while (!putDebugCharReady())
|
||||
@ -1542,7 +1539,6 @@ putDebugChar (char ch)
|
||||
*/
|
||||
TDR1 = ch;
|
||||
SSR1 &= ~SCI_TDRE;
|
||||
return 1;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -92,8 +92,8 @@
|
||||
* external low-level support routines
|
||||
*/
|
||||
|
||||
extern putDebugChar(); /* write a single character */
|
||||
extern getDebugChar(); /* read and return a single char */
|
||||
extern void putDebugChar(); /* write a single character */
|
||||
extern int getDebugChar(); /* read and return a single char */
|
||||
|
||||
/************************************************************************/
|
||||
/* BUFMAX defines the maximum number of characters in inbound/outbound buffers*/
|
||||
@ -371,8 +371,7 @@ putpacket(buffer)
|
||||
|
||||
while (ch = buffer[count])
|
||||
{
|
||||
if (! putDebugChar(ch))
|
||||
return;
|
||||
putDebugChar(ch);
|
||||
checksum += ch;
|
||||
count += 1;
|
||||
}
|
||||
|
@ -95,8 +95,8 @@
|
||||
* external low-level support routines
|
||||
*/
|
||||
|
||||
extern putDebugChar(); /* write a single character */
|
||||
extern getDebugChar(); /* read and return a single char */
|
||||
extern void putDebugChar(); /* write a single character */
|
||||
extern int getDebugChar(); /* read and return a single char */
|
||||
|
||||
/************************************************************************/
|
||||
/* BUFMAX defines the maximum number of characters in inbound/outbound buffers*/
|
||||
@ -534,8 +534,7 @@ putpacket(buffer)
|
||||
|
||||
while (ch = buffer[count])
|
||||
{
|
||||
if (! putDebugChar(ch))
|
||||
return;
|
||||
putDebugChar(ch);
|
||||
checksum += ch;
|
||||
count += 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user