summaryrefslogtreecommitdiff
path: root/libbacktrace
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2012-09-29 17:50:54 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-09-29 17:50:54 +0000
commit8a447b3d4d5fea7bbbab81658a696f642b2b8d93 (patch)
treee6e8bb0d54eac192302f9f9e709deea7ffb64fa4 /libbacktrace
parent7c0de7535345f7d271c89d5121c7edfabd1e79f7 (diff)
downloadgcc-8a447b3d4d5fea7bbbab81658a696f642b2b8d93.tar.gz
re PR other/54749 (libbacktrace)
PR other/54749 * fileline.c (fileline_initialize): Pass errnum as -1 when reporting that we could not read executable information after a previous failure. From-SVN: r191855
Diffstat (limited to 'libbacktrace')
-rw-r--r--libbacktrace/ChangeLog7
-rw-r--r--libbacktrace/fileline.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog
index c7702baf3bd..c5725793f2f 100644
--- a/libbacktrace/ChangeLog
+++ b/libbacktrace/ChangeLog
@@ -1,3 +1,10 @@
+2012-09-29 Ian Lance Taylor <iant@google.com>
+
+ PR other/54749
+ * fileline.c (fileline_initialize): Pass errnum as -1 when
+ reporting that we could not read executable information after a
+ previous failure.
+
2012-09-27 Ian Lance Taylor <iant@google.com>
PR bootstrap/54732
diff --git a/libbacktrace/fileline.c b/libbacktrace/fileline.c
index 6aeaf40159f..4efd19b0595 100644
--- a/libbacktrace/fileline.c
+++ b/libbacktrace/fileline.c
@@ -63,7 +63,7 @@ fileline_initialize (struct backtrace_state *state,
if (failed)
{
- error_callback (data, "failed to read executable information", 0);
+ error_callback (data, "failed to read executable information", -1);
return 0;
}