From: Michael Snyder <msnyder@redhat.com>
To: Pierre Muller <muller@cerbere.u-strasbg.fr>
Cc: Michael Snyder <msnyder@cygnus.com>, gdb-patches@sources.redhat.com
Subject: Re: [PATCH] Further extend "maint info sections" cmd with ALLOBJ
Date: Fri, 21 Dec 2001 08:51:00 -0000 [thread overview]
Message-ID: <3C23674E.4A40@redhat.com> (raw)
In-Reply-To: <4.2.0.58.20011221115135.00acb908@ics.u-strasbg.fr>
Pierre Muller wrote:
>
> At 23:30 20/12/2001 , Michael Snyder a écrit:
>
> >As a further extension, the "maint info sections" command
> >will now accept an argument "ALLOBJ" to iterate over all
> >known object files (which includes shared libraries.
> >You can now do (for instance):
> >
> > (gdb) maint info sect .bss ALLOBJ
> >
> >to see info on the .bss sections of all loaded object files.
>
> Great job!
>
> Just a little remark, I would have expected that I get the same output
> for the main executable in
>
> "maint info sect"
> and
> "maint info sect ALLOBJ"
> but when I tried it out on a freshly compiled GDB,
> the seciond command didn't should
> the .stab and .stabstr sections that were shown for the first command.
>
> This is intentional?
Hmm! No. And I hadn't noticed it, thanks for pointing it out.
What's happening is, to do the ALLOBJ version, I use the
section table in the objfile struct rather than the section
list in the bfd. I do that because I want the relocated
addresses of the shared libraries, not the raw addresses
that are in the bfd section table. What I did not notice
is that the .stabs sections are (apparently) omitted from
the objfile section table. I suppose it's likely that the
dwarf debugging sections are too.
Well, fortunately I did not change the behavior of the
original form of the command. I'll mull this over, and
if I can think of a way to bring the new form into
compliance, I will. Otherwise we may just have to
document the short-coming.
prev parent reply other threads:[~2001-12-21 16:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-20 14:35 Michael Snyder
2001-12-21 2:55 ` Pierre Muller
2001-12-21 4:32 ` Pierre Muller
2001-12-21 8:58 ` Michael Snyder
2001-12-21 9:36 ` Michael Snyder
2001-12-21 8:51 ` Michael Snyder [this message]
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=3C23674E.4A40@redhat.com \
--to=msnyder@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=msnyder@cygnus.com \
--cc=muller@cerbere.u-strasbg.fr \
/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