Commit 90d4354
committed
[lldb] Require paused process and frame for "register info" command
Prior to this the command would simply crash when run on a running
process.
Of the three register commands, "info" was the only one missing these
requirements. On some level it makes sense because you're not going
to read a value or modify anything, but practically I think lldb
assumes any time you're going to access register related stuff,
the process should be paused.
I noticed this debugging with a remote gdb stub, so I've recreated
that scenario using attach in a new test case.1 parent 0838e33 commit 90d4354
File tree
2 files changed
+16
-2
lines changed- lldb
- source/Commands
- test/API/commands/register/register/register_command
2 files changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
410 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
411 | 412 | | |
412 | 413 | | |
413 | 414 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
0 commit comments