Index: gdb/c-exp.y =================================================================== RCS file: /cvs/src/src/gdb/c-exp.y,v retrieving revision 1.35 diff -u -p -r1.35 c-exp.y --- gdb/c-exp.y 2 Aug 2006 03:13:20 -0000 1.35 +++ gdb/c-exp.y 25 Aug 2006 01:42:21 -0000 @@ -719,8 +719,13 @@ variable: name_not_typename else if (!have_full_symbols () && !have_partial_symbols ()) error ("No symbol table is loaded. Use the \"file\" command."); else - error ("No symbol \"%s\" in current context.", - copy_name ($1.stoken)); + { + /* https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=185337 */ + if (strcmp (arg, "errno") == 0) + warning ("You should use symbol \"(*__errno_location ())\" or" + " compile the program with `gcc -ggdb3' or `gcc -pthread'."); + error ("No symbol \"%s\" in current context.", arg); + } } } ;