PR24520, gprof fails to read compressed debug data

PR 24520
	* corefile.c (core_init): Set BFD_DECOMPRESS.
This commit is contained in:
Alan Modra 2019-05-08 09:25:25 +09:30
parent c91f298b52
commit 9420801e57
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2019-05-08 Alan Modra <amodra@gmail.com>
PR 24520
* corefile.c (core_init): Set BFD_DECOMPRESS.
2019-04-01 Alan Modra <amodra@gmail.com>
PR 24402

View File

@ -186,6 +186,8 @@ core_init (const char * aout_name)
done (1);
}
core_bfd->flags |= BFD_DECOMPRESS;
if (!bfd_check_format (core_bfd, bfd_object))
{
fprintf (stderr, _("%s: %s: not in executable format\n"), whoami, aout_name);