Commit 2572a2f
committed
Reland "[lldb][DWARF] Remove object_pointer from ParsedDWARFAttributes (llvm#145065)"
This reverts commit 8775119.
This fixes the `TestObjCInBlockVars.py` LLDB API test.
The issue was that `GetCXXObjectParameter` wouldn't deduce the object
parameter of Objective-C method definitions correctly. In DWARF those
don't have a `DW_AT_specification` (so no link back to a DeclContext
that is a class type). The fix is to only check the validity of the
DeclContext DIE *if* no `DW_AT_object_pointer` exists on the DIE. If
`DW_AT_object_pointer` does exist, we should just always use that as the
object_parameter.1 parent f8ee577 commit 2572a2f
File tree
2 files changed
+12
-23
lines changed- lldb/source/Plugins/SymbolFile/DWARF
2 files changed
+12
-23
lines changedLines changed: 8 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | 448 | | |
458 | 449 | | |
459 | 450 | | |
| |||
1116 | 1107 | | |
1117 | 1108 | | |
1118 | 1109 | | |
1119 | | - | |
| 1110 | + | |
1120 | 1111 | | |
1121 | 1112 | | |
1122 | 1113 | | |
| |||
1200 | 1191 | | |
1201 | 1192 | | |
1202 | 1193 | | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
1203 | 1197 | | |
1204 | 1198 | | |
1205 | 1199 | | |
| |||
1225 | 1219 | | |
1226 | 1220 | | |
1227 | 1221 | | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
| 1222 | + | |
1231 | 1223 | | |
1232 | 1224 | | |
1233 | 1225 | | |
| |||
1323 | 1315 | | |
1324 | 1316 | | |
1325 | 1317 | | |
1326 | | - | |
1327 | | - | |
1328 | 1318 | | |
1329 | | - | |
1330 | | - | |
| 1319 | + | |
| 1320 | + | |
1331 | 1321 | | |
1332 | 1322 | | |
1333 | 1323 | | |
| |||
1422 | 1412 | | |
1423 | 1413 | | |
1424 | 1414 | | |
1425 | | - | |
1426 | | - | |
1427 | | - | |
| 1415 | + | |
1428 | 1416 | | |
1429 | 1417 | | |
1430 | 1418 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | | - | |
| 473 | + | |
| 474 | + | |
474 | 475 | | |
475 | 476 | | |
476 | 477 | | |
| |||
485 | 486 | | |
486 | 487 | | |
487 | 488 | | |
488 | | - | |
| 489 | + | |
| 490 | + | |
489 | 491 | | |
490 | 492 | | |
491 | 493 | | |
| |||
555 | 557 | | |
556 | 558 | | |
557 | 559 | | |
558 | | - | |
559 | 560 | | |
560 | 561 | | |
561 | 562 | | |
| |||
0 commit comments