aboutsummaryrefslogtreecommitdiff
path: root/libbacktrace/elf.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2024-07-11 15:39:07 -0700
committerIan Lance Taylor <iant@golang.org>2024-07-11 15:39:07 -0700
commitb96789abf8a51e8f70309799b5dfee36d4fb3da6 (patch)
treee14677cf3abe206fdacfbd4a6f9808a77d5e7a12 /libbacktrace/elf.c
parent02f7525e5e9e8d749c9ba2b9a925da4b202553ce (diff)
downloadgcc-b96789abf8a51e8f70309799b5dfee36d4fb3da6.zip
gcc-b96789abf8a51e8f70309799b5dfee36d4fb3da6.tar.gz
gcc-b96789abf8a51e8f70309799b5dfee36d4fb3da6.tar.bz2
libbacktrace: suggest how to fix missing debug info
* elf.c (elf_nodebug): Suggest -g. * macho.c (macho_nodebug): Suggest -g and dsymutil. * pecoff.c (coff_nodebug): Suggest -g.
Diffstat (limited to 'libbacktrace/elf.c')
-rw-r--r--libbacktrace/elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbacktrace/elf.c b/libbacktrace/elf.c
index 735f875..e6a66c0 100644
--- a/libbacktrace/elf.c
+++ b/libbacktrace/elf.c
@@ -589,7 +589,7 @@ elf_nodebug (struct backtrace_state *state, uintptr_t pc,
return bdata.ret;
}
- error_callback (data, "no debug info in ELF executable", -1);
+ error_callback (data, "no debug info in ELF executable (make sure to compile with -g)", -1);
return 0;
}