From: Jim Kingdon Date: Sat, 20 Apr 1991 01:02:34 +0000 (+0000) Subject: signame.c: Change #ifdef SYS_SIGLIST_MISSING to #if. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff8aef1993a779f1f57288b3ba7a0fadeb0501ae;p=binutils-gdb.git signame.c: Change #ifdef SYS_SIGLIST_MISSING to #if. param-no-tm.h: Define SYS_SIGLIST_MISSING from USG. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d976900dbb4..0a045365967 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -25,6 +25,8 @@ Fri Apr 19 09:36:50 1991 Jim Kingdon (kingdon at cygint.cygnus.com) before we compile it. defs.h: Protect against multiple inclusion. param.h: Include defs.h. + signame.c: Change #ifdef SYS_SIGLIST_MISSING to #if. + param-no-tm.h: Define SYS_SIGLIST_MISSING from USG. Thu Apr 18 19:49:10 1991 Jim Kingdon (kingdon at cygint.cygnus.com) diff --git a/gdb/param-no-tm.h b/gdb/param-no-tm.h index 2e4af53fb73..1a35e529e55 100755 --- a/gdb/param-no-tm.h +++ b/gdb/param-no-tm.h @@ -73,4 +73,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define ADDR_BITS_SET(addr) (addr) #endif /* No ADDR_BITS_REMOVE. */ +#if !defined (SYS_SIGLIST_MISSING) +#define SYS_SIGLIST_MISSING defined (USG) +#endif /* No SYS_SIGLIST_MISSING */ + #endif /* param.h not already included. */ diff --git a/gdb/signame.c b/gdb/signame.c index 9a0c4ce989a..4db5860b00f 100755 --- a/gdb/signame.c +++ b/gdb/signame.c @@ -25,7 +25,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define CONST #endif -#ifdef SYS_SIGLIST_MISSING +#if SYS_SIGLIST_MISSING /* There is too much variation in Sys V signal numbers and names, so we must initialize them at runtime. */ @@ -52,7 +52,7 @@ init_sig (number, abbrev, name) CONST char *abbrev; CONST char *name; { -#ifdef SYS_SIGLIST_MISSING +#if SYS_SIGLIST_MISSING sys_siglist[number] = name; #endif sig_table[sig_table_nelts].number = number; @@ -61,7 +61,7 @@ init_sig (number, abbrev, name) static void init_sigs () { -#ifdef SYS_SIGLIST_MISSING +#if SYS_SIGLIST_MISSING int i; /* Initialize signal names. */ @@ -226,7 +226,7 @@ sig_number (abbrev) return -1; } -#if defined (SYS_SIGLIST_MISSING) +#if SYS_SIGLIST_MISSING /* Print to standard error the name of SIGNAL, preceded by MESSAGE and a colon, and followed by a newline. */ void @@ -239,7 +239,7 @@ psignal (signal, message) else fprintf (stderr, "%s: %s\n", message, sys_siglist[signal]); } -#endif +#endif /* SYS_SIGLIST_MISSING */ void _initialize_signame ()