This is the mail archive of the gdb-testers@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]

[binutils-gdb] sim: h8300: simplify h8300_reg_{fetch,store} funcs


*** TEST RESULTS FOR COMMIT 2a2757ac7e849aa35fc519ddfcc8688a46b60448 ***

Author: Mike Frysinger <vapier@gentoo.org>
Branch: master
Commit: 2a2757ac7e849aa35fc519ddfcc8688a46b60448

sim: h8300: simplify h8300_reg_{fetch,store} funcs

We can leverage the cpu->regs array rather than going through the
function helpers to get nice compact code.

Further, fix up the return values: return -1 when we can't find a
register (and let the caller write out warnings), return 2/4 when
we actually write out that amount, and handle the zero reg.


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