]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gprof support for split debuginfo, tweak 2
authorFrank Ch. Eigler <fche@redhat.com>
Fri, 1 May 2026 01:15:50 +0000 (21:15 -0400)
committerFrank Ch. Eigler <fche@elastic.org>
Fri, 1 May 2026 01:18:06 +0000 (21:18 -0400)
This reverts commit a2ceac895716f71daf67eca5b5897bf316500749,
but adds back unconditional BFD_DECOMPRESS, as per amodra:
https://inbox.sourceware.org/binutils/afPQ5BGfFQHYBny1@squeak.grove.modra.org/

Signed-off-by: Frank Ch. Eigler <fche@elastic.org>
gprof/corefile.c

index c7290fbf6b6f7a0737822bdaa5f40990524f76fc..712dd243e9021d2d870a0a9cc5e73288ebb4c6f9 100644 (file)
@@ -207,6 +207,10 @@ open_separated_debug_file (bfd *abfd)
        {
          if (bfd_check_format (debug_bfd, bfd_object))
            {
+             /* Successfully opened the debug file.
+                Enable decompression on the debug file.  */
+              debug_bfd->flags |= BFD_DECOMPRESS;
+
              /* Store the debug BFD for use during symbol reading.
                 We'll use this for bfd_canonicalize_symtab and other symbol ops.  */
              core_debug_bfd = debug_bfd;