RE: dladdr() returns garbage for nearest symbol name
RE: dladdr() returns garbage for nearest symbol name
- Subject: RE: dladdr() returns garbage for nearest symbol name
- From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
- Date: Tue, 3 Feb 2009 09:46:58 -0500
- 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:email@hidden]
> 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
> email@hidden
> http://brian.mastenbrook.net/
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden