[rfc] [05/09] Get rid of current_gdbarch (macros in mn10300 target)
Ulrich Weigand
uweigand@de.ibm.com
Mon Nov 5 15:53:00 GMT 2007
Markus Deuling wrote:
> * mn10300-tdep.c (set_reg_offsets,mn10300_analyze_prologue): Replace
> AM33 by its expression. Use get_frame_arch to get at the current
> architecture by frame_info.
> * mn10300-tdep.h (AM33_MODE): Remove.
Sorry, but this is not OK. Unfortunately, the mn10300_analyze_prologue
routine is called both from within the unwinder (where we always have
a frame), *and* from mn10300_skip_prologue, where frame information is
not available. Thus "fi" may actually be NULL.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
More information about the Gdb-patches
mailing list