bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dlerror sets errno to ENOSYS


From: Samuel Thibault
Subject: Re: dlerror sets errno to ENOSYS
Date: Sun, 28 Feb 2016 21:58:17 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Diego Nieto Cid, on Sun 28 Feb 2016 16:53:51 -0300, wrote:
> On Sun, Feb 28, 2016 at 07:57:43PM +0100, Samuel Thibault wrote:
> > 
> > Using watch in gdb :)
> > 
> > I've added fprintf(stderr,"%p\n", &errno); to get the address of errno: 
> >
> 
> Oh, that's interesting. I've been struggling with "display errno",
> or "display *__errno_location()" without success.

It's a TLS variable, and gdb hasn't been taught how to reach them yet.

> > Could you give that a try?
> 
> Yes, I'll try in the following days.

Thanks.

> Also I've been looking at the specification of dlopen and it doesn't say
> anything about errno and the only way to know what happened is the textual
> message given by dlerror.

Yes. That's the spec. AIUI, glibc does better and the hurd console uses
it :)

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]