home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / g / help / 1651 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.2 KB  |  37 lines

  1. Newsgroups: gnu.g++.help
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!newsserver.jvnc.net!newsserver.technet.sg!iti.gov.sg!cmlow
  3. From: cmlow@iti.gov.sg (Low Chee Meng (KSL))
  4. Subject: Help: using GDB to debug G++-compiled programs
  5. Message-ID: <1993Jan8.142936.24525@iti.gov.sg>
  6. Keywords: gdb, g++
  7. Sender: news@iti.gov.sg (News Admin)
  8. Organization: National Computer Board, Singapore
  9. Date: Fri, 8 Jan 1993 14:29:36 GMT
  10. Lines: 25
  11.  
  12. Hi,
  13.  
  14. I'm using GDB for the first time to debug a C++ program (compiled with
  15. -g flag with G++). One thing I couldn't figure out how to do is to
  16. execute some method call inside GDB, eg:
  17.  
  18. gdb> print someObj.someMethod(someArgs....)
  19.  
  20. GDB would always return back something like "there's no component
  21. named someMethod", even though someMethod is a valid method of
  22. the class to which someObj belongs to.
  23.  
  24. Is there something I have to do make the above work?
  25.  
  26. I'm current using GDB 4.6 on Sun OS.
  27.  
  28. Thanks in advance for any help,
  29.  
  30. CheeMeng
  31.  
  32. -- 
  33. ---------------------------------------------------------------------
  34. Chee-Meng Low (cmlow@iti.gov.sg) (fax: 65-777-3043)
  35. Knowledge Systems Lab, Information Technology Institute, Singapore
  36. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  37.