summaryrefslogtreecommitdiff
path: root/tests/dwflmodtest.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2005-10-28 07:07:19 +0000
committerRoland McGrath <roland@redhat.com>2005-10-28 07:07:19 +0000
commit6724c90d02659f7466b67b357563042e403d154e (patch)
tree9671d9d41baee4b5256feac1f9f49d45aaa95500 /tests/dwflmodtest.c
parent07d4f2fc1cb53f170a71bc13617bbdd9cb1c3c60 (diff)
downloadelfutils-6724c90d02659f7466b67b357563042e403d154e.tar.gz
NEWS updates
Diffstat (limited to 'tests/dwflmodtest.c')
-rw-r--r--tests/dwflmodtest.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/dwflmodtest.c b/tests/dwflmodtest.c
index 5155f6cb..77d437aa 100644
--- a/tests/dwflmodtest.c
+++ b/tests/dwflmodtest.c
@@ -100,21 +100,21 @@ print_instance (Dwarf_Die *instance, void *arg)
}
static void
-print_inline (Dwarf_Func *func, void *arg)
+print_inline (Dwarf_Die *func, void *arg)
{
if (dwarf_func_inline_instances (func, &print_instance, arg) != 0)
printf (" error finding instances: %s\n", dwarf_errmsg (-1));
}
static int
-print_func (Dwarf_Func *func, void *arg)
+print_func (Dwarf_Die *func, void *arg)
{
const struct info *info = arg;
- const char *file = dwarf_func_file (func);
+ const char *file = dwarf_decl_file (func);
int line = -1;
- dwarf_func_line (func, &line);
- const char *fct = dwarf_func_name (func);
+ dwarf_decl_line (func, &line);
+ const char *fct = dwarf_diename (func);
printf (" %s:%d: %s:", file, line, fct);
@@ -127,15 +127,15 @@ print_func (Dwarf_Func *func, void *arg)
else
{
Dwarf_Addr lo = -1, hi = -1, entry = -1;
- if (dwarf_func_lowpc (func, &lo) == 0)
+ if (dwarf_lowpc (func, &lo) == 0)
lo += info->dwbias;
else
printf (" (lowpc => %s)", dwarf_errmsg (-1));
- if (dwarf_func_highpc (func, &hi) == 0)
+ if (dwarf_highpc (func, &hi) == 0)
hi += info->dwbias;
else
printf (" (highpc => %s)", dwarf_errmsg (-1));
- if (dwarf_func_entrypc (func, &entry) == 0)
+ if (dwarf_entrypc (func, &entry) == 0)
entry += info->dwbias;
else
printf (" (entrypc => %s)", dwarf_errmsg (-1));