[rfc] [04/09] Get rid of current_gdbarch (SIZEOF_FRAME_SAVED_REGS macro)
Mark Kettenis
mark.kettenis@xs4all.nl
Mon Nov 5 13:44:00 GMT 2007
> Date: Mon, 05 Nov 2007 13:21:29 +0100
> From: Markus Deuling <deuling@de.ibm.com>
>
> Hi,
>
> this patch replaces SIZEOF_FRAME_SAVED_REGS macro by its expression.
>
> Tested by gdb_mbuild with alpha target. Is this ok to commit?
I'm not thrilled, since this replaces a #define that has a sensible
name with some sort of complicated expression, and therefore makes the
code much more difficult to read.
> ChangeLog:
>
>
> * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Replace
> SIZEOF_FRAME_SAVED_REGS by its expression. Use get_frame_arch to get at
> the current architecture by frame_info.
> * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
> * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
More information about the Gdb-patches
mailing list