From 2c1fa544e14e0fa78b842c50c03b49dcfd3f6e02 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 24 May 2012 17:38:54 +0000 Subject: [PATCH] 2012-05-24 Pedro Alves * 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/ChangeLog | 8 ++++++++ sim/common/sim-reason.c | 2 +- sim/common/sim-signal.c | 2 +- sim/common/sim-signal.h | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index da63533024b..54a56134ffa 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,11 @@ +2012-05-24 Pedro Alves + + * 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 PR gdb/7205 diff --git a/sim/common/sim-reason.c b/sim/common/sim-reason.c index 93d5c7cc594..f24161d8d04 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 a34180db9c5..5aff15f58a6 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 0d23dd40aed..13cbe5b41f2 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 */ -- 2.30.2