Commit 2317347
authored
[lldb] Improve logging of failure to get register information from Target XML (#170478)
In
https://discourse.llvm.org/t/does-lldb-qemu-support-dumping-x64-control-registers-such-as-cr3/89031
a user was not seeing certain registers when connected to QEMU. Turns
out their LLDB build did not have libxml2 enabled.
While logging is not the first thing most users will think of, it is
something an expert can ask for to confirm whether they have XML support
enabled.
So in this PR I've shuffled the logic GetGDBServerRegisterInfo to better
report problems in the log.
The key one is when lldb does not have libxml2 but the server did say it
supports qxfer:features. In this case we would have used it if we could,
and the debug session will likely be degraded because we are not able
to.
https://sourceware.org/gdb/current/onlinedocs/gdb.html/General-Query-Packets.html#qXfer-target-description-read1 parent 2612dc9 commit 2317347
File tree
2 files changed
+27
-10
lines changed- lldb/source/Plugins/Process/gdb-remote
2 files changed
+27
-10
lines changedLines changed: 26 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
443 | 445 | | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
444 | 452 | | |
445 | 453 | | |
446 | 454 | | |
| |||
5135 | 5143 | | |
5136 | 5144 | | |
5137 | 5145 | | |
5138 | | - | |
5139 | | - | |
5140 | | - | |
5141 | | - | |
5142 | | - | |
5143 | | - | |
| 5146 | + | |
| 5147 | + | |
| 5148 | + | |
5144 | 5149 | | |
5145 | | - | |
| 5150 | + | |
| 5151 | + | |
| 5152 | + | |
| 5153 | + | |
| 5154 | + | |
| 5155 | + | |
| 5156 | + | |
| 5157 | + | |
| 5158 | + | |
5146 | 5159 | | |
5147 | 5160 | | |
5148 | 5161 | | |
| |||
5159 | 5172 | | |
5160 | 5173 | | |
5161 | 5174 | | |
5162 | | - | |
| 5175 | + | |
| 5176 | + | |
| 5177 | + | |
| 5178 | + | |
| 5179 | + | |
5163 | 5180 | | |
5164 | 5181 | | |
5165 | 5182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
| 419 | + | |
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| |||
0 commit comments