From 3a70e50388b8dbc1817ff4d1407df46003952aff Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Sun, 31 Jan 1999 21:46:19 +0000 Subject: 1999-01-31 J.T. Conklin * 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. --- gdb/sh-stub.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'gdb/sh-stub.c') 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 -- cgit v1.1