This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Remove all current_gdbarch's in mn10300
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: deuling at de dot ibm dot com (Markus Deuling)
- Cc: gdb-patches at sourceware dot org (GDB Patches)
- Date: Mon, 14 Jan 2008 15:09:32 +0100 (CET)
- Subject: Re: [patch] Remove all current_gdbarch's in mn10300
Markus Deuling wrote:
> @@ -604,7 +606,7 @@ mn10300_analyze_prologue (struct frame_i
> - if (AM33_MODE == 2)
> + if (AM33_MODE (get_frame_arch (fi))== 2)
This is incorrect, as mn10300_analyze_prologue may be called
with a NULL fi value (from mn10300_skip_prologue). I guess
the right way would be to allow the caller to pass an explicit
gdbarch ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com