Use gdbpy_enter in python.c
[deliverable/binutils-gdb.git] / gdb / printcmd.c
index f434f5f70ab4810c0cf2eac7b86ca73bdca92470..e4711e9fb8852d48158df0c1e8c85023ba4808f5 100644 (file)
@@ -1,6 +1,6 @@
 /* Print values for GNU debugger GDB.
 
-   Copyright (C) 1986-2016 Free Software Foundation, Inc.
+   Copyright (C) 1986-2017 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -45,6 +45,7 @@
 #include "charset.h"
 #include "arch-utils.h"
 #include "cli/cli-utils.h"
+#include "cli/cli-script.h"
 #include "format.h"
 #include "source.h"
 
@@ -2723,6 +2724,8 @@ eval_command (char *arg, int from_tty)
 
   std::string expanded = ui_file_as_string (ui_out);
 
+  expanded = insert_user_defined_cmd_args (expanded.c_str ());
+
   execute_command (&expanded[0], from_tty);
 
   do_cleanups (cleanups);
This page took 0.026329 seconds and 4 git commands to generate.