summaryrefslogtreecommitdiffstats
path: root/tests/addrscopes.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2005-08-27 10:33:26 +0000
committerRoland McGrath <[email protected]>2005-08-27 10:33:26 +0000
commit71e15a01742e5d5de9c6260d4526146be54e5a8a (patch)
tree2796d8ea1fa5580b4e381881314fdad12904635f /tests/addrscopes.c
parent995f92d7d696930e2cbf08427d028d948e8c5180 (diff)
libdw/
2005-08-27 Roland McGrath <[email protected]> * dwarf_getscopes.c (dwarf_getscopes): Rewritten using __libdw_visit_scopes. * dwarf_getscopes_die.c: New file. * Makefile.am (libdw_a_SOURCES): Add it. * libdw.h: Declare dwarf_getscopes_die. * libdw.map: Bump to 0.115 and add it. * libdw_visit_scopes.c (__libdw_visit_scopes): Pass a struct containing a DIE and its parent pointer, instead of just Dwarf_Die. Take two functions for both preorder and postorder visitors. * libdwP.h: Update decl. (struct Dwarf_Die_Chain): New type. * dwarf_func_inline.c: Update uses. * dwarf_diename.c (dwarf_diename): Use dwarf_attr_integrate. Add INTDEF. * libdwP.h: Add INTDECL. * dwarf_func_name.c (dwarf_func_name): Use dwarf_diename. src/ 2005-08-27 Roland McGrath <[email protected]> * addr2line.c (dwarf_diename_integrate): Function removed. (print_dwarf_function): Use plain dwarf_diename. tests/ 2005-08-27 Roland McGrath <[email protected]> * run-funcscopes.sh: New file. * testfile25.bz2: New data file. * Makefile.am (TESTS, EXTRA_DIST): Add them. 2005-08-26 Roland McGrath <[email protected]> * addrscopes.c (dwarf_diename_integrate): Removed. (print_vars, handle_address): Use plain dwarf_diename. 2005-08-25 Roland McGrath <[email protected]> * funcscopes.c: New file. * Makefile.am (noinst_PROGRAMS): Add it. (funcscopes_LDADD): New variable. * run-addrscopes.sh: Add another case. * testfile24.bz2: New data file. * Makefile.am (EXTRA_DIST): Add it. * addrscopes.c (handle_address): Take new argument IGNORE_INLINES, pass it to dwarf_getscopes. (main): Pass it, true when '=' follows an address.
Diffstat (limited to 'tests/addrscopes.c')
-rw-r--r--tests/addrscopes.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/tests/addrscopes.c b/tests/addrscopes.c
index 4ef00648..9870175c 100644
--- a/tests/addrscopes.c
+++ b/tests/addrscopes.c
@@ -45,13 +45,6 @@ paddr (const char *prefix, Dwarf_Addr addr, Dwfl_Line *line)
printf ("%s%#" PRIx64, prefix, addr);
}
-static const char *
-dwarf_diename_integrate (Dwarf_Die *die)
-{
- Dwarf_Attribute attr_mem;
- return dwarf_formstring (dwarf_attr_integrate (die, DW_AT_name, &attr_mem));
-}
-
static void
print_vars (unsigned int indent, Dwarf_Die *die)
{
@@ -63,7 +56,7 @@ print_vars (unsigned int indent, Dwarf_Die *die)
case DW_TAG_variable:
case DW_TAG_formal_parameter:
printf ("%*s%-30s[%6" PRIx64 "]\n", indent, "",
- dwarf_diename_integrate (&child),
+ dwarf_diename (&child),
(uint64_t) dwarf_dieoffset (&child));
break;
default:
@@ -83,7 +76,7 @@ print_vars (unsigned int indent, Dwarf_Die *die)
case DW_TAG_variable:
case DW_TAG_formal_parameter:
printf ("%*s%s (abstract)\n", indent, "",
- dwarf_diename_integrate (&child));
+ dwarf_diename (&child));
break;
default:
break;
@@ -118,7 +111,7 @@ handle_address (GElf_Addr pc, Dwfl *dwfl)
indent += INDENT;
printf ("%*s%s (%#x)", indent, "",
- dwarf_diename_integrate (die) ?: "<unnamed>",
+ dwarf_diename (die) ?: "<unnamed>",
dwarf_tag (die));
Dwarf_Addr lowpc, highpc;