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/sh-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/sh-stub.c')
-rw-r--r-- | gdb/sh-stub.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/sh-stub.c b/gdb/sh-stub.c index beb8708..a036cff 100644 --- a/gdb/sh-stub.c +++ b/gdb/sh-stub.c @@ -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 |