Re: [rfc, arm] Always use correct execution state for single-step breakpoints

Tom Tromey
2011-03-25T15:59:31Z

>>>>> "Ulrich" == Ulrich Weigand <uweigand@de.ibm.com> writes:

Ulrich> This is done by means of a new global "arm_override_mode" which
Ulrich> is respected in arm_pc_is_thumb unconditionally (similar to
Ulrich> arm_force_mode_string),

Ulrich> (The global is a bit ugly, but the concept still seems right to me:
Ulrich> if at some point in the future, we actually do use two different
Ulrich> gdbarch's to represent Thumb vs. ARM, the single-step routines would
Ulrich> determine the proper gdbarch to set the breakpoint in and simply
Ulrich> use insert_single_step_breakpoint with that arch.)

I wonder whether such globals should actually be per-inferior?
I really don't know whether it would be possible to get in trouble with
this.

Tom