Commit eb501b2
authored
[lldb] Still echo the command if we print the error. (#171931)
When the command interpreter is asked to not echo commands but still
print errors, a user has no idea what command caused the error.
For example, when I add `bogus` in my `~/.lldbinit`:
```
$ lldb
error: 'bogus' is not a valid command.
```
Things are even more confusing when we have inline diagnostics, which
point to nothing. For example, when I add `settings set target.run-args
-foo` to my `~/.lldbinit`:
```
❯ lldb
˄˜˜˜
╰─ error: unknown or ambiguous option
```
We should still echo the command if the command fails, making it obvious
which command caused the failure and fixing the inline diagnostics.
Fixes #1715141 parent 47b4c6a commit eb501b2
File tree
3 files changed
+33
-7
lines changed- lldb
- source/Interpreter
- test/Shell/Settings
- Inputs
3 files changed
+33
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3371 | 3371 | | |
3372 | 3372 | | |
3373 | 3373 | | |
| 3374 | + | |
3374 | 3375 | | |
3375 | 3376 | | |
3376 | 3377 | | |
3377 | 3378 | | |
3378 | 3379 | | |
3379 | | - | |
3380 | | - | |
3381 | | - | |
| 3380 | + | |
| 3381 | + | |
| 3382 | + | |
3382 | 3383 | | |
3383 | 3384 | | |
3384 | 3385 | | |
| |||
3398 | 3399 | | |
3399 | 3400 | | |
3400 | 3401 | | |
3401 | | - | |
3402 | | - | |
3403 | | - | |
3404 | | - | |
| 3402 | + | |
| 3403 | + | |
| 3404 | + | |
| 3405 | + | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
| 3410 | + | |
| 3411 | + | |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
| 3416 | + | |
3405 | 3417 | | |
3406 | 3418 | | |
3407 | 3419 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments