home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / cplus / 18933 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.3 KB  |  40 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!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: <1993Jan11.122250.23513@iti.gov.sg>
  6. Sender: news@iti.gov.sg (News Admin)
  7. Organization: National Computer Board, Singapore
  8. Date: Mon, 11 Jan 1993 12:22:50 GMT
  9. Lines: 29
  10.  
  11. Hi,
  12.  
  13. I'm currently using GDB to debug a C++ program (compiled with
  14. -g flag with G++). One thing I couldn't figure out how to do is to
  15. execute some method call inside GDB, eg:
  16.  
  17. gdb> print someObj.someMethod(someArgs....)
  18.    or
  19. gdb> set someVar = someObjPtr->someMetthod(....)
  20.  
  21. GDB would always return back something like "there's no component
  22. named someMethod", even though someMethod is a valid method of
  23. the class to which someObj belongs to.
  24.  
  25. Is there something I have to do make the above work? has anyone ever
  26. had success getting GDB to execute any method call?
  27.  
  28. I'm current using GDB 4.6 and GCC 2.2.2 on Sun OS.
  29.  
  30. Thanks in advance for any help,
  31.  
  32. Chee Meng
  33.  
  34.  
  35. -- 
  36. ---------------------------------------------------------------------
  37. Chee-Meng Low (cmlow@iti.gov.sg) (fax: 65-777-3043)
  38. Knowledge Systems Lab, Information Technology Institute, Singapore
  39. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  40.