From: mzraly@TheWorld.com (Michael S. Zraly)
Subject: Converting PC to function name
Date: Tue, 7 Jan 2003 19:34:54 GMT [thread overview]
Message-ID: <H8Czq6.H5A@world.std.com> (raw)
If I have the PC of a process, and its associated code
range descriptor, how do I use that information to find
the name of the associated function?
My initial thoughts are to combine this into an address
(code range descriptor base address + PC?) and use nm
to find the maximum address less than that value that
corresponds to a defined procedure. Is that the right
way to do it?
FWIW the executable was compiled with debugging information.
Thanks,
Mike
--
Mike Zraly Every man is as God made him, ay, and
mzraly@world.std.com often worse. -- Miguel de Cervantes
reply other threads:[~2003-01-07 19:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox