This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
The last warning fix for gdb-4.17 on AIX 4.1.5 : With xlc : "gdb/top.c", line 1953.21: 1506-280 (W) Function argument assignment between types "void(*)(int)" and "void(*)(void)" is not allowed. With gcc : gdb/top.c: In function `init_signals': gdb/top.c:1953: warning: passing arg 2 of `signal' from incompatible pointer type Fri May 1 06:42:14 1998 Philippe De Muyter <phdm@macqel.be> * config/xm-aix4.h (SIGWINCH_HANDLER): Function `aix_resize_window' must accept a signal number as parameter. * config/rs6000/xm-rs6000.h (SIGWINCH_HANDLER): Ditto. * utils.c (initialize_utils): Give a parameter to `SIGWINCH_HANDLER'. --- ./gdb/config/rs6000/xm-rs6000.h Fri May 1 06:41:31 1998 +++ ./gdb/config/rs6000/xm-rs6000.h Thu Apr 30 18:07:14 1998 @@ -1,5 +1,5 @@ /* Parameters for hosting on an RS6000, for GDB, the GNU debugger. - Copyright 1986, 1987, 1989, 1991, 1992, 1993 Free Software Foundation, Inc. + Copyright 1986-87, 1989, 1991-96, 1998 Free Software Foundation, Inc. Contributed by IBM Corporation. This file is part of GDB. @@ -72,7 +72,7 @@ /* Signal handler for SIGWINCH `window size changed'. */ #define SIGWINCH_HANDLER aix_resizewindow -extern void aix_resizewindow PARAMS ((void)); +extern void aix_resizewindow PARAMS ((int)); /* This doesn't seem to be declared in any header file I can find. */ char *termdef PARAMS ((int, int)); @@ -82,10 +82,11 @@ #define SIGWINCH_HANDLER_BODY \ \ /* Respond to SIGWINCH `window size changed' signal, and reset GDB's \ - window settings approproatelt. */ \ + window settings appropriately. */ \ \ void \ -aix_resizewindow () \ +aix_resizewindow (signo) \ + int signo; \ { \ int fd = fileno (stdout); \ if (isatty (fd)) { \ ./gdb/config/xm-aix4.h --- ./gdb/config/xm-aix4.h Fri May 1 06:41:32 1998 +++ ./gdb/config/xm-aix4.h Thu Apr 30 18:14:49 1998 @@ -1,5 +1,5 @@ /* Parameters for hosting on an PowerPC, for GDB, the GNU debugger. - Copyright 1995 Free Software Foundation, Inc. + Copyright 1995, 1998 Free Software Foundation, Inc. Contributed by Cygnus Corporation. This file is part of GDB. @@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* The following text is taken from config/rs6000.mh: * # The IBM version of /usr/include/rpc/rpc.h has a bug -- it says @@ -70,17 +70,18 @@ /* Signal handler for SIGWINCH `window size changed'. */ #define SIGWINCH_HANDLER aix_resizewindow -extern void aix_resizewindow PARAMS ((void)); +extern void aix_resizewindow PARAMS ((int)); /* `lines_per_page' and `chars_per_line' are local to utils.c. Rectify this. */ #define SIGWINCH_HANDLER_BODY \ \ /* Respond to SIGWINCH `window size changed' signal, and reset GDB's \ - window settings approproatelt. */ \ + window settings appropriately. */ \ \ void \ -aix_resizewindow () \ +aix_resizewindow (signo) \ + int signo; \ { \ int fd = fileno (stdout); \ if (isatty (fd)) { \ --- ./gdb/utils.c Fri May 1 06:41:36 1998 +++ ./gdb/utils.c Thu Apr 30 19:15:14 1998 @@ -2079,7 +2079,7 @@ initialize_utils () #if defined(SIGWINCH) && defined(SIGWINCH_HANDLER) /* If there is a better way to determine the window size, use it. */ - SIGWINCH_HANDLER (); + SIGWINCH_HANDLER (SIGWINCH); #endif #endif /* If the output is not a terminal, don't paginate it. */