aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
diff options
context:
space:
mode:
authorFelipe de Azevedo Piovezan <fpiovezan@apple.com>2022-09-13 11:30:07 -0400
committerFelipe de Azevedo Piovezan <fpiovezan@apple.com>2022-09-19 12:56:12 -0400
commit974958749827bc4fb88b67feab4bcd7536f70456 (patch)
tree571b91506356568ad6a37e619f428d45780adbbb /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
parent95b39471110680f609cf56f5babf031a1c855d64 (diff)
downloadllvm-974958749827bc4fb88b67feab4bcd7536f70456.zip
llvm-974958749827bc4fb88b67feab4bcd7536f70456.tar.gz
llvm-974958749827bc4fb88b67feab4bcd7536f70456.tar.bz2
[lldb] Reset breakpoint hit count before new runs
A common debugging pattern is to set a breakpoint that only stops after a number of hits is recorded. The current implementation never resets the hit count of breakpoints; as such, if a user re-`run`s their program, the debugger will never stop on such a breakpoint again. This behavior is arguably undesirable, as it renders such breakpoints ineffective on all but the first run. This commit changes the implementation of the `Will{Launch, Attach}` methods so that they reset the _target's_ breakpoint hitcounts. Differential Revision: https://reviews.llvm.org/D133858
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
index 8e2a462..0f826cc 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
@@ -77,16 +77,16 @@ public:
CommandObject *GetPluginCommandObject() override;
// Creating a new process, or attaching to an existing one
- Status WillLaunch(Module *module) override;
+ Status DoWillLaunch(Module *module) override;
Status DoLaunch(Module *exe_module, ProcessLaunchInfo &launch_info) override;
void DidLaunch() override;
- Status WillAttachToProcessWithID(lldb::pid_t pid) override;
+ Status DoWillAttachToProcessWithID(lldb::pid_t pid) override;
- Status WillAttachToProcessWithName(const char *process_name,
- bool wait_for_launch) override;
+ Status DoWillAttachToProcessWithName(const char *process_name,
+ bool wait_for_launch) override;
Status DoConnectRemote(llvm::StringRef remote_url) override;