diff options
author | Stan Shebs <shebs@codesourcery.com> | 1999-01-31 21:46:19 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1999-01-31 21:46:19 +0000 |
commit | 3a70e50388b8dbc1817ff4d1407df46003952aff (patch) | |
tree | 0d6a27aeebfb3ef39726393c790b56273acf70fd /gdb/sparc-stub.c | |
parent | b7263fb370013ee5aa7ac9421a8990e48a653a0a (diff) | |
download | gdb-3a70e50388b8dbc1817ff4d1407df46003952aff.zip gdb-3a70e50388b8dbc1817ff4d1407df46003952aff.tar.gz gdb-3a70e50388b8dbc1817ff4d1407df46003952aff.tar.bz2 |
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.
Diffstat (limited to 'gdb/sparc-stub.c')
-rw-r--r-- | gdb/sparc-stub.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/sparc-stub.c b/gdb/sparc-stub.c index 1f04f31..7da65c2 100644 --- a/gdb/sparc-stub.c +++ b/gdb/sparc-stub.c @@ -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; } |