This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: RFA: assert that target_fetch_registers did its job


Jim Blandy <jimb@redhat.com> writes:

> Perhaps another option would be something like the below: it informs
> users that things are not as they seem, and encourages developers to
> fix up their targets.  Comments?

Aren't users going to wind up getting this error message approximately
one gazillion times when doing debugging on a target which doesn't
provide all the registers?

I don't know if this is the right approach in general, but if it is I
think it at least needs a static flag or something to only issue the
error once per execution.

I'm not sure this is the right approach because I don't see how to
avoid the error, at least not with something like BSD KVM.  The
registers are in the target, but the values just aren't available.
It's not like there is any way to fix that.

Ian


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