Project

General

Profile

Actions

Feature #12228

closed

libctf could handle gcc dwarf4

Added by Robert Mustacchi over 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Today libctf requires DWARF version 2. We should also be able to accept dwarf version 4. With this change, the ctf test suite passes for gcc 7 and gcc 8 with dwarf4. The major thing we need to add is some new detection over how structure sizing works that is a part of DWARF 4.

Actions #1

Updated by Electric Monk about 1 year ago

  • Gerrit CR set to 330
Actions #2

Updated by Robert Mustacchi 12 months ago

This was tested by using the ctf test suite and verifying that it was clean for gcc 4.4.4, 7, and 8 when using -gdwarf-4. In addition with the test suite improvements that exist for clang, clang8, clang9, and clang10 are all in similar shape with everything passing excepting existing bugs in clang's dwarf generation.

Actions #3

Updated by Electric Monk 12 months ago

  • Status changed from New to Closed
  • % Done changed from 90 to 100

git commit 40f72ea90006954fb73dcb696e7fede2435c4cb9

commit  40f72ea90006954fb73dcb696e7fede2435c4cb9
Author: Robert Mustacchi <rm@fingolfin.org>
Date:   2020-07-30T18:35:47.000Z

    12228 libctf could handle gcc dwarf4
    Reviewed by: John Levon <john.levon@joyent.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF