summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2019-06-25 00:21:42 +0200
committerMark Wielaard <mark@klomp.org>2019-06-25 00:21:42 +0200
commitac9e5349dd662289485e67403be943a4ec78cd4d (patch)
tree35c6434cf7823ee310964ab6e7d2a9cd1e7879da
parent1fc628e71c920c0ef35594ebffe1ddf89f868905 (diff)
stack: Fix error message when dwfl_core_file_attach fails.
Reported-by: Mao Han <han_mao@c-sky.com> Signed-off-by: Mark Wielaard <mark@klomp.org>
-rw-r--r--src/ChangeLog4
-rw-r--r--src/stack.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2cde63ce..c78e6fa1 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2019-06-25 Mark Wielaard <mark@klomp.org>
+
+ * stack.c (parse_opt): Fix dwfl_core_file_attach error message.
+
2019-06-18 Mark Wielaard <mark@klomp.org>
* strip.c (handle_elf): Use elf_begin ELF_C_WRITE, instead of
diff --git a/src/stack.c b/src/stack.c
index c5f347e1..4daabce7 100644
--- a/src/stack.c
+++ b/src/stack.c
@@ -608,7 +608,7 @@ parse_opt (int key, char *arg __attribute__ ((unused)),
if (core != NULL)
{
if (dwfl_core_file_attach (dwfl, core) < 0)
- error (EXIT_BAD, 0, "dwfl_core_file_report: %s", dwfl_errmsg (-1));
+ error (EXIT_BAD, 0, "dwfl_core_file_attach: %s", dwfl_errmsg (-1));
}
/* Makes sure we are properly attached. */