[binutils-gdb] gprof support for split debuginfo, tweak 2

Frank Ch. Eigler fche@sourceware.org
Fri May 1 01:18:42 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=27d21139e356aca4b77d32e81105c465f1e6650c

commit 27d21139e356aca4b77d32e81105c465f1e6650c
Author: Frank Ch. Eigler <fche@redhat.com>
Date:   Thu Apr 30 21:15:50 2026 -0400

    gprof support for split debuginfo, tweak 2
    
    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>

Diff:
---
 gprof/corefile.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gprof/corefile.c b/gprof/corefile.c
index c7290fbf6b6..712dd243e90 100644
--- a/gprof/corefile.c
+++ b/gprof/corefile.c
@@ -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;


More information about the Binutils-cvs mailing list