mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 21:26: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());
|
dbgln("Cannot wait for debugger: {}. Continuing.", check.release_error());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (check.value()) {
|
if (check.value())
|
||||||
kill(getpid(), SIGTRAP);
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
if (should_print_process_info) {
|
if (should_print_process_info) {
|
||||||
dbgln("Process {} with pid {} is sleeping, waiting for debugger.", Process::get_name(), getpid());
|
dbgln("Process {} with pid {} is sleeping, waiting for debugger.", Process::get_name(), getpid());
|
||||||
should_print_process_info = false;
|
should_print_process_info = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue