diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-10-02 21:33:59 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-10-02 21:33:59 +0000 |
commit | 36dc181bbaa431cd042fa42d16a34208d8a6e660 (patch) | |
tree | de98f773abf2089e7bd21fb2d71d362af61a6ff3 /gdb/mi | |
parent | da3eff4919642fed6fd1f1a48162bc672cf4f06b (diff) | |
download | gdb-36dc181bbaa431cd042fa42d16a34208d8a6e660.zip gdb-36dc181bbaa431cd042fa42d16a34208d8a6e660.tar.gz gdb-36dc181bbaa431cd042fa42d16a34208d8a6e660.tar.bz2 |
2002-10-02 Elena Zannoni <ezannoni@redhat.com>
* inferior.h (registers_info, stepi_command, nexti_command,
continue_command, interrupt_target_command): Export from infcmd.c.
* frame.h (args_info, selected_frame_level_changed_hook,
return_command): Export from stack.c.
* v850ice.c (stepi_command, nexti_command, continue_command): use
prototypes from inferior.h.
* tracepoint.c (registers_info, args_info, locals_info): Use
prototypes from frame.h and inferior.h.
* Makefile.in (mi-main.o): Add dependency on frame.h.
2002-10-02 Elena Zannoni <ezannoni@redhat.com>
* mi-main.c (mi_cmd_exec_return): Don't use
return_command_wrapper, use return_command instead.
(mi_cmd_exec_interrupt): Don't use
interrupt_target_command_wrapper, use interrupt_target_command
instead.
(return_command_wrapper, interrupt_target_command_wrapper):
Delete.
Include frame.h.
2002-10-02 Elena Zannoni <ezannoni@redhat.com>
* tui-hooks.c (selected_frame_level_changed_hook): Use the one
exported from frame.h.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/ChangeLog | 11 | ||||
-rw-r--r-- | gdb/mi/mi-main.c | 14 |
2 files changed, 16 insertions, 9 deletions
diff --git a/gdb/mi/ChangeLog b/gdb/mi/ChangeLog index 6376bf0..7a1552f 100644 --- a/gdb/mi/ChangeLog +++ b/gdb/mi/ChangeLog @@ -1,3 +1,14 @@ +2002-10-02 Elena Zannoni <ezannoni@redhat.com> + + * mi-main.c (mi_cmd_exec_return): Don't use + return_command_wrapper, use return_command instead. + (mi_cmd_exec_interrupt): Don't use + interrupt_target_command_wrapper, use interrupt_target_command + instead. + (return_command_wrapper, interrupt_target_command_wrapper): + Delete. + Include frame.h. + 2002-10-01 Andrew Cagney <ac131313@redhat.com> * mi-main.c (mi2_command_loop): New function. diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index b92ebf8..4177592 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -39,6 +39,8 @@ #include "value.h" /* for write_register_bytes() */ #include "regcache.h" #include "gdb.h" +#include "frame.h" + #include <ctype.h> #include <sys/time.h> @@ -99,12 +101,6 @@ static void mi_load_progress (const char *section_name, unsigned long total_sent, unsigned long grand_total); -/* FIXME: these should go in some .h file, but infcmd.c doesn't have a - corresponding .h file. These wrappers will be obsolete anyway, once - we pull the plug on the sanitization. */ -extern void interrupt_target_command_wrapper (char *, int); -extern void return_command_wrapper (char *, int); - /* Command implementations. FIXME: Is this libgdb? No. This is the MI layer that calls libgdb. Any operation used in the below should be formalized. */ @@ -179,11 +175,11 @@ mi_cmd_exec_return (char *args, int from_tty) if (*args) /* Call return_command with from_tty argument equal to 0 so as to avoid being queried. */ - return_command_wrapper (args, 0); + return_command (args, 0); else /* Call return_command with from_tty argument equal to 0 so as to avoid being queried. */ - return_command_wrapper (NULL, 0); + return_command (NULL, 0); /* Because we have called return_command with from_tty = 0, we need to print the frame here. */ @@ -215,7 +211,7 @@ mi_cmd_exec_interrupt (char *args, int from_tty) "mi_cmd_exec_interrupt: Inferior not executing."); return MI_CMD_ERROR; } - interrupt_target_command_wrapper (args, from_tty); + interrupt_target_command (args, from_tty); if (last_async_command) fputs_unfiltered (last_async_command, raw_stdout); fputs_unfiltered ("^done", raw_stdout); |