home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / hp / 12994 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.1 KB  |  33 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!sdd.hp.com!hp-col!hpfcnfs.sde.hp.com!bruno
  3. From: bruno@fc.hp.com (Bruno Melli)
  4. Subject: Re: xdb accessing 'opaque' data structures
  5. Message-ID: <BxvEA1.4p9@fc.sde.hp.com>
  6. Sender: news@fc.sde.hp.com (Notes Administrator)
  7. Organization: /STD/CoLL
  8. X-Newsreader: TIN [version 1.1.4 PL6]
  9. References: <6153@tivoli.UUCP>
  10. Date: Tue, 17 Nov 1992 17:08:21 GMT
  11. Lines: 20
  12.  
  13. The reason xdb can't show you what a widget looks like is that it has
  14. no debug info about widgets. If you look at Intrinsic.h you get:
  15.  
  16. typedef struct _WidgetRec *Widget;
  17.  
  18. Try to find _WidgetRec in intrinsic.h. You won't find it.
  19. So xdb knows that a Widget is a pointer to a struct _WidgetRec but
  20. has no idea what the _WidgetRec struct looks like.
  21.  
  22. To work around this problem you need to have a file include CoreP.h.
  23. You could link in a dummy object file when you build your debugable
  24. executable, or you could have something like this in one of your
  25. source file.
  26.  
  27. #ifdef DEBUG
  28. #include <X11/CoreP.h>
  29. #endif /* DEBUG */
  30.  
  31. bruno.
  32.  
  33.