[Converted from Gnats 1295] in gdb/config/h8300/tm-h8300.h, NUM_REGS is #defined to 14, and gdbsim_fetch_register() calls sim_fetch register() functions with values from 0 .. 13. In sim/h8300/compile.c, around line 1998, we have: if (!h8300smode && rn >=EXR_REGNUM) rn++; which now increases rn from 13 to 14. And because there is no register witn index 14, abort() in sim_fetc_register() is triggered. Release: gdb-5.3
Fix: change "abort();" in sim/h8300/compile.c, function sim_fetch_register(), line 2003 to "return 0;" (Perhaps also the abort() in sim_store_register() should be changed to "return 0;" ?)
this was fixed in commit dc5c3759e035d47d00088e43ea5871ffe717eb02 to issue a warning and return 0 instead of calling abort https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=dc5c3759e035d47d00088e43ea5871ffe717eb02