public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug tools/24550] New: eu-readelf does not know about DW_AT_GNU_bias
@ 2019-05-13 17:54 tromey at sourceware dot org
  2019-05-14 18:36 ` [Bug tools/24550] eu-readelf does not know about DW_AT_GNU_{bias,numerator,denumerator} mark at klomp dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: tromey at sourceware dot org @ 2019-05-13 17:54 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=24550

            Bug ID: 24550
           Summary: eu-readelf does not know about DW_AT_GNU_bias
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tools
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

The Ada compiler can emit DW_AT_GNU_bias in some situations.

Here is "tt.adb":

with Text_IO; use Text_IO;
procedure Tt is
   type Small is range -7 .. -4;
   for Small'Size use 2;
   Y : Small := -5;

  type Repeat_Count_T is range 1 .. 2 ** 6;
  for Repeat_Count_T'Size use 6;
  X : Repeat_Count_T := 64;
begin
  Put_Line (X'Image);
  Put_Line (Y'Image);
end Tt;


Compile with

gcc -fgnat-encodings=minimal -g -c tt.adb

gdb's dwarf2.def says:

/* Biased integer extension.
   See https://gcc.gnu.org/wiki/DW_AT_GNU_bias .  */
DW_TAG (DW_AT_GNU_bias, 0x2305)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-05-16 15:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-13 17:54 [Bug tools/24550] New: eu-readelf does not know about DW_AT_GNU_bias tromey at sourceware dot org
2019-05-14 18:36 ` [Bug tools/24550] eu-readelf does not know about DW_AT_GNU_{bias,numerator,denumerator} mark at klomp dot org
2019-05-15 16:13 ` tromey at sourceware dot org
2019-05-15 18:02 ` tromey at sourceware dot org
2019-05-15 18:17 ` tromey at sourceware dot org
2019-05-16 15:17 ` mark at klomp dot org
2019-05-16 15:28 ` mark at klomp dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).