Resolving Ambiguous References to Overloaded Functions

In most cases, the debugger works with one specific function at a time. In the case of overloaded function names, you must specify the desired overloaded function. Following are two ways to resolve references to overloaded function names, both under the control of the $overloadmenu debugger variable (the default setting of this debugger variable is 1):

 

(idb) set $overloadmenu = 1

(idb) stop in C::foo

Select from

----------------------------------------------------

     1 int C::foo(double*)

     2 void C::foo(float)

     3 void C::foo(int)

     4 void C::foo(void)

     5 None of the above

----------------------------------------------------

1

[#10: stop in int C::foo(double*)]

 

(idb) func foo

Error: foo is overloaded

(idb) func foo(double *)

int C::foo(double*) in src/x_overload.cxx line No. 25:

     25 int  C::foo(double *) { return state;}