replace [...]_write_pc methods by pc_regnum gdbarch value?
Tom Tromey
tromey@redhat.com
Mon Apr 15 19:48:00 GMT 2013
>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
Joel> In the following tdep files...
Joel> - m32r-tdep.c
Joel> - mep-tdep.c
Joel> ... the unit defines a _write_pc gdbarch method which simply calls
Joel> regcache_cooked_write_unsigned with the appropriate PC regnum.
Joel> It seems to me that setting the pc_regnum gdbarch value would
Joel> be sufficient. See attached diff.
Joel> I cannot test the changes, but if people agree, I don't mind checking
Joel> it in.
It seems correct to me.
Tom
More information about the Gdb-patches
mailing list