From: Daniel Jacobowitz <drow@mvista.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Fix a memory corruption in mdebugread.c
Date: Wed, 01 Jan 2003 17:41:00 -0000 [thread overview]
Message-ID: <20030101174132.GA15485@nevyn.them.org> (raw)
In-Reply-To: <20030101133518.GA693@gnat.com>
On Wed, Jan 01, 2003 at 05:35:18PM +0400, Joel Brobecker wrote:
> Hi Daniel,
>
> > So I assume the stProc is nested directly in the type, and we generate
> > a complaint() in the default below?
>
> Right.
>
> > It's worth bearing in mind that we don't actually support C++ in
> > mdebugread; debugging the C++ part won't work well at all. We won't
> > recognize any member methods for instance.
>
> This is indeed good to know, although I kind of guessed this after
> reading the code in mdebugread.c :).
>
> > My concern from your description is that a constructor may have the
> > same name as the enclosing type. Are these mangled names? Qualified
> > names? Base names, in which case the constructor is a problem? You
> > should be able to figure this out from looking at a couple of the names
> > found by the check below.
>
> The method names are mangled, same for the constructors and destructors.
> For instance, one of the constructors for class TC_rule was
> __ct__7TC_ruleXRC7TC_rule. The destructor was __dt__7TC_ruleXv
> (actually, I assumed these stProc entries are constructors and
> destructors, but this a guess based on the name). An example of stProc
> entry for a method: FI_write__7TC_ruleXP4FILE.
>
> stMembers, on the other hand, are not mangled. But they don't come with
> stEnd entries, so we should be safe.
OK. Assuming that the name of the class's stEnd is not mangled like a
constructor, my worry is unfounded. If you add a comment to that effect
then this patch is OK.
>
> > That's not a proper ChangeLog entry; it should be smeting like:
> >
> > 2002-12-31 J. Brobecker <brobecker@gnat.com>
> >
> > * mdebugread.c (parse_symbol): Count until the stEnd matching
> > the structure name.
>
> Sure!
>
> --
> Joel
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2003-01-01 17:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-31 7:12 Joel Brobecker
2002-12-31 7:49 ` Daniel Jacobowitz
2003-01-01 13:35 ` Joel Brobecker
2003-01-01 17:41 ` Daniel Jacobowitz [this message]
2003-01-03 14:05 ` Joel Brobecker
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=20030101174132.GA15485@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb-patches@sources.redhat.com \
/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