mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +00: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
Notes:
github-actions[bot]
2025-08-19 10:25:58 +00:00
Author: https://github.com/gmta
Commit: bc7658d3d3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5908
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue