public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "rajpal.gusain at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/29188] gdb too slow and hogs memory for debug binary generated with gcc 11.2
Date: Sat, 04 Jun 2022 17:46:09 +0000	[thread overview]
Message-ID: <bug-29188-4717-3plFgIz1CV@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-29188-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=29188

--- Comment #11 from gusain <rajpal.gusain at gmail dot com> ---
Thanks for your help. It does seem like it's similar to 27754 but let me share
few observations

% readelf --debug-dump=macro ld-g | grep 'import.*0x0$' | wc -l 
277652

% readelf --debug-dump=macro lld-g | grep 'import.*0x0$' | wc -l 
277655

% readelf --debug-dump=macro gold-g | grep 'import.*0x0$' | wc -l 
0

You had a comment on other ticket that it doesn't seem to affect lld but my
binary linked with ldd doesn't suggest it. 
With gold, I have 0 occurrences but binary is no good because when I bring it
up in gdb, source information seems to be incorrect. When I put a breakpoint in
my code, gdb tells me that it's in some libstdc++ file.


Do you still think it's not gdb bug ? If not, whose bug is it ?

Are you aware of any workaround (gold link doesn't work for me and I have other
issues with it as I mentioned before) ?

Do you think it's gold linker bug and I should file a ticket for it ? Is there
information I can get which can shed more light on this gold-linked binary
issue  ? 



(In reply to Tom Tromey from comment #10)
> (In reply to gusain from comment #9)
> 
> > Is there any other information I can get to confirm it's same as other issue
> > you mentioned ?
> 
> Try something like:
> 
> readelf --debug-dump=macro | grep 'import.* 0x0$'
> 
> See bug #27754

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2022-06-04 17:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-26 17:30 [Bug gdb/29188] New: " rajpal.gusain at gmail dot com
2022-05-26 18:06 ` [Bug gdb/29188] " simark at simark dot ca
2022-05-26 18:24 ` rajpal.gusain at gmail dot com
2022-05-26 18:41 ` simark at simark dot ca
2022-05-27 10:52 ` rajpal.gusain at gmail dot com
2022-05-27 12:50 ` simark at simark dot ca
2022-05-27 12:57 ` tromey at sourceware dot org
2022-05-27 13:43 ` simark at simark dot ca
2022-05-27 15:11 ` rajpal.gusain at gmail dot com
2022-06-03 20:31 ` rajpal.gusain at gmail dot com
2022-06-04 16:12 ` tromey at sourceware dot org
2022-06-04 17:46 ` rajpal.gusain at gmail dot com [this message]
2022-10-25 16:16 ` tromey at sourceware dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-29188-4717-3plFgIz1CV@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).