This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why type = <data variable, no debug info>?


On Saturday 21 October 2006 06:51, Brian Dessent wrote:
> "Munzir Taha (ÙÙØØ ØÙ)" wrote:
> > Hi, in this small program logic tells me that errno and n should have the
> > same value displayed in gdb. Am I missing something obvious?
>
> You're probably running into the fact that on modern glibc errno is a
> TLS symbol, not a regular one.  This means it can take on a different
> value in each thread, and thus is accessed through an indirection.
>
> You might get better debugging ability if you compile with -ggdb3

Thanks a lot Brian for your quick and accurate response. Compiling with -ggdb3 
displays the correct value for errno now.

-- 
Munzir Taha
Telecommunications and Electronics Engineer
Maintainer of Fedora Arabic Translation Project
https://listman.redhat.com/mailman/listinfo/fedora-trans-ar
Maintainer of the OpenBugs project page at
http://www.arabic-fedora.org/munzir/OpenBugs.html
Master CIW Designer, ICDL, MOUS, Linux+, LPI 101
Riyadh, SA


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]