diff options
-rw-r--r-- | gdb/ChangeLog | 21 | ||||
-rw-r--r-- | gdb/Makefile.in | 2 | ||||
-rw-r--r-- | gdb/coff-solib.h | 2 | ||||
-rw-r--r-- | gdb/config/i386/nto.mh | 1 | ||||
-rw-r--r-- | gdb/config/i386/nto.mt | 1 | ||||
-rw-r--r-- | gdb/config/i386/tm-nto.h | 29 | ||||
-rw-r--r-- | gdb/config/mips/tm-linux.h | 7 | ||||
-rw-r--r-- | gdb/config/nm-lynx.h | 6 | ||||
-rw-r--r-- | gdb/config/nm-nto.h (renamed from gdb/config/tm-nto.h) | 12 | ||||
-rw-r--r-- | gdb/config/rs6000/rs6000lynx.mt | 2 | ||||
-rw-r--r-- | gdb/config/rs6000/tm-rs6000ly.h | 6 | ||||
-rw-r--r-- | gdb/config/tm-linux.h | 9 | ||||
-rw-r--r-- | gdb/nto-tdep.c | 3 | ||||
-rw-r--r-- | gdb/xcoffread.c | 2 |
14 files changed, 40 insertions, 63 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fbf13260f7d..51d4db572be 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,24 @@ +2006-11-28 Ulrich Weigand <uweigand@de.ibm.com> + + * config/tm-linux.h (REALTIME_LO, REALTIME_HI): Do not define. + * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Likewise. + + * config/rs6000/tm-rs6000ly.h (REALTIME_LO, REALTIME_HI): Move to ... + * config/nm-lynx.h (REALTIME_LO, REALTIME_HI): ... here. + + * config/i386/nto.mh (NAT_FILE): Define. + * config/i386/nto.mt (DEPRECATED_TM_FILE): Remove. + * config/i386/tm-nto.h: Delete file. + * config/tm-nto.h: Delete file. + * config/nm-nto.h: New file. + + * Makefile.in (nto-tdep.o): Add dependency on $(objfiles_h). + * nto-tdep.c: Include "objfiles.h" and <string.h>. + + * coff-solib.h (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define as "". + * xcoffread.c (read_xcoff_symtab): Initialize fcn_stab_saved. + * config/rs6000/rs6000lynx.mt (TDEPFILES): Add xcoffread.o. + 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com> * dwarf2-frame.c (decode_frame_entry_1): Skip unknown augmentations diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 3782308b40f..52aeb5f7524 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -2407,7 +2407,7 @@ nto-procfs.o: nto-procfs.c $(defs_h) $(gdb_dirent_h) $(exceptions_h) \ $(gdbthread_h) $(nto_tdep_h) $(command_h) $(regcache_h) $(solib_h) nto-tdep.o: nto-tdep.c $(gdb_stat_h) $(gdb_string_h) $(nto_tdep_h) $(top_h) \ $(cli_decode_h) $(cli_cmds_h) $(inferior_h) $(gdbarch_h) $(bfd_h) \ - $(elf_bfd_h) $(solib_svr4_h) $(gdbcore_h) + $(elf_bfd_h) $(solib_svr4_h) $(gdbcore_h) $(objfiles_h) objc-exp.o: objc-exp.c $(defs_h) $(gdb_string_h) $(expression_h) \ $(objc_lang_h) $(value_h) $(parser_defs_h) $(language_h) $(c_lang_h) \ $(bfd_h) $(symfile_h) $(objfiles_h) $(top_h) $(completer_h) \ diff --git a/gdb/coff-solib.h b/gdb/coff-solib.h index b407361e196..8a201031b75 100644 --- a/gdb/coff-solib.h +++ b/gdb/coff-solib.h @@ -146,7 +146,7 @@ extern void coff_solib_create_inferior_hook (void); /* solib.c */ */ #define SOLIB_UNLOADED_LIBRARY_PATHNAME(pid) \ -(0) +"" /* This function returns TRUE if pc is the address of an instruction that lies within the dynamic linker (such as the event hook, or the dld diff --git a/gdb/config/i386/nto.mh b/gdb/config/i386/nto.mh index 3ec780eb6bd..b9e2f84ad6c 100644 --- a/gdb/config/i386/nto.mh +++ b/gdb/config/i386/nto.mh @@ -1,3 +1,4 @@ # Host: Intel 386 running QNX. NATDEPFILES= nto-procfs.o +NAT_FILE= config/nm-nto.h diff --git a/gdb/config/i386/nto.mt b/gdb/config/i386/nto.mt index ad62b83f56e..b8b902a46b3 100644 --- a/gdb/config/i386/nto.mt +++ b/gdb/config/i386/nto.mt @@ -1,4 +1,3 @@ # Target: Intel 386 running qnx6. TDEPFILES = i386-tdep.o i387-tdep.o corelow.o solib.o solib-svr4.o \ i386-nto-tdep.o nto-tdep.o -DEPRECATED_TM_FILE = tm-nto.h diff --git a/gdb/config/i386/tm-nto.h b/gdb/config/i386/tm-nto.h deleted file mode 100644 index 139167df4c7..00000000000 --- a/gdb/config/i386/tm-nto.h +++ /dev/null @@ -1,29 +0,0 @@ -/* QNX Neutrino target header. - - Copyright 2003, 2004 Free Software Foundation, Inc. - - This code was donated by QNX Software Systems Ltd. - - This file is part of GDB. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - 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., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ - -#ifndef TM_NTO_H -#define TM_NTO_H 1 - -#include "config/tm-nto.h" - -#endif /* TM_NTO_H */ diff --git a/gdb/config/mips/tm-linux.h b/gdb/config/mips/tm-linux.h index 86820107ee3..2cff2070715 100644 --- a/gdb/config/mips/tm-linux.h +++ b/gdb/config/mips/tm-linux.h @@ -22,13 +22,6 @@ #ifndef TM_MIPSLINUX_H #define TM_MIPSLINUX_H -/* GNU/Linux MIPS has __SIGRTMAX == 127. */ - -#ifndef REALTIME_LO -#define REALTIME_LO 32 -#define REALTIME_HI 128 -#endif - #include "config/tm-linux.h" #undef IN_SOLIB_DYNSYM_RESOLVE_CODE diff --git a/gdb/config/nm-lynx.h b/gdb/config/nm-lynx.h index d4ff5a468e9..a3f1ca3c73d 100644 --- a/gdb/config/nm-lynx.h +++ b/gdb/config/nm-lynx.h @@ -40,6 +40,12 @@ struct target_waitstatus; #include <sys/proc.h> #include "gdbthread.h" +/* Lynx's signal.h doesn't seem to have any macros for what signal numbers + the real-time events are. */ +#define REALTIME_LO 33 +/* One more than the last one. */ +#define REALTIME_HI 64 + /* This is the amount to subtract from u.u_ar0 to get the offset in the core file of the register values. */ diff --git a/gdb/config/tm-nto.h b/gdb/config/nm-nto.h index 5224a878aa3..3ef78c6b9f4 100644 --- a/gdb/config/tm-nto.h +++ b/gdb/config/nm-nto.h @@ -1,8 +1,6 @@ -/* Target machine sub-description for QNX Neutrino version 6. - This is included by other tm-*.h files to specify nto specific - stuff. +/* Native support for QNX Neutrino version 6. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003,2006 Free Software Foundation, Inc. This code was donated by QNX Software Systems Ltd. @@ -23,11 +21,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifndef _TM_QNXNTO_H -#define _TM_QNXNTO_H +#ifndef NM_NTO_H +#define NM_NTO_H /* Setup the valid realtime signal range. */ #define REALTIME_LO 41 #define REALTIME_HI 56 -#endif /* _TM_QNXNTO_H */ +#endif /* NM_NTO_H */ diff --git a/gdb/config/rs6000/rs6000lynx.mt b/gdb/config/rs6000/rs6000lynx.mt index 200a64709d9..782f835d7c1 100644 --- a/gdb/config/rs6000/rs6000lynx.mt +++ b/gdb/config/rs6000/rs6000lynx.mt @@ -1,3 +1,3 @@ # Target: IBM RS6000 running LynxOS -TDEPFILES= coff-solib.o rs6000-tdep.o ppc-sysv-tdep.o solib.o solib-svr4.o +TDEPFILES= coff-solib.o xcoffread.o rs6000-tdep.o ppc-sysv-tdep.o solib.o solib-svr4.o DEPRECATED_TM_FILE= tm-rs6000ly.h diff --git a/gdb/config/rs6000/tm-rs6000ly.h b/gdb/config/rs6000/tm-rs6000ly.h index f2d1135b4b2..a8536d6042d 100644 --- a/gdb/config/rs6000/tm-rs6000ly.h +++ b/gdb/config/rs6000/tm-rs6000ly.h @@ -23,12 +23,6 @@ #include "coff-solib.h" /* COFF shared library support */ -/* Lynx's signal.h doesn't seem to have any macros for what signal numbers - the real-time events are. */ -#define REALTIME_LO 33 -/* One more than the last one. */ -#define REALTIME_HI 64 - /* Use generic RS6000 definitions. */ #include "rs6000/tm-rs6000.h" diff --git a/gdb/config/tm-linux.h b/gdb/config/tm-linux.h index 7249893eb05..deabd62c8f1 100644 --- a/gdb/config/tm-linux.h +++ b/gdb/config/tm-linux.h @@ -19,15 +19,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* Pick reasonable defaults for the number of real-time signals. */ - -#ifndef REALTIME_LO -#define REALTIME_LO 32 -#endif -#ifndef REALTIME_HI -#define REALTIME_HI 64 -#endif - /* We need this file for the SOLIB_TRAMPOLINE stuff. */ /* If PC is in a shared library trampoline code, return the PC diff --git a/gdb/nto-tdep.c b/gdb/nto-tdep.c index 5a8dd996073..3b3624e963b 100644 --- a/gdb/nto-tdep.c +++ b/gdb/nto-tdep.c @@ -33,6 +33,9 @@ #include "elf-bfd.h" #include "solib-svr4.h" #include "gdbcore.h" +#include "objfiles.h" + +#include <string.h> #ifdef __CYGWIN__ #include <sys/cygwin.h> diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 65e5f5f0608..915bb1c85a3 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -925,7 +925,7 @@ read_xcoff_symtab (struct partial_symtab *pst) int depth = 0; int fcn_start_addr = 0; - struct coff_symbol fcn_stab_saved; + struct coff_symbol fcn_stab_saved = { 0 }; /* fcn_cs_saved is global because process_xcoff_symbol needs it. */ union internal_auxent fcn_aux_saved; |