Re: RFA: assert that target_fetch_registers did its job

Nathan J. Williams
2004-08-06T20:50:58Z

Jim Blandy <jimb@redhat.com> writes:

> Does anyone see anything wrong with this? Should it be an error, or a
> warning, instead of an internal error? It seems to me that the error
> should be furnished by the target-specific code; if
> target_fetch_registers returns silently, it should have done its job.

I noticed that "info reg" tripped over this with the BSD KVM target,
because the KVM backend only loads in the registers that are present
in the PCB. Should the KVM backend be zeroing out everything else
explicitly (is there a regcache call to do the wipe for us)?

- Nathan