This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
arm-elf and SIGCONTEXT_REGISTER_ADDRESS
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: arm-elf and SIGCONTEXT_REGISTER_ADDRESS
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 06 Sep 2000 20:18:44 +1100
FYI,
The way the macro SIGCONTEXT_REGISTER_ADDRESS is defined doesn't go down
well with GCC. I'm seeing:
src/gdb/arm-tdep.c: In function `arm_init_extra_frame_info':
src/gdb/arm-tdep.c:1054: called object is not a function
Instead a separate SIGCONTEXT_REGISTER_ADDRESS_P() method should be
defined.
Part of the rationale is that, eventually, the multi-arch methods are
going to be re-done so that an explicit thread/context/state is passed
as a parameter. At that point, having a function return a function
starts to get complex.
enjoy,
Andrew