From 0feedba6575f0200a743732aa988afd486308e4a Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Mon, 5 Jun 2006 14:51:35 +0000 Subject: i * gdb/configure.tgt (gdb_osabi): uclinux is like linux. * gdb/m68k-tdep.c (m68k_svr4_extract_return_value): Return value is never in %a0. (m68k_reg_struct_return_p): Duplicate gcc's struct mode algorithm. (m68k_svr4_return_value) Use VALUE_STRUCT_CONVENTION. do not rely on %a0. (m68k_push_dummy_call): Force stack alignment. (m68k_svr4_init_abi): Set struct_return convention. (m68k_aout_init_abi): New. (m68k_gdbarch_init): Default to bare elf ABI that gcc provides. * gdb/m68k-tdep.h (m68k_aout_init_abi): Declare. * gdb/m68kbsd-tdep.c (m68kbsd_aout_init_abi): Use m68k_aout_init_abi. (m68kbsd_elf_init_abi): Add comment. * gdb/m68klinux-tdep.c (m68k_linux_init_abi): Just set the struct pointer register here. --- gdb/m68klinux-tdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/m68klinux-tdep.c') diff --git a/gdb/m68klinux-tdep.c b/gdb/m68klinux-tdep.c index 6da4d1514c4..29728688e9e 100644 --- a/gdb/m68klinux-tdep.c +++ b/gdb/m68klinux-tdep.c @@ -291,8 +291,8 @@ m68k_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) address to store a structure value. It also returns small structures in registers instead of memory. */ m68k_svr4_init_abi (info, gdbarch); + /* But the struct pointer is in %a1 */ tdep->struct_value_regnum = M68K_A1_REGNUM; - tdep->struct_return = reg_struct_return; frame_unwind_append_sniffer (gdbarch, m68k_linux_sigtramp_frame_sniffer); -- cgit v1.2.1