[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-debug-dev] 1.0.1 Register Handling Fix.
|
>
> --=====================_351977531==_
> Content-Type: text/plain; charset="us-ascii"; format=flowed
>
>
> Hi,
>
> Just an FYI, you all may have covered this already in the head.
>
> Using the phrase "To ensure consistency between a register name and its
> number, the output list may include empty register names," the MI protocol
> appears to allow gdb to return a "sparse" array of registers by giving a 0
> length name in response to the -data-list-register-names-command. CDT 1.0.1
> does not handle this especially well and subsequently exposes a bug in GDB
> 5.1.3 and crashes it if the debugger has more than 3 register names of 0
> length.
>
> Attached is the fix we used to correct this.
>
> Thanks!
Nice.
This would make things easier for people using gdb-5.3.
I've sent a PR for this to GDB, I think it was fix by Keith Seitz
But can not confirm.
This is partly handle in the head by not using the -data-list-register-xxxx commands
just too flaky. The registers are now GDB varobj:
-var-create - * $pc
But part of the patch still is valid for the head, thanks.
Currently I do not have an Eclipse/CDT/1.0.1 setup to apply the patch
Did you expect this to be apply in that branch or it was more a FYI ?