reading type,address,size of variables from symbol table. Which is built using gnu tools (like gmake or gcc)

view story

http://stackoverflow.com – We are trying to implement the customized gdb tool for specific environment. We have Linux- Centos operating systems. Trying to implement the gdb functionality with some customization. Our tool will be attached to the PID (already running process), which will start debugging session. we would like to read the symbols information (symbol table) and print as much as possible information of symbols (mainly the data type, address and size). We are able to read the symbol table using the readelf, file commands in gdb, and able to print some information related to local/global variables. But we (HowTos)