RE: dladdr() returns garbage for nearest symbol name
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thread-index: AcmGDZBdK3h7yQcwTCOP9Xh4vdGvDQAAKVAg Thread-topic: dladdr() returns garbage for nearest symbol name Ah, thanks, brain dead of me to do that. I'll fix my code ASAP. Thanks, Cem Karan
-----Original Message----- From: Brian Mastenbrook [mailto:brian@mastenbrook.net] Sent: Tuesday, February 03, 2009 9:42 AM To: Karan, Cem (Civ, ARL/CISD) Cc: Darwin Dev Subject: Re: dladdr() returns garbage for nearest symbol name
Karan, Cem (Civ, ARL/CISD) wrote:
I've finally gotten my -finstrument-functions hack working with dladdr(), but I've noticed that I'm getting a fair amount of garbage out of it. Basically, I'm calling it like so:
You're not checking the return value of dladdr, so there is no way to tell if dladdr is actually returning that value or not. My guess is that it is not setting the function name at all and is returning zero. -- Brian Mastenbrook brian@mastenbrook.net http://brian.mastenbrook.net/
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Karan, Cem (Civ, ARL/CISD)