[all-commits] [llvm/llvm-project] ccbb88: [lldb] do not show misleading error when there is ...

oltolm via All-commits all-commits at lists.llvm.org
Mon Feb 24 15:52:31 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ccbb8882ac75e73e23f31ad60588a2914ebeef04
      https://github.com/llvm/llvm-project/commit/ccbb8882ac75e73e23f31ad60588a2914ebeef04
  Author: oltolm <oleg.tolmatcev at gmail.com>
  Date:   2025-02-24 (Mon, 24 Feb 2025)

  Changed paths:
    M lldb/source/API/SBFrame.cpp
    M lldb/test/API/python_api/run_locker/TestRunLocker.py

  Log Message:
  -----------
  [lldb] do not show misleading error when there is no frame (#119103)

I am using VSCode with the official vscode-lldb extension. When I try to
list the breakpoints in the debug console get the message:

```
br list
can't evaluate expressions when the process is running.
```

I know that this is wrong and you need to use
```
`br list
(lldb) br list
No breakpoints currently set.
```
but the error message is misleading. I cleaned up the code and now the
error message is

```
br list
sbframe object is not valid.
```
which is still not perfect, but at least it's not misleading.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list