]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Accept DW_AT_GNU_call_site_* as attributes that hold location expressions
authorPetr Machata <pmachata@redhat.com>
Wed, 10 Sep 2014 20:26:28 +0000 (22:26 +0200)
committerPetr Machata <pmachata@redhat.com>
Thu, 11 Sep 2014 17:45:11 +0000 (19:45 +0200)
- These are extension attributes that correspond in behavior to
  attributes described in this proposal:
http://www.dwarfstd.org/ShowIssue.php?issue=100909.2

- N.B.: DW_AT_call_site_data_location doesn't have a DW_AT_GNU_*
  counterpart.

Signed-off-by: Petr Machata <pmachata@redhat.com>
libdw/ChangeLog
libdw/dwarf_getlocation.c

index 5f9b09719f2b0cedfc16c5101b8854227ca14d9f..cc44004eb7d9865ec981d3a74335a96631c170de 100644 (file)
@@ -1,3 +1,9 @@
+2014-09-10  Petr Machata  <pmachata@redhat.com>
+
+       * dwarf_getlocation.c (attr_ok): Also accept
+       DW_AT_GNU_call_site_value, DW_AT_GNU_call_site_data_value,
+       DW_AT_GNU_call_site_target, DW_AT_GNU_call_site_target_clobbered.
+
 2014-08-15  Mark Wielaard  <mjw@redhat.com>
 
        * dwarf_cu_die.c: New file.
index 8dffb83f496f33caa7ea2d1aa1b52aa3d17a9987..2a4c8906f4a6eb1c5bc6861877d8e14836033658 100644 (file)
@@ -1,5 +1,5 @@
 /* Return location expression list.
-   Copyright (C) 2000-2010, 2013 Red Hat, Inc.
+   Copyright (C) 2000-2010, 2013, 2014 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2000.
 
@@ -57,6 +57,10 @@ attr_ok (Dwarf_Attribute *attr)
     case DW_AT_return_addr:
     case DW_AT_static_link:
     case DW_AT_segment:
+    case DW_AT_GNU_call_site_value:
+    case DW_AT_GNU_call_site_data_value:
+    case DW_AT_GNU_call_site_target:
+    case DW_AT_GNU_call_site_target_clobbered:
       break;
 
     default: