Replace the block_found global with explicit data-flow
[deliverable/binutils-gdb.git] / gdb / source.c
index fbec0f1212f2537492fea4930f610f04440c98b8..0c23b7e6d4ed541fb548f966ed152058d966b9c5 100644 (file)
@@ -274,7 +274,7 @@ select_source_symtab (struct symtab *s)
 
   /* Make the default place to list be the function `main'
      if one exists.  */
-  if (lookup_symbol (main_name (), 0, VAR_DOMAIN, 0))
+  if (lookup_symbol (main_name (), 0, VAR_DOMAIN, 0).symbol)
     {
       sals = decode_line_with_current_source (main_name (),
                                              DECODE_LINE_FUNFIRSTLINE);
This page took 0.024961 seconds and 4 git commands to generate.