diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 5c0e3f51162..7e18a8de3a8 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -516,10 +516,15 @@ run_command (const char *args, int from_tty)
 static void
 start_command (const char *args, int from_tty)
 {
-  /* Some languages such as Ada need to search inside the program
-     minimal symbols for the location where to put the temporary
-     breakpoint before starting.  */
-  if (!have_minimal_symbols (current_program_space))
+  /* Abort the start command if `main` cannot be resolved, e.g., there
+     is no symbol for main.  Some languages such as Ada need to search
+     inside the program minimal symbols for the location where to put
+     the temporary breakpoint before starting.  */
+  struct symbol *sym
+    = lookup_symbol_search_name (main_name (), nullptr,
+				 SEARCH_FUNCTION_DOMAIN).symbol;
+
+  if (sym == nullptr)
     error (_("No symbol table loaded.  Use the \"file\" command."));
 
   /* Run the program until reaching the main procedure...  */
