From ea42b34a37453fb7cf3a4ac7a5a6d0d456623fd9 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Tue, 29 Apr 2008 16:06:07 +0000 Subject: * gdbarch.sh: Document the return_value method. Explain that the FUNCTYPE parameter might be NULL. * gdbarch.h: Regenerated. * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function type when calling using_struct_return, as this is unnecessary on this target. --- gdb/sparc-tdep.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gdb/sparc-tdep.c') diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c index 0140c0f..20f67bc 100644 --- a/gdb/sparc-tdep.c +++ b/gdb/sparc-tdep.c @@ -388,8 +388,7 @@ sparc32_push_dummy_code (struct gdbarch *gdbarch, CORE_ADDR sp, *bp_addr = sp - 4; *real_pc = funcaddr; - if (using_struct_return (SYMBOL_TYPE (find_pc_function (funcaddr)), - value_type)) + if (using_struct_return (NULL, value_type)) { gdb_byte buf[4]; -- cgit v1.1