From: Alan Modra Date: Tue, 7 May 2019 23:55:25 +0000 (+0930) Subject: PR24520, gprof fails to read compressed debug data X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9420801e573e77f0dd522150932eb27199052a04;p=binutils-gdb.git PR24520, gprof fails to read compressed debug data PR 24520 * corefile.c (core_init): Set BFD_DECOMPRESS. --- diff --git a/gprof/ChangeLog b/gprof/ChangeLog index 9815b156127..f920961273c 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,8 @@ +2019-05-08 Alan Modra + + PR 24520 + * corefile.c (core_init): Set BFD_DECOMPRESS. + 2019-04-01 Alan Modra PR 24402 diff --git a/gprof/corefile.c b/gprof/corefile.c index 3717d202940..3f350f5f6b2 100644 --- a/gprof/corefile.c +++ b/gprof/corefile.c @@ -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);