This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: replace [...]_write_pc methods by pc_regnum gdbarch value?
- From: Tom Tromey <tromey at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org, kevinb at redhat dot com
- Date: Mon, 15 Apr 2013 10:36:42 -0600
- Subject: Re: replace [...]_write_pc methods by pc_regnum gdbarch value?
- References: <20130415132116 dot GD3525 at adacore dot com>
>>>>> "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