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.
This commit is contained in:
Elena Zannoni 2002-10-02 21:33:59 +00:00
parent da3eff4919
commit 36dc181bba
10 changed files with 53 additions and 21 deletions

View File

@ -1,3 +1,15 @@
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 Andrew Cagney <ac131313@redhat.com>
* rs6000-tdep.c (rs6000_store_struct_return): Store struct_return

View File

@ -2493,7 +2493,7 @@ mi-main.o: $(srcdir)/mi/mi-main.c $(defs_h) $(target_h) $(inferior_h) \
$(gdb_string_h) $(top_h) $(gdbthread_h) $(mi_cmds_h) $(mi_parse_h) \
$(mi_getopt_h) $(mi_console_h) $(ui_out_h) $(mi_out_h) \
$(event_loop_h) $(event_top_h) $(gdbcore_h) $(value_h) $(regcache_h) \
$(gdb_h)
$(gdb_h) $(frame_h)
$(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-main.c
mi-out.o: $(srcdir)/mi/mi-out.c $(defs_h) $(ui_out_h) $(mi_out_h)
$(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-out.c

View File

@ -373,4 +373,13 @@ extern int frame_register_read (struct frame_info *frame, int regnum,
extern int frame_map_name_to_regnum (const char *name, int strlen);
extern const char *frame_map_regnum_to_name (int regnum);
/* From stack.c. */
extern void args_info (char *, int);
extern void locals_info (char *, int);
extern void (*selected_frame_level_changed_hook) (int);
extern void return_command (char *, int);
#endif /* !defined (FRAME_H) */

View File

@ -315,6 +315,16 @@ extern char *set_inferior_args (char *);
extern void set_inferior_args_vector (int, char **);
extern void registers_info (char *, int);
extern void nexti_command (char *, int);
extern void stepi_command (char *, int);
extern void continue_command (char *, int);
extern void interrupt_target_command (char *args, int from_tty);
/* Last signal that the inferior received (why it stopped). */
extern enum target_signal stop_signal;

View File

@ -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.

View File

@ -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);

View File

@ -73,10 +73,6 @@ extern int addressprint; /* Print machine addresses? */
*/
extern void output_command (char *, int);
extern void registers_info (char *, int);
extern void args_info (char *, int);
extern void locals_info (char *, int);
/* If this definition isn't overridden by the header files, assume
that isatty and fileno exist on this system. */

View File

@ -1,3 +1,8 @@
2002-10-02 Elena Zannoni <ezannoni@redhat.com>
* tui-hooks.c (selected_frame_level_changed_hook): Use the one
exported from frame.h.
2002-09-29 Elena Zannoni <ezannoni@redhat.com>
* tui.c (tui_show_source): Don't access current_source_symtab, use

View File

@ -69,7 +69,6 @@
int tui_target_has_run = 0;
static void (* tui_target_new_objfile_chain) (struct objfile*);
extern void (*selected_frame_level_changed_hook) (int);
static void tui_event_loop (void);
static void tui_command_loop (void);

View File

@ -50,12 +50,6 @@ struct MessageIO
/* Prototypes for functions located in other files */
extern void break_command (char *, int);
extern void stepi_command (char *, int);
extern void nexti_command (char *, int);
extern void continue_command (char *, int);
extern int (*ui_loop_hook) (int);
/* Prototypes for local functions */