Project

General

Profile

Actions

Bug #2942

closed

CTF tools need to handle files which legitimately lack data

Added by Rich Lowe over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
tools - gate/build tools
Start date:
2012-06-28
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

There are, within our source trees, files which compile to nothing (who can imagine why).

The CTF tools need to handle the possibility that a source file may legitimately have no type data because it has no code, as the compiler may choose to emit either an empty CU, or no CU at all in this case.


Related issues

Has duplicate illumos gate - Bug #1870: ctfconvert should accept DWARF objects with no type dataClosedRich Lowe2011-12-09

Actions
Actions #1

Updated by Rich Lowe over 9 years ago

The fix I have for this employs a simple heuristic "any file which contains executable text must also contain actual DWARF type data". The presumption being that writing actual code such that no DWARF is emitted is impossible.

Actions #2

Updated by Rich Lowe over 9 years ago

  • Status changed from New to Resolved
  • % Done changed from 50 to 100

Resolved in r13745 commit:6b3106b4250f

Actions

Also available in: Atom PDF