* symtab.c (main_name): New function.
[deliverable/binutils-gdb.git] / gdb / source.c
index 2895dd388f683e76ff2e23cb349b3ee7bf052844..417d5886a5c24cf1b14ef846b3d1e6fb14a029a7 100644 (file)
@@ -153,9 +153,9 @@ select_source_symtab (register struct symtab *s)
 
   /* Make the default place to list be the function `main'
      if one exists.  */
-  if (lookup_symbol ("main", 0, VAR_NAMESPACE, 0, NULL))
+  if (lookup_symbol (main_name (), 0, VAR_NAMESPACE, 0, NULL))
     {
-      sals = decode_line_spec ("main", 1);
+      sals = decode_line_spec (main_name (), 1);
       sal = sals.sals[0];
       xfree (sals.sals);
       current_source_symtab = sal.symtab;
This page took 0.02433 seconds and 4 git commands to generate.