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.

Fixes #122
This commit is contained in:
Ian Lance Taylor
2024-07-11 15:39:07 -07:00
parent f69acdfbd6
commit e3e64ddd18
3 changed files with 3 additions and 3 deletions

2
elf.c
View File

@@ -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;
}