This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] [SIM][OBV] sim_signal_to_target ==> sim_signal_to_gdb_signal
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 24 May 2012 18:39:37 +0100
- Subject: [PATCH] [SIM][OBV] sim_signal_to_target ==> sim_signal_to_gdb_signal
I've applied this sim patch as obvious, to adjust it to the
target_signal => gdb_signal rename.
sim/common/
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.
---
sim/common/sim-reason.c | 2 +-
sim/common/sim-signal.c | 2 +-
sim/common/sim-signal.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
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 */