This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[Bug tools/24509] eu-readelf does not know how to dissect DW_AT_discr_list
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: elfutils-devel at sourceware dot org
- Date: Thu, 02 May 2019 16:07:19 +0000
- Subject: [Bug tools/24509] eu-readelf does not know how to dissect DW_AT_discr_list
- Auto-submitted: auto-generated
- References: <bug-24509-10460@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=24509
--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
To check for negative values, I think you can add another
clause, here's what I did:
package Rng is
type Rec (I : Integer) is record
case I is
when Positive =>
C : Character;
case I is
when 1..15 | 17 | 23 =>
null;
when others =>
N : Natural;
end case;
when -52..-1 =>
Q: Natural;
when others =>
S : String (1 .. 10);
end case;
end record;
R : Rec (1);
end Rng;
The proposed patch does not handle this properly:
[ 9f] variant abbrev: 5
discr_list (block1) range: 76-127
--
You are receiving this mail because:
You are on the CC list for the bug.