[Lldb-commits] [PATCH] D100256: [lldb] [gdb-remote server] Abstract away getting current process

2021-04-11 Thread Michał Górny via Phabricator via lldb-commits
mgorny created this revision. mgorny added reviewers: labath, emaste, krytarowski. mgorny requested review of this revision. Introduce a new GetCurrentProcess() function to abstract away getting the current NativeProcessProtocol instance. At this moment, this merely streamlines checking for valid

[Lldb-commits] [PATCH] D100208: [lldb] [Process/Linux] Report fork/vfork stop reason to client

2021-04-11 Thread Michał Górny via Phabricator via lldb-commits
mgorny updated this revision to Diff 336657. mgorny added a comment. Copy software breakpoints to the forked process, to future-proof this patch for breakpoint support (I suppose there's no point in splitting it more). Add `GetSupportedExtensions()` to actually enable the new code. CHANGES SIN

[Lldb-commits] [PATCH] D100261: [lldb] [gdb-remote server] Support selecting process via Hg

2021-04-11 Thread Michał Górny via Phabricator via lldb-commits
mgorny created this revision. mgorny added reviewers: labath, emaste, krytarowski. mgorny requested review of this revision. Support using the extended thread-id syntax with Hg packet to select a subprocess. This makes it possible to start providing support for running some of the debugger packet

[Lldb-commits] [PATCH] D100262: [lldb] [gdb-remote client] Support switching PID along with TID

2021-04-11 Thread Michał Górny via Phabricator via lldb-commits
mgorny created this revision. mgorny added reviewers: labath, emaste, krytarowski. mgorny requested review of this revision. Extend the SetCurrentThread() method to support specifying an alternate PID to switch to. This makes it possible to issue requests to forked processes. https://reviews.ll

[Lldb-commits] [PATCH] D100263: [lldb] [gdb-remote client] Remove breakpoints in forked processes

2021-04-11 Thread Michał Górny via Phabricator via lldb-commits
mgorny created this revision. mgorny added reviewers: labath, emaste, krytarowski. mgorny requested review of this revision. Remove software breakpoints from forked processes in order to restore the original program code before detaching it. https://reviews.llvm.org/D100263 Files: lldb/source

[Lldb-commits] [PATCH] D100263: [lldb] [gdb-remote client] Remove breakpoints in forked processes

2021-04-11 Thread Michał Górny via Phabricator via lldb-commits
mgorny added a comment. (TODO: vfork support) CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100263/new/ https://reviews.llvm.org/D100263 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[Lldb-commits] [PATCH] D99864: [lldb] Fork/vfork support via gdb-remote protocol [WIP]

2021-04-11 Thread Michał Górny via Phabricator via lldb-commits
mgorny abandoned this revision. mgorny added a comment. Let's close this as all the features are now part of other diffs. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D99864/new/ https://reviews.llvm.org/D99864 ___ lldb-commits mailing list l

[Lldb-commits] [PATCH] D100196: [lldb] Introduce new stop reasons for fork and vfork

2021-04-11 Thread Michał Górny via Phabricator via lldb-commits
mgorny updated this revision to Diff 336668. mgorny retitled this revision from "[lldb] Introduce new stop reasons: fork and vfork" to "[lldb] Introduce new stop reasons for fork and vfork". mgorny edited the summary of this revision. mgorny added a comment. Add 'vforkdone' stop reason. Move over

[Lldb-commits] [PATCH] D100206: [lldb] [llgs client] Support minimal fork/vfork handling

2021-04-11 Thread Michał Górny via Phabricator via lldb-commits
mgorny updated this revision to Diff 336669. mgorny added a comment. Base class `Did*Fork()` definitions have been moved to the earlier patch. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100206/new/ https://reviews.llvm.org/D100206 Files: lldb/source/Plugins/Process/gdb-remote/Proc

[Lldb-commits] [PATCH] D100208: [lldb] [Process/Linux] Report fork/vfork stop reason to client

2021-04-11 Thread Michał Górny via Phabricator via lldb-commits
mgorny updated this revision to Diff 336670. mgorny added a comment. Report vfork-done stop to the client as well. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100208/new/ https://reviews.llvm.org/D100208 Files: lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp lldb/source/

[Lldb-commits] [PATCH] D100267: [lldb] [gdb-remote client] Remove breakpoints throughout vfork

2021-04-11 Thread Michał Górny via Phabricator via lldb-commits
mgorny created this revision. mgorny added reviewers: labath, emaste, krytarowski. mgorny requested review of this revision. Temporarily remove breakpoints for the duration of vfork, in order to prevent them from triggering in the child process. Restore them once the server reports that vfork has