I'm having a problem calling functions from gdb.  I was able to do it
without a problem under RedHat 6.0 but since I upgraded to 6.2, gdb no
longer allows me to do the following:

Suppose we have a simple test program

//--------------------------------------------------
class foo {

int n(int x) {return x;}

}

void main()

  foo f;
  f.n(2); // line 2
}
//----------------------------------------------------


from gdb, if i break at line 2 and then enter:
p f.n(3)

under RedHat 6.0 I got 3 back, but under RedHat 6.2 I get:

Cannot resolve method foo::n to any overloaded instance.

Any clue about what is going on?


Sent via Deja.com http://www.deja.com/
Before you buy.

Reply via email to