[Lldb-commits] [PATCH] D87172: Check if debug line sequences are starting after the first code segment

António Afonso via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 22 18:10:53 PDT 2020


aadsm added inline comments.


================
Comment at: lldb/test/Shell/SymbolFile/DWARF/line-entries-invalid-addresses.yaml:3
+# RUN: %lldb %t -b -o "image lookup -f main.cpp -l 2 -v" | FileCheck %s
+# CHECK: LineEntry: {{.*}}main.cpp:2:{{.*}}
+
----------------
labath wrote:
> I think you also need to check for the "1 matches found", otherwise this will succeed even without the patch.
This should be fine, this is what you get without the patch:

```
(lldb) image lookup -f main.cpp -l 2 -v
1 match found in main.cpp:2 in /Users/aadsm/Projects/test-bad.obj:
        Address:  ()
        Summary:
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87172/new/

https://reviews.llvm.org/D87172



More information about the lldb-commits mailing list