home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / gdb / bug / 1221 < prev    next >
Encoding:
Text File  |  1992-11-11  |  865 b   |  35 lines

  1. Newsgroups: gnu.gdb.bug
  2. Path: sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!netcom.com!jcasey
  3. From: jcasey@netcom.com (John Casey)
  4. Subject: gcc.2.2.2 lost typecast info for gdb (sco-sysv.3.2)
  5. Message-ID: <1992Nov11.161000.255@netcom.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest)
  8. Distribution: gnu
  9. Date: Wed, 11 Nov 1992 16:10:00 GMT
  10. Approved: bug-gdb@prep.ai.mit.edu
  11. Lines: 22
  12.  
  13. gdb returns :
  14.  
  15. $1 = (struct <opaque> *) some addr
  16.  
  17.  
  18. when trying to print out  a complex structurei or C++ class.  This
  19. does not happen all of the time, however.  I am usually able to fix the 
  20. problem by explicit typecasting, 
  21.  
  22. (gdb) p (struct name *) var.
  23.  
  24.  
  25.  
  26. Am I doing something wrong or is this how gdb is supposed to work?
  27. I can send you a specific example if that helps.
  28.  
  29. Thanks,
  30.  
  31. John Casey
  32.  
  33.  
  34.  
  35.