In article <[EMAIL PROTECTED]>, Poul-Henning Kamp <[EMAIL PROTECTED]> wrote: > > Does anyone know of an existing tool which for a given C struct > can output a list of elements, their types, size and byteoffset ?
No, but I'd like one too -- one that can handle the files in /usr/include with all their idiosyncrasies. > I have considered parsing the information out of .stabs records > from "gcc -g" output, but if an existing tool already exists that > would save me quite some time. I thought about the .stabs approach too, and thought it seemed promising. Even better might be to use -gdwarf -g3, which in theory at least would provide information about #defines. For well-behaved structs, it's possible that rpcgen could be hacked up to do what you want. John -- John Polstra John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message