FAIL: gdb.base/default.exp: info float
in the testsuite. The output now is:
info float
No registers.
Which makes sense to me since it's the truth. However, "info
registers" and "info vector" print a slightly different message:
info registers
The program has no registers now.
The reason is that the bit of code that prints this message:
if (!target_has_registers)
error ("The program has no registers now.");
if (selected_frame == NULL)
error ("No selected frame.");
isn't executed if a print_float_info method exists in the target
vector. Is there any reason not to move these statements up such that
they're executed even if a target provides the print_float_info
method?
I can't think of a reason not to.