linux_demon: do not report exception repeats on first-chance signals

This commit is contained in:
Ryan Fleury committed 2026-10-01 13:11:58 -06:00
1 parent 5acbed46ba
commit b7ee36e35e
2 files changed
+2 -38

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
// raddbg 0.9.29 project file
// raddbg 0.9.30 project file
name: "The RAD Debugger"
target:
@@ -7,7 +7,6 @@ target:
working_directory: build
arguments: "--user:raddbg_test.user"
debug_subprocesses: 0
enabled: 1
}
target:
{
@@ -36,6 +35,7 @@ target:
executable: "build/raddbg"
working_directory: build
arguments: "--user:raddbg_test.user"
enabled: 1
}
target:
{
-36
View File
@@ -2293,41 +2293,6 @@ dmn_ctrl_run(Arena *arena, DMN_CtrlCtx *ctx, DMN_RunCtrls *ctrls)
{
thread->pass_through_signal = 1;
thread->pass_through_signo = wstopsig;
local_persist B8 is_repeatable[] =
{
0, // null
1, // SIGHUP 1
1, // SIGINT 2
1, // SIGQUIT 3
1, // SIGILL 4
1, // SIGTRAP 5
1, // SIGABRT/SIGIOT 6
1, // SIGBUS 7
1, // SIGFPE 8
1, // SIGKILL 9
1, // SIGUSR1 10
1, // SIGSEGV 11
1, // SIGUSR2 12
1, // SIGPIPE 13
1, // SIGALRM 14
1, // SIGTERM 15
1, // SIGSTKFLT 16
0, // SIGCHLD 17
0, // SIGCONT 18
1, // SIGSTOP 19
1, // SIGTSTP 20
1, // SIGTTIN 21
1, // SIGTTOU 22
0, // SIGURG 23
1, // SIGXCPU 24
1, // SIGXFSZ 25
1, // SIGVTALRM 26
1, // SIGPROF 27
0, // SIGWINCH 28
1, // SIGIO 29
1, // SIGPWR 30
1, // SIGSYS/SIGUNUSED31
};
DMN_Event *e = dmn_event_list_push(arena, &events);
e->kind = DMN_EventKind_Exception;
e->process = lnx_dmn_handle_from_process(thread->process);
@@ -2335,7 +2300,6 @@ dmn_ctrl_run(Arena *arena, DMN_CtrlCtx *ctx, DMN_RunCtrls *ctrls)
e->instruction_pointer = lnx_dmn_ip_from_thread(thread);
e->address = e->instruction_pointer;
e->code = wstopsig;
e->exception_repeated = wstopsig < ArrayCount(is_repeatable) ? is_repeatable[wstopsig] : 0;
if(wstopsig == SIGSEGV)
{
siginfo_t si = {0};