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: Unable to define breakpoint at a method.


On Thu, Nov 06, 2003 at 10:30:49PM -0800, Janarthanan, Bhagatram wrote:
> 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?

There are some bugs in this area.

See the ' mark in the suggestion?  Try with that.  If you can create a
small testcase, that would help us fix the underlying problem.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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