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