projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sim: add sim_complete_command stubs for non-common-using ports
[deliverable/binutils-gdb.git]
/
sim
/
ppc
/
sim_calls.c
diff --git
a/sim/ppc/sim_calls.c
b/sim/ppc/sim_calls.c
index 08feb39ab760130c64bcadbe05abe175c84a9298..e80db88b0d9dc0c93f839bd1e91bd0aeffd01d76 100644
(file)
--- a/
sim/ppc/sim_calls.c
+++ b/
sim/ppc/sim_calls.c
@@
-44,6
+44,7
@@
#include "bfd.h"
#include "gdb/callback.h"
#include "gdb/remote-sim.h"
#include "bfd.h"
#include "gdb/callback.h"
#include "gdb/remote-sim.h"
+#include "gdb/signals.h"
/* Define the rate at which the simulator should poll the host
for a quit. */
/* Define the rate at which the simulator should poll the host
for a quit. */
@@
-143,7
+144,7
@@
sim_read (SIM_DESC sd, SIM_ADDR mem, unsigned char *buf, int length)
int
int
-sim_write (SIM_DESC sd, SIM_ADDR mem, unsigned char *buf, int length)
+sim_write (SIM_DESC sd, SIM_ADDR mem,
const
unsigned char *buf, int length)
{
int result = psim_write_memory(simulator, MAX_NR_PROCESSORS,
buf, mem, length,
{
int result = psim_write_memory(simulator, MAX_NR_PROCESSORS,
buf, mem, length,
@@
-197,13
+198,13
@@
sim_stop_reason (SIM_DESC sd, enum sim_stop *reason, int *sigrc)
case was_continuing:
*reason = sim_stopped;
if (status.signal == 0)
case was_continuing:
*reason = sim_stopped;
if (status.signal == 0)
- *sigrc =
SIG
TRAP;
+ *sigrc =
TARGET_SIGNAL_
TRAP;
else
*sigrc = status.signal;
break;
case was_trap:
*reason = sim_stopped;
else
*sigrc = status.signal;
break;
case was_trap:
*reason = sim_stopped;
- *sigrc =
SIG
TRAP;
+ *sigrc =
TARGET_SIGNAL_
TRAP;
break;
case was_exited:
*reason = sim_exited;
break;
case was_exited:
*reason = sim_exited;
@@
-258,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 */
@@
-389,8
+395,3
@@
zalloc(long size)
memset(memory, 0, size);
return memory;
}
memset(memory, 0, size);
return memory;
}
-
-void zfree(void *data)
-{
- free(data);
-}
This page took
0.035952 seconds
and
4
git commands to generate.