This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] C++ method calls
- To: dberlin at redhat dot com
- Subject: Re: [RFA] C++ method calls
- From: Nick Duffek <nsd at redhat dot com>
- Date: Sun, 9 Jul 2000 01:23:49 -0400
- CC: gdb-patches at sourceware dot cygnus dot com
- References: <863dlkatux.fsf@dan2.cygnus.com>
On 8-Jul-2000, Daniel Berlin+list . gdb-patches wrote:
>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++.
The case I noticed was when both names were NULL, as happens when checking
TYPE_CODE_PTR args.
>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.
In the absence of a comment that type names are guaranteed to be ==, I
figured it'd be safest to do a strcmp() rather than just a NULL check.
>Feel free to apply them.
Done,
Nick