summaryrefslogtreecommitdiff
path: root/gdb/gdbcmd.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-08-07 15:00:36 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-08-07 15:00:36 +0000
commit9c29655a68cf5370184e116f7453acabfc93f1e7 (patch)
tree20434739f52a117b494df8a3d7a377f84450a587 /gdb/gdbcmd.h
parent0275886ca90a8699f49f3620ccba1eea3e3ba900 (diff)
downloadgdb-9c29655a68cf5370184e116f7453acabfc93f1e7.tar.gz
gdb/
* defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file) (make_cleanup_restore_page_info) (set_batch_flag_and_make_cleanup_restore_page_info): New declarations. * gdbcmd.h (execute_command_to_string): New declaration. * python/python.c (struct restore_ui_file_closure, restore_ui_file) (make_cleanup_restore_ui_file): Move to utils.c (execute_gdb_command) <to_string>: Move ... * top.c (execute_command_to_string): ... here. Call set_batch_flag_and_make_cleanup_restore_page_info. * utils.c (make_cleanup_restore_integer): New source file blank line. (make_cleanup_restore_uinteger): New. (struct restore_ui_file_closure, do_restore_ui_file) (make_cleanup_restore_ui_file): Move here from python/python.c. (init_page_info) <batch_flag> (do_restore_page_info_cleanup, make_cleanup_restore_page_info) (set_batch_flag_and_make_cleanup_restore_page_info): New. gdb/testsuite/ * gdb.python/python.exp (show height, set height 10) (verify pagination beforehand, verify pagination beforehand: q) (gdb.execute does not page, verify pagination afterwards) (verify pagination afterwards: q): New. gdb/doc/ * gdb.texinfo (Mode Options) <-batch> (Basic Python) <gdb.execute>: Describe setting width and height.
Diffstat (limited to 'gdb/gdbcmd.h')
-rw-r--r--gdb/gdbcmd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/gdbcmd.h b/gdb/gdbcmd.h
index d87a813c1f5..da116868e80 100644
--- a/gdb/gdbcmd.h
+++ b/gdb/gdbcmd.h
@@ -129,6 +129,7 @@ extern struct cmd_list_element *showchecklist;
extern struct cmd_list_element *save_cmdlist;
extern void execute_command (char *, int);
+extern char *execute_command_to_string (char *p, int from_tty);
enum command_control_type execute_control_command (struct command_line *);