diff -u -p -r1.42 solib.c --- gdb/solib.c 2001/06/04 07:45:08 1.42 +++ gdb/solib.c 2001/07/11 15:04:39 @@ -543,9 +543,9 @@ solib_add (char *pattern, int from_tty, "Error while reading shared library symbols:\n", RETURN_MASK_ALL)) { - if (from_tty) + /*if (from_tty) printf_unfiltered ("Loaded symbols for %s\n", - gdb->so_name); + gdb->so_name);*/ gdb->symbols_loaded = 1; loaded_any_symbols = 1; } Index: source.c =================================================================== RCS file: /cvs/src/src/gdb/source.c,v retrieving revision 1.18 diff -u -p -r1.18 source.c --- gdb/source.c 2001/07/07 17:19:50 1.18 +++ gdb/source.c 2001/07/11 15:04:48 @@ -540,7 +540,16 @@ openp (const char *path, int try_cwd_fir strcpy (filename, string); fd = open (filename, mode, prot); if (fd >= 0) - goto done; + { + struct stat statbuf; + if ( !stat ( filename, &statbuf ) ) + { + /* Only accept regular files */ + if ( S_ISREG( statbuf.st_mode ) ) + goto done; + } + } + else for (i = 0; string[i]; i++) if (IS_DIR_SEPARATOR (string[i])) goto done; --- gdb/symfile.c.davidfaure 2004-06-01 17:15:25.110296424 +0200 +++ gdb/symfile.c 2004-06-01 17:22:10.775179885 +0200 @@ -890,7 +890,7 @@ pre_add_symbol_hook (name); else { - printf_filtered ("Reading symbols from %s...", name); + printf("Reading symbols from %s...", name); wrap_here (""); gdb_flush (gdb_stdout); } @@ -957,7 +957,7 @@ post_add_symbol_hook (); else { - printf_filtered ("done.\n"); + printf("done.\n"); } }