Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Elizabeth Chastain <chastain@cygnus.com>
To: dberlin@redhat.com
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] New C++ abstraction patch
Date: Wed, 21 Feb 2001 07:43:00 -0000	[thread overview]
Message-ID: <200102211543.HAA22286@bosch.cygnus.com> (raw)

> I think the right thing is to do "^_Z.*[1-9][a-zA-Z_][a-zA-Z0-9_]+D[0-2]Ev$",
> since the class name always comes right before the destructor.

I like the ^Z part.  I thought the [1-9] should be [1-9]+, but then I
realized that the ".*" in front of it takes care of classes that are
longer than 9 characters.

The [a-zA-Z_][a-zA-Z0-9_]+ does not accept 1-character classes.  How about
[a-zA-Z_][a-zA-Z0-9_]*.

GNU C++ has an "-fdollars-in-identifiers" flag, so you have to accept '$'
as an alphabetic character.

  ^_Z.*[1-9][a-zA-Z_$][a-zA-Z0-9_$]*D[0-2]Ev$

> Otherwise, i'll look at cleaning up the ternary search tree stuff for
> demangled names and submitting it.

Watch out -- dependency creep.

If it were me, I would go ahead with the v3 abi stuff and get something
in with an r.e. that works most of the time.  Today's gdb works 0%
of the time in this case.  Then pick up the ternary search trees as a
separate project.  But that's just me.

(I read up on ternary search trees last night.  They look like an awesome
data type to replace the hash tables.)

Michael


             reply	other threads:[~2001-02-21  7:43 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-21  7:43 Michael Elizabeth Chastain [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-02-20 20:42 Michael Elizabeth Chastain
2001-02-20 23:42 ` Daniel Berlin
2001-02-21 11:53   ` Michael Snyder
2001-02-21 14:24     ` J.T. Conklin
2001-02-21 15:21       ` Michael Snyder
2001-02-20 17:35 Michael Elizabeth Chastain
2001-02-20 19:42 ` Daniel Berlin
2001-02-21 10:42   ` Andrew Cagney
2001-02-21 13:03     ` Daniel Berlin
2001-02-21 13:25       ` Andrew Cagney
2001-02-21 15:19         ` Michael Snyder
2001-02-22  8:14           ` Andrew Cagney
2001-02-20 16:02 Daniel Berlin
2001-02-21  1:53 ` Eli Zaretskii
2001-02-21 10:56 ` Andrew Cagney
2001-02-21 13:31   ` Daniel Berlin

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=200102211543.HAA22286@bosch.cygnus.com \
    --to=chastain@cygnus.com \
    --cc=dberlin@redhat.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