This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA] C++ method calls


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]