Thread View: gnu.g++.help
1 messages
1 total messages
Started by Low Chee Meng (KSL)
Fri, 08 Jan 1993 14:29
Help: using GDB to debug G++-compiled programs
Author: Low Chee Meng (KSL)
Date: Fri, 08 Jan 1993 14:29
Date: Fri, 08 Jan 1993 14:29
25 lines
1286 bytes
1286 bytes
Hi, I'm using GDB for the first time to debug a C++ program (compiled with -g flag with G++). One thing I couldn't figure out how to do is to execute some method call inside GDB, eg: gdb> print someObj.someMethod(someArgs....) GDB would always return back something like "there's no component named someMethod", even though someMethod is a valid method of the class to which someObj belongs to. Is there something I have to do make the above work? I'm current using GDB 4.6 on Sun OS. Thanks in advance for any help, CheeMeng -- --------------------------------------------------------------------- Chee-Meng Low (cmlow@iti.gov.sg) (fax: 65-777-3043) Knowledge Systems Lab, Information Technology Institute, Singapore >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads