This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

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


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