sim: add sim_complete_command stubs for non-common-using ports

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>
This commit is contained in:
Mike Frysinger 2011-04-16 18:16:36 +00:00
parent 0427acfba0
commit af9f7da78b
14 changed files with 69 additions and 0 deletions

View 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> 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
* communicate.c (MYread_char): Check error return from accept() call * communicate.c (MYread_char): Check error return from accept() call

View File

@ -940,3 +940,9 @@ sim_set_callbacks (ptr)
{ {
sim_callback = ptr; sim_callback = ptr;
} }
char **
sim_complete_command (SIM_DESC sd, char *text, char *word)
{
return NULL;
}

View 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> 2010-04-14 Mike Frysinger <vapier@gentoo.org>
* interp.c (sim_write): Add const to buffer arg. * interp.c (sim_write): Add const to buffer arg.

View File

@ -1853,3 +1853,9 @@ sim_set_callbacks (host_callback *ptr)
{ {
callback = ptr; callback = ptr;
} }
char **
sim_complete_command (SIM_DESC sd, char *text, char *word)
{
return NULL;
}

View 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> 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
* gdb-if.c (sim_store_register): Update return value to * gdb-if.c (sim_store_register): Update return value to

View File

@ -703,3 +703,9 @@ sim_do_command (SIM_DESC sd, char *cmd)
printf ("The 'sim' command expects either 'trace' or 'verbose'" printf ("The 'sim' command expects either 'trace' or 'verbose'"
" as a subcommand.\n"); " as a subcommand.\n");
} }
char **
sim_complete_command (SIM_DESC sd, char *text, char *word)
{
return NULL;
}

View 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> 2010-04-14 Mike Frysinger <vapier@gentoo.org>
* interp.c (sim_write): Add const to buffer arg. * interp.c (sim_write): Add const to buffer arg.

View File

@ -1089,3 +1089,9 @@ sim_set_callbacks (host_callback *ptr)
{ {
callback = ptr; callback = ptr;
} }
char **
sim_complete_command (SIM_DESC sd, char *text, char *word)
{
return NULL;
}

View 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> 2011-02-14 Mike Frysinger <vapier@gentoo.org>
* cap.c (cap_remove): Change zfree to free. * cap.c (cap_remove): Change zfree to free.

View 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 */ /* Polling, if required */

View 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> 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
* gdb-if.c (sim_store_register): Update return value to * gdb-if.c (sim_store_register): Update return value to

View File

@ -862,3 +862,9 @@ sim_do_command (SIM_DESC sd, char *cmd)
printf ("The 'sim' command expects either 'trace' or 'verbose'" printf ("The 'sim' command expects either 'trace' or 'verbose'"
" as a subcommand.\n"); " as a subcommand.\n");
} }
char **
sim_complete_command (SIM_DESC sd, char *text, char *word)
{
return NULL;
}

View 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> 2010-04-14 Mike Frysinger <vapier@gentoo.org>
* interp.c (sim_write): Add const to buffer arg. * interp.c (sim_write): Add const to buffer arg.

View File

@ -2787,3 +2787,9 @@ sim_set_callbacks (p)
{ {
callback = p; callback = p;
} }
char **
sim_complete_command (SIM_DESC sd, char *text, char *word)
{
return NULL;
}