diff options
author | Alan Modra <amodra@gmail.com> | 2019-05-08 09:25:25 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-05-08 09:40:07 +0930 |
commit | 9420801e573e77f0dd522150932eb27199052a04 (patch) | |
tree | c17bc51af21801a555f7dbdbd9c2e6339dbd42db /gprof | |
parent | c91f298b52766b41e9612fabf93f249cd179bdd7 (diff) | |
download | gdb-9420801e573e77f0dd522150932eb27199052a04.zip gdb-9420801e573e77f0dd522150932eb27199052a04.tar.gz gdb-9420801e573e77f0dd522150932eb27199052a04.tar.bz2 |
PR24520, gprof fails to read compressed debug data
PR 24520
* corefile.c (core_init): Set BFD_DECOMPRESS.
Diffstat (limited to 'gprof')
-rw-r--r-- | gprof/ChangeLog | 5 | ||||
-rw-r--r-- | gprof/corefile.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog index 9815b15..f920961 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -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 diff --git a/gprof/corefile.c b/gprof/corefile.c index 3717d20..3f350f5 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); |