Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Apr 2004 09:59:16 -0700
From:      John-Mark Gurney <gurney_j@efn.org>
To:        "P. de Boer" <pieter@thelostparadise.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Extracting symbol info out of processes at runtime
Message-ID:  <20040429165916.GL567@funkthat.com>
In-Reply-To: <1083167960.653.23.camel@edinburgh.thedarkside.tix>
References:  <1083167960.653.23.camel@edinburgh.thedarkside.tix>

next in thread | previous in thread | raw e-mail | index | archive | help
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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040429165916.GL567>