aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sim/common/ChangeLog8
-rw-r--r--sim/common/sim-reason.c2
-rw-r--r--sim/common/sim-signal.c2
-rw-r--r--sim/common/sim-signal.h2
4 files changed, 11 insertions, 3 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index da63533..54a5613 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,13 @@
2012-05-24 Pedro Alves <palves@redhat.com>
+ * sim-signal.h (sim_signal_to_target): Rename to ...
+ (sim_signal_to_gdb_signal): ... this.
+ * sim-signal.c (sim_signal_to_target): Rename to ...
+ (sim_signal_to_gdb_signal): ... this.
+ * sim-reason.c (sim_stop_reason): Adjust to rename.
+
+2012-05-24 Pedro Alves <palves@redhat.com>
+
PR gdb/7205
Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
diff --git a/sim/common/sim-reason.c b/sim/common/sim-reason.c
index 93d5c7c..f24161d 100644
--- a/sim/common/sim-reason.c
+++ b/sim/common/sim-reason.c
@@ -36,7 +36,7 @@ sim_stop_reason (SIM_DESC sd, enum sim_stop *reason, int *sigrc)
break;
case sim_stopped :
case sim_signalled :
- *sigrc = sim_signal_to_target (sd, engine->sigrc);
+ *sigrc = sim_signal_to_gdb_signal (sd, engine->sigrc);
break;
default :
abort ();
diff --git a/sim/common/sim-signal.c b/sim/common/sim-signal.c
index a34180d..5aff15f 100644
--- a/sim/common/sim-signal.c
+++ b/sim/common/sim-signal.c
@@ -95,7 +95,7 @@ sim_signal_to_host (SIM_DESC sd, SIM_SIGNAL sig)
}
enum gdb_signal
-sim_signal_to_target (SIM_DESC sd, SIM_SIGNAL sig)
+sim_signal_to_gdb_signal (SIM_DESC sd, SIM_SIGNAL sig)
{
switch (sig)
{
diff --git a/sim/common/sim-signal.h b/sim/common/sim-signal.h
index 0d23dd4..13cbe5b 100644
--- a/sim/common/sim-signal.h
+++ b/sim/common/sim-signal.h
@@ -46,6 +46,6 @@ typedef enum {
} SIM_SIGNAL;
int sim_signal_to_host (SIM_DESC sd, SIM_SIGNAL);
-enum gdb_signal sim_signal_to_target (SIM_DESC sd, SIM_SIGNAL);
+enum gdb_signal sim_signal_to_gdb_signal (SIM_DESC sd, SIM_SIGNAL);
#endif /* SIM_SIGNAL_H */