OSDN Git Service

sim: add sim_complete_command stubs for non-common-using ports
authorvapier <vapier>
Sat, 16 Apr 2011 18:16:33 +0000 (18:16 +0000)
committervapier <vapier>
Sat, 16 Apr 2011 18:16:33 +0000 (18:16 +0000)
For the ports that don't use the common/ subdir, we need to add stub funcs
to them to avoid build failures with gdb and command completion.  These do
not implement the actual completion functionality ... any port that wants
that can either convert to the common/ subdir, or fill out the function on
their own time.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 files changed:
sim/arm/ChangeLog
sim/arm/wrapper.c
sim/avr/ChangeLog
sim/avr/interp.c
sim/m32c/ChangeLog
sim/m32c/gdb-if.c
sim/microblaze/ChangeLog
sim/microblaze/interp.c
sim/ppc/ChangeLog
sim/ppc/sim_calls.c
sim/rx/ChangeLog
sim/rx/gdb-if.c
sim/sh/ChangeLog
sim/sh/interp.c

index 1e07144..471fdab 100644 (file)
@@ -1,3 +1,7 @@
+2011-04-16  Mike Frysinger  <vapier@gentoo.org>
+
+       * wrapper.c (sim_complete_command): New stub function.
+
 2010-05-26  Ozkan Sezer  <sezeroz@gmail.com>
 
        * communicate.c (MYread_char): Check error return from accept() call
index 504a0e5..b81631d 100644 (file)
@@ -940,3 +940,9 @@ sim_set_callbacks (ptr)
 {
   sim_callback = ptr;
 }
+
+char **
+sim_complete_command (SIM_DESC sd, char *text, char *word)
+{
+  return NULL;
+}
index a03bde8..c407e0c 100644 (file)
@@ -1,3 +1,7 @@
+2011-04-16  Mike Frysinger  <vapier@gentoo.org>
+
+       * interp.c (sim_complete_command): New stub function.
+
 2010-04-14  Mike Frysinger  <vapier@gentoo.org>
 
        * interp.c (sim_write): Add const to buffer arg.
index 818f04e..c4d7da0 100644 (file)
@@ -1853,3 +1853,9 @@ sim_set_callbacks (host_callback *ptr)
 {
   callback = ptr; 
 }
+
+char **
+sim_complete_command (SIM_DESC sd, char *text, char *word)
+{
+  return NULL;
+}
index 1a34d71..fe8711b 100644 (file)
@@ -1,3 +1,7 @@
+2011-04-16  Mike Frysinger  <vapier@gentoo.org>
+
+       * gdb-if.c (sim_complete_command): New stub function.
+
 2011-01-11  Andrew Burgess <aburgess@broadcom.com>
 
        * gdb-if.c (sim_store_register): Update return value to
index 7da4416..23f378f 100644 (file)
@@ -703,3 +703,9 @@ sim_do_command (SIM_DESC sd, char *cmd)
     printf ("The 'sim' command expects either 'trace' or 'verbose'"
            " as a subcommand.\n");
 }
+
+char **
+sim_complete_command (SIM_DESC sd, char *text, char *word)
+{
+  return NULL;
+}
index a03bde8..c407e0c 100644 (file)
@@ -1,3 +1,7 @@
+2011-04-16  Mike Frysinger  <vapier@gentoo.org>
+
+       * interp.c (sim_complete_command): New stub function.
+
 2010-04-14  Mike Frysinger  <vapier@gentoo.org>
 
        * interp.c (sim_write): Add const to buffer arg.
index c247601..78c733d 100644 (file)
@@ -1089,3 +1089,9 @@ sim_set_callbacks (host_callback *ptr)
 {
   callback = ptr;
 }
+
+char **
+sim_complete_command (SIM_DESC sd, char *text, char *word)
+{
+  return NULL;
+}
index dc059a8..0558910 100644 (file)
@@ -1,3 +1,7 @@
+2011-04-16  Mike Frysinger  <vapier@gentoo.org>
+
+       * sim_calls.c (sim_complete_command): New stub function.
+
 2011-02-14  Mike Frysinger  <vapier@gentoo.org>
 
        * cap.c (cap_remove): Change zfree to free.
index 9336516..e80db88 100644 (file)
@@ -259,6 +259,11 @@ sim_do_command (SIM_DESC sd, char *cmd)
   }
 }
 
+char **
+sim_complete_command (SIM_DESC sd, char *text, char *word)
+{
+  return NULL;
+}
 
 /* Polling, if required */
 
index f29cb93..2eabd23 100644 (file)
@@ -1,3 +1,7 @@
+2011-04-16  Mike Frysinger  <vapier@gentoo.org>
+
+       * gdb-if.c (sim_complete_command): New stub function.
+
 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
 
        * gdb-if.c (sim_store_register): Update return value to
index ca41161..95884f0 100644 (file)
@@ -862,3 +862,9 @@ sim_do_command (SIM_DESC sd, char *cmd)
     printf ("The 'sim' command expects either 'trace' or 'verbose'"
            " as a subcommand.\n");
 }
+
+char **
+sim_complete_command (SIM_DESC sd, char *text, char *word)
+{
+  return NULL;
+}
index 82ab457..b44b4fc 100644 (file)
@@ -1,3 +1,7 @@
+2011-04-16  Mike Frysinger  <vapier@gentoo.org>
+
+       * interp.c (sim_complete_command): New stub function.
+
 2010-04-14  Mike Frysinger  <vapier@gentoo.org>
 
        * interp.c (sim_write): Add const to buffer arg.
index 0d1360f..20239de 100644 (file)
@@ -2787,3 +2787,9 @@ sim_set_callbacks (p)
 {
   callback = p;
 }
+
+char **
+sim_complete_command (SIM_DESC sd, char *text, char *word)
+{
+  return NULL;
+}