diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2005-03-24 01:14:09 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2005-03-24 01:14:09 +0000 |
commit | 2ecb839027f3cc2f6f5dd55eddd65df2efa0c4a8 (patch) | |
tree | a1253181ab11b89a421229b2cb8193f8e87348f0 /sim/cris | |
parent | a339a1c61bff378910df53a32ccf2e2fb3c09932 (diff) | |
download | gdb-2ecb839027f3cc2f6f5dd55eddd65df2efa0c4a8.zip gdb-2ecb839027f3cc2f6f5dd55eddd65df2efa0c4a8.tar.gz gdb-2ecb839027f3cc2f6f5dd55eddd65df2efa0c4a8.tar.bz2 |
* cris/traps.c (cris_break_13_handler) <case
TARGET_SYS_rt_sigaction>: Rename sa_handler, sa_flags,
sa_restorer, sa_mask_low, sa_mask_high to target_sa_handler etc.
Diffstat (limited to 'sim/cris')
-rw-r--r-- | sim/cris/traps.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/sim/cris/traps.c b/sim/cris/traps.c index ff39a4f..eadb744 100644 --- a/sim/cris/traps.c +++ b/sim/cris/traps.c @@ -1790,15 +1790,15 @@ cris_break_13_handler (SIM_CPU *current_cpu, USI callnum, USI arg1, } if (new_sa != 0) { - USI sa_handler + USI target_sa_handler = sim_core_read_unaligned_4 (current_cpu, pc, 0, new_sa); - USI sa_flags + USI target_sa_flags = sim_core_read_unaligned_4 (current_cpu, pc, 0, new_sa + 4); - USI sa_restorer + USI target_sa_restorer = sim_core_read_unaligned_4 (current_cpu, pc, 0, new_sa + 8); - USI sa_mask_low + USI target_sa_mask_low = sim_core_read_unaligned_4 (current_cpu, pc, 0, new_sa + 12); - USI sa_mask_high + USI target_sa_mask_high = sim_core_read_unaligned_4 (current_cpu, pc, 0, new_sa + 16); /* We won't interrupt a syscall so we won't restart it, @@ -1808,10 +1808,10 @@ cris_break_13_handler (SIM_CPU *current_cpu, USI callnum, USI arg1, TARGET_SA_RESTORER, so don't look at it. For the time being, we don't nest sighandlers, so we ignore the sa_mask, which simplifies things. */ - if ((sa_flags != 0 - && sa_flags != TARGET_SA_RESTART - && sa_flags != (TARGET_SA_RESTART|TARGET_SA_SIGINFO)) - || sa_handler == 0) + if ((target_sa_flags != 0 + && target_sa_flags != TARGET_SA_RESTART + && target_sa_flags != (TARGET_SA_RESTART|TARGET_SA_SIGINFO)) + || target_sa_handler == 0) { sim_io_eprintf (sd, "Unimplemented rt_sigaction " "syscall (0x%lx, " @@ -1820,14 +1820,15 @@ cris_break_13_handler (SIM_CPU *current_cpu, USI callnum, USI arg1, "0x%lx)\n", (unsigned long) arg1, (unsigned long) arg2, - sa_handler, sa_flags, sa_restorer, - sa_mask_low, sa_mask_high, + target_sa_handler, target_sa_flags, + target_sa_restorer, + target_sa_mask_low, target_sa_mask_high, (unsigned long) arg3); sim_engine_halt (sd, current_cpu, NULL, pc, sim_stopped, SIM_SIGILL); } - current_cpu->sighandler[signum] = sa_handler; + current_cpu->sighandler[signum] = target_sa_handler; /* Because we may have unblocked signals, one may now be pending, if there are threads, that is. */ |