diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-04-23 15:22:41 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-04-25 12:58:49 -0400 |
commit | 824dd26e97d6729d60d23ffc3c6dc27dec9b657e (patch) | |
tree | 63f043c56e1f2214bc4e90db0dca9ff4dd6eb9f7 /gdb/top.c | |
parent | 035068a0cd846653e1fb0903aece42f4258803fb (diff) | |
download | gdb-824dd26e97d6729d60d23ffc3c6dc27dec9b657e.zip gdb-824dd26e97d6729d60d23ffc3c6dc27dec9b657e.tar.gz gdb-824dd26e97d6729d60d23ffc3c6dc27dec9b657e.tar.bz2 |
gdb: move execute function declarations from gdbcmd.h to top.h
These functions are implemented in top.c, move their declarations to
top.h.
Change-Id: I8893ef91d955156a6530734fefe8002d78c3e5fc
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -598,9 +598,10 @@ execute_command (const char *p, int from_tty) cleanup_if_error.release (); } -/* See gdbcmd.h. */ +/* Run FN. Send its output to FILE, do not display it to the screen. + The global BATCH_FLAG will be temporarily set to true. */ -void +static void execute_fn_to_ui_file (struct ui_file *file, std::function<void(void)> fn) { /* GDB_STDOUT should be better already restored during these @@ -627,7 +628,7 @@ execute_fn_to_ui_file (struct ui_file *file, std::function<void(void)> fn) } } -/* See gdbcmd.h. */ +/* See top.h. */ void execute_fn_to_string (std::string &res, std::function<void(void)> fn, @@ -650,7 +651,7 @@ execute_fn_to_string (std::string &res, std::function<void(void)> fn, res = str_file.release (); } -/* See gdbcmd.h. */ +/* See top.h. */ void execute_command_to_ui_file (struct ui_file *file, @@ -659,7 +660,7 @@ execute_command_to_ui_file (struct ui_file *file, execute_fn_to_ui_file (file, [=]() { execute_command (p, from_tty); }); } -/* See gdbcmd.h. */ +/* See top.h. */ void execute_command_to_string (std::string &res, const char *p, int from_tty, @@ -669,7 +670,7 @@ execute_command_to_string (std::string &res, const char *p, int from_tty, term_out); } -/* See gdbcmd.h. */ +/* See top.h. */ void execute_command_to_string (const char *p, int from_tty, |