This is the mail archive of the gdb@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]
Other format: [Raw text]

Re: C++/Java regressions


ian> Yes, I think it should print A::bar without the const.  I have the
ian> patch in my sources, but I haven't checked it in yet.

But what about:

  class Foo
  {
    public:
      int method ();
      int method () const;
  };

If the name comes back as "Foo::method" then we have ambiguity
in gdb's output.

I think the const looks ugly and the code that prints the function
name is also ugly.  But I don't wanna print the same name for two
different methods.

Michael C


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