This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Cleanup mi_cmd_data_write_register_values
> > Index: ChangeLog
> > from Mark Kettenis <kettenis@gnu.org>
> >
> > * mi/mi-main.c (mi_cmd_data_write_register_values): Use
> > regcache_cooked_write_signed instead of
> > deprecated_write_register_bytes.
>
> Patch looks OK. I'm almost glad this command is undocumented; this is
> really all wrong as can be, since registers might not fit in the
> LONGEST, and especially floating point registers have no business being
> set from integer bit patterns. And it encourages sloppy frontends to
> hard code register numbers. Yuck.
Yes, previously it didn't work for me. Perhaps, however, we can get rid of
this command if Vladimir commits his changes for "-var-list --registers".
--
Nick http://www.inet.net.nz/~nickrob