Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/elftoolchain/dist/libdwarf tidy up: parse DW_AT...
details: https://anonhg.NetBSD.org/src/rev/7ee02948c416
branches: trunk
changeset: 344260:7ee02948c416
user: christos <christos%NetBSD.org@localhost>
date: Fri Mar 18 14:58:18 2016 +0000
description:
tidy up: parse DW_AT_specification like DW_AT_abstract_origin
diffstat:
external/bsd/elftoolchain/dist/libdwarf/dwarf_attrval.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diffs (40 lines):
diff -r a14108ba5cb4 -r 7ee02948c416 external/bsd/elftoolchain/dist/libdwarf/dwarf_attrval.c
--- a/external/bsd/elftoolchain/dist/libdwarf/dwarf_attrval.c Fri Mar 18 14:55:34 2016 +0000
+++ b/external/bsd/elftoolchain/dist/libdwarf/dwarf_attrval.c Fri Mar 18 14:58:18 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwarf_attrval.c,v 1.6 2016/03/17 19:02:38 christos Exp $ */
+/* $NetBSD: dwarf_attrval.c,v 1.7 2016/03/18 14:58:18 christos Exp $ */
/*-
* Copyright (c) 2007 John Birrell (jb%freebsd.org@localhost)
@@ -28,7 +28,7 @@
#include "_libdwarf.h"
-__RCSID("$NetBSD: dwarf_attrval.c,v 1.6 2016/03/17 19:02:38 christos Exp $");
+__RCSID("$NetBSD: dwarf_attrval.c,v 1.7 2016/03/18 14:58:18 christos Exp $");
ELFTC_VCSID("Id: dwarf_attrval.c 3159 2015-02-15 21:43:27Z emaste ");
int
@@ -177,7 +177,8 @@
}
if (at == NULL &&
- (at = _dwarf_attr_find(die, DW_AT_abstract_origin)) != NULL) {
+ ((at = _dwarf_attr_find(die, DW_AT_specification)) != NULL ||
+ (at = _dwarf_attr_find(die, DW_AT_abstract_origin)) != NULL)) {
switch (at->at_form) {
case DW_FORM_ref1:
case DW_FORM_ref2:
@@ -192,11 +193,6 @@
}
}
- if (at == NULL &&
- (at = _dwarf_attr_find(die, DW_AT_specification)) != NULL) {
- at = dwarf_indirect_find(dbg, die, attr, at->u[0].u64);
- }
-
if (at == NULL) {
DWARF_SET_ERROR(dbg, err, DW_DLE_NO_ENTRY);
return (DW_DLV_NO_ENTRY);
Home |
Main Index |
Thread Index |
Old Index