This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

arm-elf and SIGCONTEXT_REGISTER_ADDRESS


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]