Hi, attached patch will fix (gdb) print errno otherwise producing Cannot find shared library `/usr/lib/debug/lib/libc-2.4.90.so.debug' in dynamic linker's load module list for me on Fedora Core 5/devel. Despite I also attached the testsuite the testsuite itself is probably not suitable for the mainline as I failed to reproduce the bug on CVS version of GDB (OK, I did not try too much, I believe mainline GDB will not find the separate debuginfo file there at all). I hope the patch looks correct and harmless enough. 2006-09-01 Jan Kratochvil * dwarf2loc.c (dwarf_expr_tls_address): Fix for separate debuginfo. Regards, Jan