From 47a80e909327f6be0451b7792162266e6695f23d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 31 Jan 2011 16:52:35 +0000 Subject: PR python/12216: * python/python.c (execute_gdb_command): Call prevent_dont_repeat. * top.c (suppress_dont_repeat): New global. (dont_repeat): Use it. (prevent_dont_repeat): New function. * command.h (prevent_dont_repeat): Declare. --- gdb/command.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/command.h') diff --git a/gdb/command.h b/gdb/command.h index f53cc80..d2f5ca5 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -355,6 +355,8 @@ extern void error_no_arg (char *) ATTRIBUTE_NORETURN; extern void dont_repeat (void); +extern struct cleanup *prevent_dont_repeat (void); + /* Used to mark commands that don't do anything. If we just leave the function field NULL, the command is interpreted as a help topic, or as a class of commands. */ -- cgit v1.1