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

"Frank Ch. Eigler via Binutils-cvs" <[email protected]>
Newsgroups gmane.comp.gnu.binutils.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=27d21139e356aca4b77d32e81105c465f1e6650c

commit 27d21139e356aca4b77d32e81105c465f1e6650c
Author: Frank Ch. Eigler <[email protected]>
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/[email protected]/
    
    Signed-off-by: Frank Ch. Eigler <[email protected]>

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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.