This is the mail archive of the
mailing list for the GDB project.
Re: [RFA/RFC/sparc32] SIGSEGV during fun call when no debugging info
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: brobecker at adacore dot com
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 29 Apr 2008 10:02:23 +0200 (CEST)
- Subject: Re: [RFA/RFC/sparc32] SIGSEGV during fun call when no debugging info
- References: <20080429034705.GG16574@adacore.com>
> Date: Mon, 28 Apr 2008 20:47:05 -0700
> From: Joel Brobecker <firstname.lastname@example.org>
> One approach would be to enhance the code above to also handle function
> calls when no symbol is found. This is what find_function_in_inferior
> does, and we could do something similar. But seems a bit absurd to do
> that, because we don't have multiple calling conventions on sparc.
> So finding the type would be useless.
Makes sense to me.
> 2008-04-29 Joel Brobecker <email@example.com>
> * 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.
> Tested on sparc-solaris. Fixes many many regressions in gdb.ada,
> gdb.base and gdb.gdb.
> OK to apply?