[net.lang.c] Listing structs

johnt@mmintl.UUCP (John Tangney) (10/22/86)

[]
                 Debugging tool/C parser wanted

I need help in acquiring a tool which can be used to dump a 
struct at runtime; that is, list names and values of every 
member.  We are using Microsoft C 4.00 (in conjunction with 
Designer C++).

The names and types of struct members are only known at compile 
time.  Ideally, the compiler would make this information known, 
(by writing it to a separate file, embedding it in the object, 
etc) but the Microsoft compiler has no such facility.  

I could write a utility which will parse the struct definitions 
and extract the information needed for dumping structures.  That 
seems like quite a bit of work, and if I could get my hands on 
such a tool, (or even the source of a C compiler which I could 
modify) that task would be a lot easier.  (Creating tools is 
*part* of the project -- not a project in itself. :-) )

So, if either a ready-to-run tool, or pieces from which I can 
build one exist, please let me know by mail.

Thanks in advance

...philabs!pwa-b!mmintl!johnt

Multimate International, 52 Oakland Ave, East Hartford, CT 06108
phone: (203) 522-2116 (work)
       (203) 247-1140 (home)

jgy@hropus.UUCP (John Young) (10/27/86)

I have such a tool for SVR2 on 3B's.