summaryrefslogtreecommitdiff
path: root/gdb/ppcnbsd-tdep.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2003-09-29 17:35:35 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2003-09-29 17:35:35 +0000
commit9887f921f2ca3ec52b0fd4cd76d7c28fd27fe8b8 (patch)
treed199668a6515ce878f94554764d5173023d53da3 /gdb/ppcnbsd-tdep.c
parent833df024a3aff3038218585a8cd33c27eb89ecd7 (diff)
downloadgdb-9887f921f2ca3ec52b0fd4cd76d7c28fd27fe8b8.tar.gz
2003-09-29 Elena Zannoni <ezannoni@redhat.com>
* solib-svr4.c: Include gdbcmd.h. (debug_solib): New variable. (elf_locate_base): Add some debugging statements. (svr4_current_sos): Likewise. (enable_break): Likewise. (svr4_relocate_main_executable): Likewise. (_initialize_svr4_solib): Add new 'set' command to control debugging output. * Makefile.in (solib-svr4.o): Update dependencies.
Diffstat (limited to 'gdb/ppcnbsd-tdep.c')
-rw-r--r--gdb/ppcnbsd-tdep.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/gdb/ppcnbsd-tdep.c b/gdb/ppcnbsd-tdep.c
index 97323d57249..21ab858768e 100644
--- a/gdb/ppcnbsd-tdep.c
+++ b/gdb/ppcnbsd-tdep.c
@@ -204,30 +204,12 @@ ppcnbsd_pc_in_sigtramp (CORE_ADDR pc, char *func_name)
return (nbsd_pc_in_sigtramp (pc, func_name));
}
-/* NetBSD is confused. It appears that 1.5 was using the correct SVr4
- convention but, 1.6 switched to the below broken convention. For
- the moment use the broken convention. Ulgh!. */
-
-static int
-ppcnbsd_use_struct_convention (int gcc_p, struct type *value_type)
-{
- if ((TYPE_LENGTH (value_type) == 16 || TYPE_LENGTH (value_type) == 8)
- && TYPE_VECTOR (value_type))
- return 0;
-
- return !(TYPE_LENGTH (value_type) == 1
- || TYPE_LENGTH (value_type) == 2
- || TYPE_LENGTH (value_type) == 4
- || TYPE_LENGTH (value_type) == 8);
-}
-
static void
ppcnbsd_init_abi (struct gdbarch_info info,
struct gdbarch *gdbarch)
{
set_gdbarch_pc_in_sigtramp (gdbarch, ppcnbsd_pc_in_sigtramp);
- set_gdbarch_use_struct_convention (gdbarch, ppcnbsd_use_struct_convention);
set_solib_svr4_fetch_link_map_offsets (gdbarch,
nbsd_ilp32_solib_svr4_fetch_link_map_offsets);
}