aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1996-05-06 11:56:56 +0000
committerMichael Meissner <gnu@the-meissners.org>1996-05-06 11:56:56 +0000
commit8678180e14652dc371ead62b55a2367422eacc98 (patch)
tree74af393379728d642b6683c5f2418b7833e290f9
parentab7db73b2427e7c5451ba0c5d9a429dcdb8f8901 (diff)
downloadgdb-8678180e14652dc371ead62b55a2367422eacc98.zip
gdb-8678180e14652dc371ead62b55a2367422eacc98.tar.gz
gdb-8678180e14652dc371ead62b55a2367422eacc98.tar.bz2
Do not do XCOFF hoooks for ELF systems
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/rs6000-tdep.c19
2 files changed, 17 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 330853b..85ff423 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+Mon May 6 07:52:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
+
+ * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
+ hooks under ELF.
+
+ * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
+
start-sanitize-gdbtk
Thu May 2 19:17:49 1996 Stan Shebs <shebs@andros.cygnus.com>
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index f2acdf6..85b01e3 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -1,5 +1,5 @@
/* Target-dependent code for GDB, the GNU debugger.
- Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995
+ Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995, 1996
Free Software Foundation, Inc.
This file is part of GDB.
@@ -1268,20 +1268,21 @@ gdb_print_insn_powerpc (memaddr, info)
void
_initialize_rs6000_tdep ()
{
- /* Initialize hook in xcoffread for recording the toc offset value
- of a symbol table into the ldinfo structure, for native rs6000
- config. */
+#ifndef ELF_OBJECT_FORMAT
{
extern void (*xcoff_add_toc_to_loadinfo_hook) PARAMS ((unsigned long));
+ extern void (*xcoff_init_loadinfo_hook) PARAMS ((void));
+
+ /* Initialize hook in xcoffread for recording the toc offset value
+ of a symbol table into the ldinfo structure, for native rs6000
+ config. */
xcoff_add_toc_to_loadinfo_hook = &xcoff_add_toc_to_loadinfo;
- }
- /* Initialize hook in xcoffread for calling xcoff_init_loadinfo in
- a native rs6000 config. */
- {
- extern void (*xcoff_init_loadinfo_hook) PARAMS ((void));
+ /* Initialize hook in xcoffread for calling xcoff_init_loadinfo in
+ a native rs6000 config. */
xcoff_init_loadinfo_hook = &xcoff_init_loadinfo;
}
+#endif /* ELF_OBJECT_FORMAT */
/* FIXME, this should not be decided via ifdef. */
#ifdef GDB_TARGET_POWERPC