[PINGv2] [PATCH v4 0/2] [gdb] untie and validate inheritance location

Bruno Larsen blarsen@redhat.com
Wed May 18 11:24:49 GMT 2022


ping

Cheers!
Bruno Larsen

On 5/11/22 08:12, Bruno Larsen wrote:
> Ping
> 
> Cheers!
> Bruno Larsen
> 
> On 4/27/22 09:28, Bruno Larsen wrote:
>> Changelog for v4:
>>    * rebased on master
>>    * removed unnecessary checking after Simon's patch
>>
>> This started with what was thought of as an incorrect inheritance
>> location expression, but turned out to be a correct, but unusual
>> expression, and uncovered an incorrect assumption when calculating
>> offsets of baseclasses.
>>
>> This patchset is the new iteration of that solution, that changed
>> gnuv3_baseclass_offset calculation to allow for non-virtual inheritance
>> that has a non-trivial location expression and also moved the basic
>> validation to this function. The check in value_contents_copy_raw was
>> changed to an assert.
>> Finally, the test was expanded to have one incorrect trivial location,
>> and two non-trivial location expressions, one correct and one incorrect.
>>
>> Bruno Larsen (2):
>>    [gdb] Untied inheritance virtuality and loc kind
>>    [gdb] Add Simple offset validation when calculating baseclass_offset
>>
>>   gdb/gnu-v3-abi.c                              |  24 +-
>>   .../gdb.dwarf2/dw2-inheritance-locexpr-1.exp  | 233 +++++++++++++++++
>>   .../gdb.dwarf2/dw2-inheritance-locexpr-2.exp  | 235 ++++++++++++++++++
>>   .../gdb.dwarf2/dw2-inheritance-locexpr.c      |  69 +++++
>>   gdb/value.c                                   |   8 +-
>>   5 files changed, 562 insertions(+), 7 deletions(-)
>>   create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-inheritance-locexpr-1.exp
>>   create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-inheritance-locexpr-2.exp
>>   create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-inheritance-locexpr.c
>>



More information about the Gdb-patches mailing list