* config/tm-linux.h (REALTIME_LO, REALTIME_HI): Do not define.
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 28 Nov 2006 19:07:51 +0000 (19:07 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Tue, 28 Nov 2006 19:07:51 +0000 (19:07 +0000)
* 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.

15 files changed:
gdb/ChangeLog
gdb/Makefile.in
gdb/coff-solib.h
gdb/config/i386/nto.mh
gdb/config/i386/nto.mt
gdb/config/i386/tm-nto.h [deleted file]
gdb/config/mips/tm-linux.h
gdb/config/nm-lynx.h
gdb/config/nm-nto.h [new file with mode: 0644]
gdb/config/rs6000/rs6000lynx.mt
gdb/config/rs6000/tm-rs6000ly.h
gdb/config/tm-linux.h
gdb/config/tm-nto.h [deleted file]
gdb/nto-tdep.c
gdb/xcoffread.c

index fbf13260f7d07cda077ccbdc96c576e67b5561c7..51d4db572be7a1266f28ebf16acc872c3792beb5 100644 (file)
@@ -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
index 3782308b40f4d31f3312a26e221308267eed9375..52aeb5f752434206406f2caeda30357c005e39ce 100644 (file)
@@ -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) \
index b407361e196d8287447c526956dc57626ac78db7..8a201031b75c959c1918409d163f61d65c742d29 100644 (file)
@@ -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
index 3ec780eb6bd245fdc8416e3098e65cf988c95e4b..b9e2f84ad6c048ed0e6a17cb4399e8dcffde4ac6 100644 (file)
@@ -1,3 +1,4 @@
 # Host: Intel 386 running QNX.
 
 NATDEPFILES= nto-procfs.o
+NAT_FILE= config/nm-nto.h
index ad62b83f56ef1434a29a23fa1a822d0a33488786..b8b902a46b3a44919309216180f6ec8768844819 100644 (file)
@@ -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 (file)
index 139167d..0000000
+++ /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 */
index 86820107ee3f20e6181d2e19adcf183ddbf47706..2cff2070715754ae75b28f199f97c93950184a69 100644 (file)
 #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
index d4ff5a468e9abd6f77973bf0f84e2d8f84895fab..a3f1ca3c73dca535300e37dc04503474a339a609 100644 (file)
@@ -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/nm-nto.h b/gdb/config/nm-nto.h
new file mode 100644 (file)
index 0000000..3ef78c6
--- /dev/null
@@ -0,0 +1,31 @@
+/* Native support for QNX Neutrino version 6.
+
+   Copyright 2003,2006 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 NM_NTO_H
+#define NM_NTO_H
+
+/* Setup the valid realtime signal range.  */
+#define REALTIME_LO 41
+#define REALTIME_HI 56
+
+#endif /* NM_NTO_H */
index 200a64709d9a7f6fb189d3272479b9d49c5cdbed..782f835d7c1ac99b6d8fbc9f9a406cfc069d7da3 100644 (file)
@@ -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
index f2d1135b4b29ba3ace0f13503c444eb88cc06cfe..a8536d6042d3c49c2d6f04a33c3229a0d9263f6d 100644 (file)
 
 #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"
 
index 7249893eb055d67a8c495993fb41622072e60914..deabd62c8f129dbebaa68a9545f6cc67b89d2ae1 100644 (file)
    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/config/tm-nto.h b/gdb/config/tm-nto.h
deleted file mode 100644 (file)
index 5224a87..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/* Target machine sub-description for QNX Neutrino version 6.
-   This is included by other tm-*.h files to specify nto specific
-   stuff. 
-
-   Copyright 2003 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_QNXNTO_H
-#define _TM_QNXNTO_H
-
-/* Setup the valid realtime signal range.  */
-#define REALTIME_LO 41
-#define REALTIME_HI 56
-
-#endif /* _TM_QNXNTO_H */
index 5a8dd996073a637819ba36596f00414e9c93e80a..3b3624e963b76bc70e55adc590e13bf78233130e 100644 (file)
@@ -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>
index 65e5f5f0608ca652ad6cdcf2c84e4ca268183c55..915bb1c85a3d6da1cfb6aced7ecc4636cc172cf3 100644 (file)
@@ -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;
This page took 0.034715 seconds and 4 git commands to generate.