mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibDebug: Add static attach() function
This function is similar to exec_and_attach(), but instead of spawning a new process and debugging it, it attaches to an existing process.
This commit is contained in:
parent
ddec9cb1f0
commit
26250fe14a
Notes:
sideshowbarker
2024-07-17 00:39:54 +09:00
Author: https://github.com/itamar8910
Commit: 26250fe14a
Pull-request: https://github.com/SerenityOS/serenity/pull/17362
2 changed files with 21 additions and 0 deletions
|
@ -28,6 +28,7 @@ namespace Debug {
|
|||
class DebugSession : public ProcessInspector {
|
||||
public:
|
||||
static OwnPtr<DebugSession> exec_and_attach(DeprecatedString const& command, DeprecatedString source_root = {}, Function<ErrorOr<void>()> setup_child = {});
|
||||
static OwnPtr<DebugSession> attach(pid_t pid, DeprecatedString source_root = {});
|
||||
|
||||
virtual ~DebugSession() override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue