Commit e36c407
committed
[lldb] Still echo the command if we print the error.
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 c5ac7d6 commit e36c407
File tree
3 files changed
+32
-4
lines changed- lldb
- source/Interpreter
- test/Shell/Settings
- Inputs
3 files changed
+32
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3283 | 3283 | | |
3284 | 3284 | | |
3285 | 3285 | | |
| 3286 | + | |
3286 | 3287 | | |
3287 | 3288 | | |
3288 | 3289 | | |
| |||
3291 | 3292 | | |
3292 | 3293 | | |
3293 | 3294 | | |
| 3295 | + | |
3294 | 3296 | | |
3295 | 3297 | | |
3296 | 3298 | | |
| |||
3310 | 3312 | | |
3311 | 3313 | | |
3312 | 3314 | | |
3313 | | - | |
3314 | | - | |
3315 | | - | |
3316 | | - | |
| 3315 | + | |
| 3316 | + | |
| 3317 | + | |
| 3318 | + | |
| 3319 | + | |
| 3320 | + | |
| 3321 | + | |
| 3322 | + | |
| 3323 | + | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
| 3327 | + | |
| 3328 | + | |
| 3329 | + | |
| 3330 | + | |
3317 | 3331 | | |
3318 | 3332 | | |
3319 | 3333 | | |
| |||
| 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