Skip to content

Commit a925328

Browse files
author
Al Viro
committed
tile: don't bother with SIGTRAP in setup_frame
Tell signal_delivered() to do it instead. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 7f1c616 commit a925328

2 files changed

Lines changed: 2 additions & 19 deletions

File tree

‎arch/tile/kernel/compat_signal.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -411,15 +411,6 @@ int compat_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
411411
regs->regs[1] = ptr_to_compat_reg(&frame->info);
412412
regs->regs[2] = ptr_to_compat_reg(&frame->uc);
413413
regs->flags |= PT_FLAGS_CALLER_SAVES;
414-
415-
/*
416-
* Notify any tracer that was single-stepping it.
417-
* The tracer may want to single-step inside the
418-
* handler too.
419-
*/
420-
if (test_thread_flag(TIF_SINGLESTEP))
421-
ptrace_notify(SIGTRAP);
422-
423414
return 0;
424415

425416
give_sigsegv:

‎arch/tile/kernel/signal.c‎

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,6 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
219219
regs->regs[1] = (unsigned long) &frame->info;
220220
regs->regs[2] = (unsigned long) &frame->uc;
221221
regs->flags |= PT_FLAGS_CALLER_SAVES;
222-
223-
/*
224-
* Notify any tracer that was single-stepping it.
225-
* The tracer may want to single-step inside the
226-
* handler too.
227-
*/
228-
if (test_thread_flag(TIF_SINGLESTEP))
229-
ptrace_notify(SIGTRAP);
230-
231222
return 0;
232223

233224
give_sigsegv:
@@ -278,7 +269,8 @@ static void handle_signal(unsigned long sig, siginfo_t *info,
278269
ret = setup_rt_frame(sig, ka, info, oldset, regs);
279270
if (ret)
280271
return;
281-
signal_delivered(sig, info, ka, regs, 0);
272+
signal_delivered(sig, info, ka, regs,
273+
test_thread_flag(TIF_SINGLESTEP));
282274
}
283275

284276
/*

0 commit comments

Comments
 (0)