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: replace [...]_write_pc methods by pc_regnum gdbarch value?


>>>>> "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


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