home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,208 of 2,753   
   Markus Armbruster to junky_fellow@yahoo.co.in   
   Re: interpreting dwarf information from    
   24 Jan 08 13:30:45   
   
   From: armbru@pond.sub.org   
      
   "junky_fellow@yahoo.co.in"  writes:   
   >     I have to find out the information about all the structures (the   
   > member names, offsets, their type and size etc) from the dwarf   
   > sections in the elf executable.   
   >   
   > Is their any code available thta can print the entire structure   
   > (alongwith its member names) ?   
   >   
   > I would be highly grateful for any pointers/help.   
   > [There must be code in gdb and other debuggers that does so. -John]   
      
   Try pahole, one of the seven dwarves[*].  Fedora has it in package   
   dwarves.  I highly recommend the OLS paper[**] describing it.   
      
      
   [*] http://userweb.kernel.org/~acme/dwarves/   
   [**] https://ols2006.108.redhat.com/2007/Reprints/melo-Reprint.pdf   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca