Extracting symbol info out of processes at runtime

John-Mark Gurney gurney_j at efn.org
Thu Apr 29 09:59:19 PDT 2004


P. de Boer wrote this message on Wed, Apr 28, 2004 at 17:59 +0200:
> For a little private project I'm working at, I need to find the address
> of a function which is inside a shared library of a running process, OR
> the base address the library is running at (in that case, I can simply
> do a base_address+known_offset_of_function). The executable nor
> libraries have their symbols stripped.

Well, if you don't mind not doing all the code, you could use gcore + gdb
to extract the function and library...  It may not be the most elegant
solution, but it will work..

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the freebsd-hackers mailing list