]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2002-10-02 Elena Zannoni <ezannoni@redhat.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Wed, 2 Oct 2002 21:33:59 +0000 (21:33 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Wed, 2 Oct 2002 21:33:59 +0000 (21:33 +0000)
        * 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.

gdb/ChangeLog
gdb/Makefile.in
gdb/frame.h
gdb/inferior.h
gdb/mi/ChangeLog
gdb/mi/mi-main.c
gdb/tracepoint.c
gdb/tui/ChangeLog
gdb/tui/tui-hooks.c
gdb/v850ice.c

index 5bb236a2369509ea043091396ea62b5d8ed284d9..60688791138e3902981909793087fd4830869de3 100644 (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
index 21031d2f0bfc25001a6b14ba04ecc55a611f637f..95330c0950b4e328129cd4588842bd38bc944a1a 100644 (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
index 79bb3d95a6f55db2cf861103d855d4796ebb32d2..849566bd8b670bf87df550fe0a18c3eca552e387 100644 (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)  */
index 8035ccd98251b220a398b376e383ca66863fed39..2cccda1103b99c9a434b1b3bad88ae4817d5caf6 100644 (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;
index 6376bf0d5a51b81b2902e84d0b634d42d1635dcb..7a1552f4d23a6e69242cf2f0e3c462848a33f516 100644 (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.
index b92ebf81fdebf5b40200da7f5c3967d6a29802e4..41775922def89bbdb06c8a8c355b1b2a60a4f490 100644 (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);
index 2d12f31d57bc884566a3382eba59bacc648e9f37..b2900b60a4162b5bae6f507e4ef0e2c3d4fa3c7a 100644 (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.  */
index e2bc95fe455bb97018e3ee3e4fc4f8aa9e309e90..8fdc4bcdfc3e219df63bee27624aa25918c97b60 100644 (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
index 3beca39c782dba4677fd8ecd1c4297960d9fb25d..e1aad9f03b34817a5727805eb2b48507f737e102 100644 (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);
 
index 1aec483bb90e5479cdaa66db51dc826ce04ed801..958eac331b85f13734109cbc5c99b13b0927edd5 100644 (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 */