Skip to content

Commit f13005a

Browse files
augusto2112DanielCChen
authored andcommitted
Revert "[lldb] Implement basic support for reverse-continue (llvm#99736)"
This reverts commit d5e1de6.
1 parent 26e616a commit f13005a

32 files changed

+44
-978
lines changed

lldb/include/lldb/API/SBProcess.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ class LLDB_API SBProcess {
159159
lldb::SBError Destroy();
160160

161161
lldb::SBError Continue();
162-
lldb::SBError Continue(RunDirection direction);
163162

164163
lldb::SBError Stop();
165164

lldb/include/lldb/Target/Process.h

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -857,10 +857,10 @@ class Process : public std::enable_shared_from_this<Process>,
857857
/// \see Thread:Resume()
858858
/// \see Thread:Step()
859859
/// \see Thread:Suspend()
860-
Status Resume(lldb::RunDirection direction = lldb::eRunForward);
860+
Status Resume();
861861

862862
/// Resume a process, and wait for it to stop.
863-
Status ResumeSynchronous(Stream *stream, lldb::RunDirection direction = lldb::eRunForward);
863+
Status ResumeSynchronous(Stream *stream);
864864

865865
/// Halts a running process.
866866
///
@@ -1104,14 +1104,9 @@ class Process : public std::enable_shared_from_this<Process>,
11041104
/// \see Thread:Resume()
11051105
/// \see Thread:Step()
11061106
/// \see Thread:Suspend()
1107-
virtual Status DoResume(lldb::RunDirection direction) {
1108-
if (direction == lldb::RunDirection::eRunForward) {
1109-
return Status::FromErrorStringWithFormatv(
1110-
"error: {0} does not support resuming processes", GetPluginName());
1111-
} else {
1112-
return Status::FromErrorStringWithFormatv(
1113-
"error: {0} does not support reverse execution of processes", GetPluginName());
1114-
}
1107+
virtual Status DoResume() {
1108+
return Status::FromErrorStringWithFormatv(
1109+
"error: {0} does not support resuming processes", GetPluginName());
11151110
}
11161111

11171112
/// Called after resuming a process.
@@ -2337,8 +2332,6 @@ class Process : public std::enable_shared_from_this<Process>,
23372332

23382333
bool IsRunning() const;
23392334

2340-
lldb::RunDirection GetLastRunDirection() { return m_last_run_direction; }
2341-
23422335
DynamicCheckerFunctions *GetDynamicCheckers() {
23432336
return m_dynamic_checkers_up.get();
23442337
}
@@ -2858,7 +2851,7 @@ void PruneThreadPlans();
28582851
///
28592852
/// \return
28602853
/// An Status object describing the success or failure of the resume.
2861-
Status PrivateResume(lldb::RunDirection direction = lldb::eRunForward);
2854+
Status PrivateResume();
28622855

28632856
// Called internally
28642857
void CompleteAttach();
@@ -3134,8 +3127,6 @@ void PruneThreadPlans();
31343127
// m_currently_handling_do_on_removals are true,
31353128
// Resume will only request a resume, using this
31363129
// flag to check.
3137-
// The direction of execution from the last time this process was resumed.
3138-
lldb::RunDirection m_last_run_direction;
31393130

31403131
lldb::tid_t m_interrupt_tid; /// The tid of the thread that issued the async
31413132
/// interrupt, used by thread plan timeout. It

lldb/include/lldb/Target/StopInfo.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,6 @@ class StopInfo : public std::enable_shared_from_this<StopInfo> {
142142
static lldb::StopInfoSP
143143
CreateStopReasonProcessorTrace(Thread &thread, const char *description);
144144

145-
// This creates a StopInfo indicating that execution stopped because
146-
// it was replaying some recorded execution history, and execution reached
147-
// the end of that recorded history.
148-
static lldb::StopInfoSP
149-
CreateStopReasonHistoryBoundary(Thread &thread, const char *description);
150-
151145
static lldb::StopInfoSP CreateStopReasonFork(Thread &thread,
152146
lldb::pid_t child_pid,
153147
lldb::tid_t child_tid);

lldb/include/lldb/lldb-enumerations.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,6 @@ FLAGS_ENUM(LaunchFlags){
135135
/// Thread Run Modes.
136136
enum RunMode { eOnlyThisThread, eAllThreads, eOnlyDuringStepping };
137137

138-
/// Execution directions
139-
enum RunDirection { eRunForward, eRunReverse };
140-
141138
/// Byte ordering definitions.
142139
enum ByteOrder {
143140
eByteOrderInvalid = 0,
@@ -257,9 +254,6 @@ enum StopReason {
257254
eStopReasonVFork,
258255
eStopReasonVForkDone,
259256
eStopReasonInterrupt, ///< Thread requested interrupt
260-
// Indicates that execution stopped because the debugger backend relies
261-
// on recorded data and we reached the end of that data.
262-
eStopReasonHistoryBoundary,
263257
};
264258

265259
/// Command Return Status Types.

lldb/packages/Python/lldbsuite/test/gdbclientutils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,9 +510,8 @@ def start(self):
510510
self._thread.start()
511511

512512
def stop(self):
513-
if self._thread is not None:
514-
self._thread.join()
515-
self._thread = None
513+
self._thread.join()
514+
self._thread = None
516515

517516
def get_connect_address(self):
518517
return self._socket.get_connect_address()

lldb/packages/Python/lldbsuite/test/lldbgdbproxy.py

Lines changed: 0 additions & 175 deletions
This file was deleted.

0 commit comments

Comments
 (0)