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:
Stan Shebs 1999-01-31 21:46:19 +00:00
parent b7263fb370
commit 3a70e50388
5 changed files with 1636 additions and 14 deletions

View File

@ -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> Sun Jan 31 13:18:33 1999 Stan Shebs <shebs@andros.cygnus.com>
From J.T. Conklin <jtc@redbacknetworks.com>: From J.T. Conklin <jtc@redbacknetworks.com>:

1621
gdb/m32r-stub.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -202,8 +202,7 @@ static int computeSignal (int exceptionVector);
static void handle_exception (int exceptionVector); static void handle_exception (int exceptionVector);
void init_serial(); void init_serial();
void putDebugChar (char);
int putDebugChar (char);
char getDebugChar (void); char getDebugChar (void);
/* These are in the file but in asm statements so the compiler can't see them */ /* 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 */ #define BPS 32 /* 9600 for 10 Mhz */
#endif #endif
char getDebugChar (void);
int putDebugChar (char);
void handleError (char theSSR); void handleError (char theSSR);
void void
@ -1531,7 +1528,7 @@ putDebugCharReady()
return (SSR1 & SCI_TDRE); return (SSR1 & SCI_TDRE);
} }
int void
putDebugChar (char ch) putDebugChar (char ch)
{ {
while (!putDebugCharReady()) while (!putDebugCharReady())
@ -1542,7 +1539,6 @@ putDebugChar (char ch)
*/ */
TDR1 = ch; TDR1 = ch;
SSR1 &= ~SCI_TDRE; SSR1 &= ~SCI_TDRE;
return 1;
} }
void void

View File

@ -92,8 +92,8 @@
* external low-level support routines * external low-level support routines
*/ */
extern putDebugChar(); /* write a single character */ extern void putDebugChar(); /* write a single character */
extern getDebugChar(); /* read and return a single char */ extern int getDebugChar(); /* read and return a single char */
/************************************************************************/ /************************************************************************/
/* BUFMAX defines the maximum number of characters in inbound/outbound buffers*/ /* BUFMAX defines the maximum number of characters in inbound/outbound buffers*/
@ -371,8 +371,7 @@ putpacket(buffer)
while (ch = buffer[count]) while (ch = buffer[count])
{ {
if (! putDebugChar(ch)) putDebugChar(ch);
return;
checksum += ch; checksum += ch;
count += 1; count += 1;
} }

View File

@ -95,8 +95,8 @@
* external low-level support routines * external low-level support routines
*/ */
extern putDebugChar(); /* write a single character */ extern void putDebugChar(); /* write a single character */
extern getDebugChar(); /* read and return a single char */ extern int getDebugChar(); /* read and return a single char */
/************************************************************************/ /************************************************************************/
/* BUFMAX defines the maximum number of characters in inbound/outbound buffers*/ /* BUFMAX defines the maximum number of characters in inbound/outbound buffers*/
@ -534,8 +534,7 @@ putpacket(buffer)
while (ch = buffer[count]) while (ch = buffer[count])
{ {
if (! putDebugChar(ch)) putDebugChar(ch);
return;
checksum += ch; checksum += ch;
count += 1; count += 1;
} }