Commit cdb3a8b
committed
[lldb][DWARF] Don't try to compute address range information of forward declarations
This fixes the error reported in
#144037.
When computing the aranges table of a CU, LLDB would currently visit all
`DW_TAG_subprogram` DIEs and check their `DW_AT_low_pc`/`DW_AT_high_pc`.
If those don't exist it would error out and spam the console. Some
subprograms (particularly forward declarations) don't have low/high pc
attributes, so it's not really an "error". We should just ignore those
DIEs.1 parent db8d34d commit cdb3a8b
File tree
2 files changed
+27
-1
lines changed- lldb
- source/Plugins/SymbolFile/DWARF
- test/Shell/SymbolFile/DWARF
2 files changed
+27
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
614 | | - | |
| 614 | + | |
| 615 | + | |
615 | 616 | | |
616 | 617 | | |
617 | 618 | | |
| |||
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments