mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibCore: Don't send SIGTRAP when debugger attaches
Both gdb and lldb interrupt execution after attaching to the process, so no need to send a SIGTRAP immediately after which would require typing `continue` in the debugger twice.
This commit is contained in:
parent
1869399fd1
commit
bc7658d3d3
|
|
@ -307,10 +307,8 @@ void Process::wait_for_debugger_and_break()
|
|||
dbgln("Cannot wait for debugger: {}. Continuing.", check.release_error());
|
||||
return;
|
||||
}
|
||||
if (check.value()) {
|
||||
kill(getpid(), SIGTRAP);
|
||||
if (check.value())
|
||||
return;
|
||||
}
|
||||
if (should_print_process_info) {
|
||||
dbgln("Process {} with pid {} is sleeping, waiting for debugger.", Process::get_name(), getpid());
|
||||
should_print_process_info = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user