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]

Unable to define breakpoint at a method.


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


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