summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-05-24 16:51:28 +0000
committerPedro Alves <palves@redhat.com>2012-05-24 16:51:28 +0000
commit5e3c3245be667528076da971805e30cfa86252a0 (patch)
treefc633a17121489e52a97c71c7278907dfa4684b9 /sim
parent906c2dc64fa6eeb6723219a58495036be6ba18c6 (diff)
downloadgdb-5e3c3245be667528076da971805e30cfa86252a0.tar.gz
gdb/
2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. gdb/gdbserver/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. include/gdb/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 * gdb/signals.def: Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/arm/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/avr/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/common/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/cr16/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/d10v/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/erc32/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/m32c/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/ppc/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/rl78/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/rx/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
Diffstat (limited to 'sim')
-rw-r--r--sim/arm/ChangeLog6
-rw-r--r--sim/arm/wrapper.c6
-rw-r--r--sim/avr/ChangeLog6
-rw-r--r--sim/avr/interp.c6
-rw-r--r--sim/common/ChangeLog6
-rw-r--r--sim/common/sim-signal.c20
-rw-r--r--sim/cr16/ChangeLog6
-rw-r--r--sim/cr16/interp.c6
-rw-r--r--sim/d10v/ChangeLog6
-rw-r--r--sim/d10v/interp.c4
-rw-r--r--sim/erc32/ChangeLog6
-rw-r--r--sim/erc32/interf.c4
-rw-r--r--sim/m32c/ChangeLog6
-rw-r--r--sim/m32c/gdb-if.c20
-rw-r--r--sim/ppc/ChangeLog6
-rw-r--r--sim/ppc/psim.c2
-rw-r--r--sim/ppc/sim_calls.c4
-rw-r--r--sim/rl78/ChangeLog6
-rw-r--r--sim/rl78/gdb-if.c22
-rw-r--r--sim/rx/ChangeLog6
-rw-r--r--sim/rx/gdb-if.c8
21 files changed, 111 insertions, 51 deletions
diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog
index 68cd1a4463f..150bb88ab6e 100644
--- a/sim/arm/ChangeLog
+++ b/sim/arm/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/7205
+
+ Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
+
2012-05-18 Nick Clifton <nickc@redhat.com>
PR 14072
diff --git a/sim/arm/wrapper.c b/sim/arm/wrapper.c
index 1c55f7514f1..f86799b8783 100644
--- a/sim/arm/wrapper.c
+++ b/sim/arm/wrapper.c
@@ -905,7 +905,7 @@ sim_stop_reason (sd, reason, sigrc)
if (stop_simulator)
{
*reason = sim_stopped;
- *sigrc = TARGET_SIGNAL_INT;
+ *sigrc = GDB_SIGNAL_INT;
}
else if (state->EndCondition == 0)
{
@@ -916,10 +916,10 @@ sim_stop_reason (sd, reason, sigrc)
{
*reason = sim_stopped;
if (state->EndCondition == RDIError_BreakpointReached)
- *sigrc = TARGET_SIGNAL_TRAP;
+ *sigrc = GDB_SIGNAL_TRAP;
else if ( state->EndCondition == RDIError_DataAbort
|| state->EndCondition == RDIError_AddressException)
- *sigrc = TARGET_SIGNAL_BUS;
+ *sigrc = GDB_SIGNAL_BUS;
else
*sigrc = 0;
}
diff --git a/sim/avr/ChangeLog b/sim/avr/ChangeLog
index 3cd0a98b073..7b38a16782b 100644
--- a/sim/avr/ChangeLog
+++ b/sim/avr/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/7205
+
+ Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
+
2012-03-24 Mike Frysinger <vapier@gentoo.org>
* aclocal.m4, config.in, configure: Regenerate.
diff --git a/sim/avr/interp.c b/sim/avr/interp.c
index 8b61af830ad..941aea73a46 100644
--- a/sim/avr/interp.c
+++ b/sim/avr/interp.c
@@ -870,7 +870,7 @@ sim_resume (SIM_DESC sd, int step, int signal)
if (step)
{
cpu_exception = sim_stopped;
- cpu_signal = TARGET_SIGNAL_TRAP;
+ cpu_signal = GDB_SIGNAL_TRAP;
}
else
cpu_exception = sim_running;
@@ -1000,7 +1000,7 @@ sim_resume (SIM_DESC sd, int step, int signal)
case OP_break:
/* Stop on this address. */
cpu_exception = sim_stopped;
- cpu_signal = TARGET_SIGNAL_TRAP;
+ cpu_signal = GDB_SIGNAL_TRAP;
pc = ipc;
break;
@@ -1763,7 +1763,7 @@ int
sim_stop (SIM_DESC sd)
{
cpu_exception = sim_stopped;
- cpu_signal = TARGET_SIGNAL_INT;
+ cpu_signal = GDB_SIGNAL_INT;
return 1;
}
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 588ff680c5c..da63533024b 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -2,6 +2,12 @@
PR gdb/7205
+ Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
+
+2012-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/7205
+
Replace target_signal with gdb_signal throughout.
2012-05-18 Nick Clifton <nickc@redhat.com>
diff --git a/sim/common/sim-signal.c b/sim/common/sim-signal.c
index 9e478cbdf9f..a34180db9c5 100644
--- a/sim/common/sim-signal.c
+++ b/sim/common/sim-signal.c
@@ -100,35 +100,35 @@ sim_signal_to_target (SIM_DESC sd, SIM_SIGNAL sig)
switch (sig)
{
case SIM_SIGINT :
- return TARGET_SIGNAL_INT;
+ return GDB_SIGNAL_INT;
case SIM_SIGABRT :
- return TARGET_SIGNAL_ABRT;
+ return GDB_SIGNAL_ABRT;
case SIM_SIGILL :
- return TARGET_SIGNAL_ILL;
+ return GDB_SIGNAL_ILL;
case SIM_SIGTRAP :
- return TARGET_SIGNAL_TRAP;
+ return GDB_SIGNAL_TRAP;
case SIM_SIGBUS :
- return TARGET_SIGNAL_BUS;
+ return GDB_SIGNAL_BUS;
case SIM_SIGSEGV :
- return TARGET_SIGNAL_SEGV;
+ return GDB_SIGNAL_SEGV;
case SIM_SIGXCPU :
- return TARGET_SIGNAL_XCPU;
+ return GDB_SIGNAL_XCPU;
case SIM_SIGFPE:
- return TARGET_SIGNAL_FPE;
+ return GDB_SIGNAL_FPE;
break;
case SIM_SIGNONE:
- return TARGET_SIGNAL_0;
+ return GDB_SIGNAL_0;
break;
}
sim_io_eprintf (sd, "sim_signal_to_host: unknown signal: %d\n", sig);
- return TARGET_SIGNAL_HUP;
+ return GDB_SIGNAL_HUP;
}
diff --git a/sim/cr16/ChangeLog b/sim/cr16/ChangeLog
index 1640e6b6801..c7f11898793 100644
--- a/sim/cr16/ChangeLog
+++ b/sim/cr16/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/7205
+
+ Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
+
2012-03-24 Mike Frysinger <vapier@gentoo.org>
* aclocal.m4, config.in, configure: Regenerate.
diff --git a/sim/cr16/interp.c b/sim/cr16/interp.c
index cdbbb2a3769..86c4c0d3ce2 100644
--- a/sim/cr16/interp.c
+++ b/sim/cr16/interp.c
@@ -1417,18 +1417,18 @@ sim_stop_reason (sd, reason, sigrc)
case SIG_CR16_BUS:
*reason = sim_stopped;
- *sigrc = TARGET_SIGNAL_BUS;
+ *sigrc = GDB_SIGNAL_BUS;
break;
//
// case SIG_CR16_IAD:
// *reason = sim_stopped;
-// *sigrc = TARGET_SIGNAL_IAD;
+// *sigrc = GDB_SIGNAL_IAD;
// break;
default: /* some signal */
*reason = sim_stopped;
if (stop_simulator && !State.exception)
- *sigrc = TARGET_SIGNAL_INT;
+ *sigrc = GDB_SIGNAL_INT;
else
*sigrc = State.exception;
break;
diff --git a/sim/d10v/ChangeLog b/sim/d10v/ChangeLog
index f71a16c7d38..58b34116cb2 100644
--- a/sim/d10v/ChangeLog
+++ b/sim/d10v/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/7205
+
+ Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
+
2012-03-24 Mike Frysinger <vapier@gentoo.org>
* aclocal.m4, config.in, configure: Regenerate.
diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c
index cd18eadc550..92f161bd95c 100644
--- a/sim/d10v/interp.c
+++ b/sim/d10v/interp.c
@@ -1278,13 +1278,13 @@ sim_stop_reason (sd, reason, sigrc)
case SIG_D10V_BUS:
*reason = sim_stopped;
- *sigrc = TARGET_SIGNAL_BUS;
+ *sigrc = GDB_SIGNAL_BUS;
break;
default: /* some signal */
*reason = sim_stopped;
if (stop_simulator && !State.exception)
- *sigrc = TARGET_SIGNAL_INT;
+ *sigrc = GDB_SIGNAL_INT;
else
*sigrc = State.exception;
break;
diff --git a/sim/erc32/ChangeLog b/sim/erc32/ChangeLog
index f8c1b80d64d..71181e1aee3 100644
--- a/sim/erc32/ChangeLog
+++ b/sim/erc32/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/7205
+
+ Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
+
2012-03-24 Mike Frysinger <vapier@gentoo.org>
* aclocal.m4, config.in, configure: Regenerate.
diff --git a/sim/erc32/interf.c b/sim/erc32/interf.c
index d94201a3ffd..d869cd587cd 100644
--- a/sim/erc32/interf.c
+++ b/sim/erc32/interf.c
@@ -388,13 +388,13 @@ sim_stop_reason(sd, reason, sigrc)
switch (simstat) {
case CTRL_C:
*reason = sim_stopped;
- *sigrc = TARGET_SIGNAL_INT;
+ *sigrc = GDB_SIGNAL_INT;
break;
case OK:
case TIME_OUT:
case BPT_HIT:
*reason = sim_stopped;
- *sigrc = TARGET_SIGNAL_TRAP;
+ *sigrc = GDB_SIGNAL_TRAP;
break;
case ERROR:
*sigrc = 0;
diff --git a/sim/m32c/ChangeLog b/sim/m32c/ChangeLog
index 899657b3b25..63d6b4acf11 100644
--- a/sim/m32c/ChangeLog
+++ b/sim/m32c/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/7205
+
+ Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
+
2012-05-18 Nick Clifton <nickc@redhat.com>
PR 14072
diff --git a/sim/m32c/gdb-if.c b/sim/m32c/gdb-if.c
index 863fcf405fc..bf84903a72c 100644
--- a/sim/m32c/gdb-if.c
+++ b/sim/m32c/gdb-if.c
@@ -530,28 +530,28 @@ m32c_signal_to_target (int m32c)
switch (m32c)
{
case 4:
- return TARGET_SIGNAL_ILL;
+ return GDB_SIGNAL_ILL;
case 5:
- return TARGET_SIGNAL_TRAP;
+ return GDB_SIGNAL_TRAP;
case 10:
- return TARGET_SIGNAL_BUS;
+ return GDB_SIGNAL_BUS;
case 11:
- return TARGET_SIGNAL_SEGV;
+ return GDB_SIGNAL_SEGV;
case 24:
- return TARGET_SIGNAL_XCPU;
+ return GDB_SIGNAL_XCPU;
case 2:
- return TARGET_SIGNAL_INT;
+ return GDB_SIGNAL_INT;
case 8:
- return TARGET_SIGNAL_FPE;
+ return GDB_SIGNAL_FPE;
case 6:
- return TARGET_SIGNAL_ABRT;
+ return GDB_SIGNAL_ABRT;
}
return 0;
@@ -566,7 +566,7 @@ handle_step (int rc)
if (M32C_STEPPED (rc) || M32C_HIT_BREAK (rc))
{
reason = sim_stopped;
- siggnal = TARGET_SIGNAL_TRAP;
+ siggnal = GDB_SIGNAL_TRAP;
}
else if (M32C_STOPPED (rc))
{
@@ -613,7 +613,7 @@ sim_resume (SIM_DESC sd, int step, int sig_to_deliver)
{
stop = 0;
reason = sim_stopped;
- siggnal = TARGET_SIGNAL_INT;
+ siggnal = GDB_SIGNAL_INT;
break;
}
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index 042a5586e04..b7ba20deec9 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/7205
+
+ Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
+
2012-03-14 Michael Haubenwallner <michael.haubenwallner@salomon.at>
* emul_unix.c (st_pad1, st_pad2, st_pad3): Undefine.
diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c
index 3e7638690a1..7378b9b2a02 100644
--- a/sim/ppc/psim.c
+++ b/sim/ppc/psim.c
@@ -592,7 +592,7 @@ cntrl_c_simulation(void *data)
psim_halt(system,
psim_nr_cpus(system),
was_continuing,
- TARGET_SIGNAL_INT);
+ GDB_SIGNAL_INT);
}
INLINE_PSIM\
diff --git a/sim/ppc/sim_calls.c b/sim/ppc/sim_calls.c
index e80db88b0d9..66d7f036d7f 100644
--- a/sim/ppc/sim_calls.c
+++ b/sim/ppc/sim_calls.c
@@ -198,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)
- *sigrc = TARGET_SIGNAL_TRAP;
+ *sigrc = GDB_SIGNAL_TRAP;
else
*sigrc = status.signal;
break;
case was_trap:
*reason = sim_stopped;
- *sigrc = TARGET_SIGNAL_TRAP;
+ *sigrc = GDB_SIGNAL_TRAP;
break;
case was_exited:
*reason = sim_exited;
diff --git a/sim/rl78/ChangeLog b/sim/rl78/ChangeLog
index af2898d2169..893bfb32419 100644
--- a/sim/rl78/ChangeLog
+++ b/sim/rl78/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/7205
+
+ Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
+
2012-03-24 Mike Frysinger <vapier@gentoo.org>
* aclocal.m4, config.in, configure: Regenerate.
diff --git a/sim/rl78/gdb-if.c b/sim/rl78/gdb-if.c
index e7c127797d9..e2a5ea0985e 100644
--- a/sim/rl78/gdb-if.c
+++ b/sim/rl78/gdb-if.c
@@ -371,30 +371,30 @@ rl78_signal_to_target (int sig)
switch (sig)
{
case 4:
- return TARGET_SIGNAL_ILL;
+ return GDB_SIGNAL_ILL;
case 5:
- return TARGET_SIGNAL_TRAP;
+ return GDB_SIGNAL_TRAP;
case 10:
- return TARGET_SIGNAL_BUS;
+ return GDB_SIGNAL_BUS;
case 11:
- return TARGET_SIGNAL_SEGV;
+ return GDB_SIGNAL_SEGV;
case 24:
- return TARGET_SIGNAL_XCPU;
+ return GDB_SIGNAL_XCPU;
break;
case 2:
- return TARGET_SIGNAL_INT;
+ return GDB_SIGNAL_INT;
case 8:
- return TARGET_SIGNAL_FPE;
+ return GDB_SIGNAL_FPE;
break;
case 6:
- return TARGET_SIGNAL_ABRT;
+ return GDB_SIGNAL_ABRT;
}
return 0;
@@ -410,7 +410,7 @@ handle_step (int rc)
if (RL78_STEPPED (rc) || RL78_HIT_BREAK (rc))
{
reason = sim_stopped;
- siggnal = TARGET_SIGNAL_TRAP;
+ siggnal = GDB_SIGNAL_TRAP;
}
else if (RL78_STOPPED (rc))
{
@@ -452,7 +452,7 @@ sim_resume (SIM_DESC sd, int step, int sig_to_deliver)
{
stop = 0;
reason = sim_stopped;
- siggnal = TARGET_SIGNAL_INT;
+ siggnal = GDB_SIGNAL_INT;
break;
}
@@ -460,7 +460,7 @@ sim_resume (SIM_DESC sd, int step, int sig_to_deliver)
&& (hw_breakpoints[pc >> 3] & (1 << (pc & 0x7))))
{
reason = sim_stopped;
- siggnal = TARGET_SIGNAL_TRAP;
+ siggnal = GDB_SIGNAL_TRAP;
break;
}
rc = setjmp (decode_jmp_buf);
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog
index 7170cb1d563..52c291fb5a9 100644
--- a/sim/rx/ChangeLog
+++ b/sim/rx/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-24 Pedro Alves <palves@redhat.com>
+
+ PR gdb/7205
+
+ Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
+
2012-03-24 Mike Frysinger <vapier@gentoo.org>
* aclocal.m4, config.in, configure: Regenerate.
diff --git a/sim/rx/gdb-if.c b/sim/rx/gdb-if.c
index 9a7e030d0dd..a9903e502cd 100644
--- a/sim/rx/gdb-if.c
+++ b/sim/rx/gdb-if.c
@@ -710,12 +710,12 @@ handle_step (int rc)
if (execution_error_get_last_error () != SIM_ERR_NONE)
{
reason = sim_stopped;
- siggnal = TARGET_SIGNAL_SEGV;
+ siggnal = GDB_SIGNAL_SEGV;
}
if (RX_STEPPED (rc) || RX_HIT_BREAK (rc))
{
reason = sim_stopped;
- siggnal = TARGET_SIGNAL_TRAP;
+ siggnal = GDB_SIGNAL_TRAP;
}
else if (RX_STOPPED (rc))
{
@@ -766,7 +766,7 @@ sim_resume (SIM_DESC sd, int step, int sig_to_deliver)
{
stop = 0;
reason = sim_stopped;
- siggnal = TARGET_SIGNAL_INT;
+ siggnal = GDB_SIGNAL_INT;
break;
}
@@ -777,7 +777,7 @@ sim_resume (SIM_DESC sd, int step, int sig_to_deliver)
if (execution_error_get_last_error () != SIM_ERR_NONE)
{
reason = sim_stopped;
- siggnal = TARGET_SIGNAL_SEGV;
+ siggnal = GDB_SIGNAL_SEGV;
break;
}