Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: dberlin@redhat.com (Daniel Berlin+list.gdb-patches)
To: Nick Duffek <nsd@redhat.com>
Cc: gdb-patches@sourceware.cygnus.com
Subject: Re: [RFA] C++ method calls
Date: Sat, 08 Jul 2000 20:02:00 -0000	[thread overview]
Message-ID: <863dlkatux.fsf@dan2.cygnus.com> (raw)
In-Reply-To: <200007090205.e69259n00849@rtl.cygnus.com>

Nick Duffek <nsd@redhat.com> writes:

> 
> the following GDB commands should fail but don't:
> 
>   call c.ptr (&c);
>   call c.ref (c);
> 
> After fixing that with part of the appended patch, the following GDB
> commands shouldn't fail but do:
> 
>   call c.ptr (&b);
>   call c.ref (b);
> 
> The patch fixes the above problems, adds gdb.c++/classes.exp tests to
> check for them, and fixes a minor indentation problem.  It also seems to
> fix two gdb.c++/namespace.exp failures.  There are no regressions on
> sparc-sun-solaris2.
> 
> The enum test patch I posted earlier today needs to be applied first.
> 
> Okay to apply?
> 
> Nick Duffek
> nsd@redhat.com
> 
> 2000-07-08  Nick Duffek  <nsd@redhat.com>
> 
> 	* gdbtypes.c (is_ancestor): Infer type equivalence from name
> 	equivalence.
> 	(rank_one_type): Use strcmp instead of == to compare type names.
> 	Don't swap parm with arg when checking TYPE_CODE_REF types.

I probably missed this one because in DWARF2, which is what i'm almost always using, unless we hit hash table collisions, which we almost never do (you'd need a *lot* of type names), == should be sufficient to compare type names when dealing with C++.
You do realize, of course, that the fact that it isn't  means you are duplicating info when reading in STABS/DBX/whatever debug format you are using,  that you shouldn't be.

Feel free to apply them.
--Dan


       reply	other threads:[~2000-07-08 20:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200007090205.e69259n00849@rtl.cygnus.com>
2000-07-08 20:02 ` Daniel Berlin+list.gdb-patches [this message]
2000-07-08 22:18   ` Nick Duffek

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=863dlkatux.fsf@dan2.cygnus.com \
    --to=dberlin@redhat.com \
    --cc=gdb-patches@sourceware.cygnus.com \
    --cc=nsd@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