1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00
This commit is contained in:
Alain Magloire 2003-08-19 02:38:52 +00:00
parent e7f524f9e1
commit ce9b82be99

View file

@ -1,3 +1,27 @@
2003-08-18 Alain Magloire
Patch from Chris Songer, excerpt from the email.
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.
example:
8-data-list-register-names
(gdb)
8^done,register-names=["ar0","ar1",... ,"","","","","","","ur0",\
"ur1","ur2","ur3","ur4","ur5","ur6","ur7","","" ..]
* src/org/eclipse/cdt/debug/mi/core/output/MIDataListRegisterNamesInfo.java:
New method getNumRealNames().
* src/org/eclipse/cdt/debug/mi/core/cdi/RegisterManager.java:
Check if the register name is not empty.
2003-08-18 Alain Magloire
From the manual: