Commit b041cf0
committed
[lldb] Correctly invalidate unloaded image tokens
Some functions in Process were using LLDB_INVALID_ADDRESS
instead of LLDB_INVALID_TOKEN.
The only visible effect of this appears to be that
"process unload <tab>" would complete to 0 even after the
image was unloaded. Since the command is checking for
LLDB_INVALID_TOKEN.
Everything else worked somehow. I've added a check to the
existing load unload tests anyway.
The tab completion cannot be checked as is, but when I make
them more strict in a later patch it will be tested.1 parent 2618154 commit b041cf0
File tree
4 files changed
+13
-4
lines changed- lldb
- source
- Plugins/Platform
- POSIX
- Windows
- Target
- test/API/functionalities/load_unload
4 files changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
952 | | - | |
| 952 | + | |
953 | 953 | | |
954 | 954 | | |
955 | 955 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5911 | 5911 | | |
5912 | 5912 | | |
5913 | 5913 | | |
5914 | | - | |
| 5914 | + | |
5915 | 5915 | | |
5916 | 5916 | | |
5917 | 5917 | | |
5918 | 5918 | | |
5919 | | - | |
| 5919 | + | |
5920 | 5920 | | |
5921 | 5921 | | |
5922 | 5922 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
310 | 319 | | |
311 | 320 | | |
312 | 321 | | |
| |||
0 commit comments