* gdb/fileio.h: New file.
[deliverable/binutils-gdb.git] / gdb / source.c
index f3700db818872fad2b291a8e85373859e1d8a49a..ae94addb6135f99e240cb197d12be94582f567eb 100644 (file)
@@ -239,7 +239,7 @@ select_source_symtab (register struct symtab *s)
 
   /* Make the default place to list be the function `main'
      if one exists.  */
-  if (lookup_symbol (main_name (), 0, VAR_NAMESPACE, 0, NULL))
+  if (lookup_symbol (main_name (), 0, VAR_DOMAIN, 0, NULL))
     {
       sals = decode_line_spec (main_name (), 1);
       sal = sals.sals[0];
@@ -687,7 +687,10 @@ openp (const char *path, int try_cwd_first, const char *string,
            goto done;
        }
       else
-       fd = -1;
+       {
+         filename = NULL;
+         fd = -1;
+       }
 
       for (i = 0; string[i]; i++)
        if (IS_DIR_SEPARATOR (string[i]))
This page took 0.024453 seconds and 4 git commands to generate.