From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,cea9be0ce48b3f1d,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 2003-01-07 11:36:20 PST Newsgroups: comp.unix.osf.osf1 Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!uunet!dca.uu.net!ash.uu.net!world!not-for-mail From: mzraly@TheWorld.com (Michael S. Zraly) Subject: Converting PC to function name Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Tue, 7 Jan 2003 19:34:54 GMT NNTP-Posting-Host: shell01.theworld.com Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: trn 4.0-test72 (19 April 1999) Xref: archiver1.google.com comp.unix.osf.osf1:151 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