home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!spool.mu.edu!yale.edu!jvnc.net!newsserver.jvnc.net!newsserver.technet.sg!iti.gov.sg!cmlow
- From: cmlow@iti.gov.sg (Low Chee Meng (KSL))
- Subject: Help: using GDB to debug G++-compiled programs
- Message-ID: <1993Jan11.122250.23513@iti.gov.sg>
- Sender: news@iti.gov.sg (News Admin)
- Organization: National Computer Board, Singapore
- Date: Mon, 11 Jan 1993 12:22:50 GMT
- Lines: 29
-
- Hi,
-
- I'm currently using GDB 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....)
- or
- gdb> set someVar = someObjPtr->someMetthod(....)
-
- 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? has anyone ever
- had success getting GDB to execute any method call?
-
- I'm current using GDB 4.6 and GCC 2.2.2 on Sun OS.
-
- Thanks in advance for any help,
-
- Chee Meng
-
-
- --
- ---------------------------------------------------------------------
- Chee-Meng Low (cmlow@iti.gov.sg) (fax: 65-777-3043)
- Knowledge Systems Lab, Information Technology Institute, Singapore
- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
-