]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Fix tests/addrcfi error reporting.
authorRoland McGrath <roland@redhat.com>
Fri, 23 Apr 2010 05:38:58 +0000 (22:38 -0700)
committerRoland McGrath <roland@redhat.com>
Fri, 23 Apr 2010 05:38:58 +0000 (22:38 -0700)
tests/ChangeLog
tests/addrcfi.c

index e4f469c68aa5d66d33fd3505f43b0f91737df9e2..60b0847a973563d0280a4ff009fd199182d726c1 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-22  Roland McGrath  <roland@redhat.com>
+
+       * addrcfi.c (handle_cfi): Fix function name in error message.
+       Use dwarf_errmsg, not dwfl_errmsg, after dwarf_cfi_addrframe.
+
 2010-04-14  Roland McGrath  <roland@redhat.com>
 
        * Makefile.am (EXTRA_DIST): Add run-test-flag-nobits.sh here too.
index 2a3db05c16e5ee49347552f41ea657de633f4838..4e042418faaee8f9955cbc31b6ce65d1e2df48ff 100644 (file)
@@ -1,5 +1,5 @@
 /* Test program for CFI handling.
-   Copyright (C) 2009 Red Hat, Inc.
+   Copyright (C) 2009-2010 Red Hat, Inc.
    This file is part of Red Hat elfutils.
 
    Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -100,7 +100,7 @@ handle_cfi (Dwfl *dwfl, const char *which, Dwarf_CFI *cfi,
   int result = dwarf_cfi_addrframe (cfi, pc - stuff->bias, &stuff->frame);
   if (result != 0)
     {
-      error (0, 0, "dwarf_addrframe (%s): %s", which, dwfl_errmsg (-1));
+      error (0, 0, "dwarf_cfi_addrframe (%s): %s", which, dwarf_errmsg (-1));
       return 1;
     }