]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/cli/cli-script.c
* valops.c (find_overload_match): Call do_cleanups before early
[thirdparty/binutils-gdb.git] / gdb / cli / cli-script.c
index 2d1afe51803ca4650bfdff85dbae0d2718fff0db..c94f7eedaac92447669ebb8dec3394c89be49dc5 100644 (file)
@@ -317,13 +317,13 @@ execute_user_command (struct cmd_list_element *c, char *args)
   static int user_call_depth = 0;
   extern int max_user_call_depth;
 
-  old_chain = setup_user_args (args);
-
   cmdlines = c->user_commands;
   if (cmdlines == 0)
     /* Null command */
     return;
 
+  old_chain = setup_user_args (args);
+
   if (++user_call_depth > max_user_call_depth)
     error (_("Max user call depth exceeded -- command aborted."));