From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7109346348059293116==" MIME-Version: 1.0 From: Petr Machata To: elfutils-devel@lists.fedorahosted.org Subject: [PATCH] Accept DW_AT_GNU_call_site_* as attributes that hold location expressions Date: Wed, 10 Sep 2014 22:26:28 +0200 Message-ID: <5d747b1fda32b9c4987b31f8009e88c556222636.1410380644.git.pmachata@redhat.com> In-Reply-To: 25b4c5f3c6b5c513f6c8b2c9da199f9cd02e6be8.1410380644.git.pmachata@redhat.com --===============7109346348059293116== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable - These are extension attributes that correspond in behavior to attributes described in this proposal: http://www.dwarfstd.org/ShowIssue.php?issue=3D100909.2 - N.B.: DW_AT_call_site_data_location doesn't have a DW_AT_GNU_* counterpart. Signed-off-by: Petr Machata --- libdw/ChangeLog | 6 ++++++ libdw/dwarf_getlocation.c | 6 +++++- 2 files changed, 11 insertions(+), 1 deletions(-) diff --git a/libdw/ChangeLog b/libdw/ChangeLog index 5f9b097..cc44004 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,3 +1,9 @@ +2014-09-10 Petr Machata + + * 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 = * dwarf_cu_die.c: New file. diff --git a/libdw/dwarf_getlocation.c b/libdw/dwarf_getlocation.c index 8dffb83..2a4c890 100644 --- a/libdw/dwarf_getlocation.c +++ b/libdw/dwarf_getlocation.c @@ -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 , 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: -- = 1.7.6.5 --===============7109346348059293116==--