RE: structure offset to structure name conversion.

2011-10-27 Thread Paul_Koning
> If I have a structure e.g. > struct test_s { > int32_t var1; > int32_t var2; > uint64_t var3; > int var4; > } test; > > If I have an offset value of 8, I wish to do a lookup and get to: > test.var3 > > Is there some part of gcc that I could use to parse .h files and > produce a t

Re: structure offset to structure name conversion.

2011-10-27 Thread Ian Lance Taylor
James Courtier-Dutton writes: > If I have a structure e.g. > struct test_s { > int32_t var1; > int32_t var2; > uint64_t var3; > int var4; > } test; > > If I have an offset value of 8, I wish to do a lookup and get to: > test.var3 > > Is there some part of gcc that I could use to p

structure offset to structure name conversion.

2011-10-27 Thread James Courtier-Dutton
Hi, If I have a structure e.g. struct test_s { int32_t var1; int32_t var2; uint64_t var3; int var4; } test; If I have an offset value of 8, I wish to do a lookup and get to: test.var3 Is there some part of gcc that I could use to parse .h files and produce a table for me of offse