Unable to define breakpoint at a method.
Janarthanan, Bhagatram
bhagatram.janarthanan@intel.com
Fri Nov 7 06:40:00 GMT 2003
Hi all,
I am trying to define a debug breakpoint at a method of a class
which is included through a shared library(linux - ".so"). I used g++
with '-g' to compile. The library has been dynamically loaded into the
executable.
============
(gdb) b Controller::instance_
the class Controller does not have any method named instance_
Hint: try 'Controller::instance_<TAB> or 'Controller::instance_<ESC-?>
(Note leading single quote.)
(gdb) b Controller::instance_
instance_add_vars(Snr_instance_t*)
instance_match_suppliers(Snr_instance_t*, Snr_group_t*)
(gdb) b Controller::instance_add_vars
the class Controller does not have any method named instance_add_vars
Hint: try 'Controller::instance_add_vars<TAB> or
'Controller::instance_add_vars<ESC-?>
(Note leading single quote.)
(gdb) b Controller::instance_add_vars(Snr_instance_t*)
Function "Controller::instance_add_vars(Snr_instance_t*)" not defined.
=====================
As shown above, it does display the symbol when I enter TAB-TAB.
But it saya there is no such method when I enter the complete method. Is
there anything I am missing?
-Thanks
Bhagat
More information about the Gdb
mailing list