> Hi! > > That´s the first time a send a patch here, sorry if I´m doing anything wrong. > > Problem: -data-list-register-values gives an error about invalid register number for some registers reported by -data-list-register-names. Outch! > Solution: The real problem is that mi_cmd_data_list_register_names computes "numregs = NUM_REGS + NUM_PSEUDO_REGS" but mi_cmd_data_list_register_values computes "numregs = NUM_REGS". So the solution is to also compute the pseudo registers. > > The patch is trivial and is attached. > I thing the Changelog entry should be something like: > > 2004-08-25 Salvador E. Tropea > > * mi/mi-main.c (mi_cmd_data_list_register_values): Fixed wrong > register number computation. I've checked in the attached - I stumbled across a few more cases of the same bug. Thanks! Andrew