Skip to content

Commit 1ae6a78

Browse files
committed
[lldb] Fix Debugger whitespace and formatting (NFC)
Remove trailing whitespace and fix formatting.
1 parent d132b85 commit 1ae6a78

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

lldb/include/lldb/Core/Debugger.h

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
namespace llvm {
5353
class raw_ostream;
5454
class ThreadPool;
55-
}
55+
} // namespace llvm
5656

5757
namespace lldb_private {
5858
class Address;
@@ -377,19 +377,19 @@ class Debugger : public std::enable_shared_from_this<Debugger>,
377377
bool IsHandlingEvents() const { return m_event_handler_thread.IsJoinable(); }
378378

379379
Status RunREPL(lldb::LanguageType language, const char *repl_options);
380-
380+
381381
/// Interruption in LLDB:
382-
///
382+
///
383383
/// This is a voluntary interruption mechanism, not preemptive. Parts of lldb
384-
/// that do work that can be safely interrupted call
384+
/// that do work that can be safely interrupted call
385385
/// Debugger::InterruptRequested and if that returns true, they should return
386386
/// at a safe point, shortcutting the rest of the work they were to do.
387-
///
388-
/// lldb clients can both offer a CommandInterpreter (through
387+
///
388+
/// lldb clients can both offer a CommandInterpreter (through
389389
/// RunCommandInterpreter) and use the SB API's for their own purposes, so it
390390
/// is convenient to separate "interrupting the CommandInterpreter execution"
391-
/// and interrupting the work it is doing with the SB API's. So there are two
392-
/// ways to cause an interrupt:
391+
/// and interrupting the work it is doing with the SB API's. So there are two
392+
/// ways to cause an interrupt:
393393
/// * CommandInterpreter::InterruptCommand: Interrupts the command currently
394394
/// running in the command interpreter IOHandler thread
395395
/// * Debugger::RequestInterrupt: Interrupts are active on anything but the
@@ -398,21 +398,20 @@ class Debugger : public std::enable_shared_from_this<Debugger>,
398398
/// Since the two checks are mutually exclusive, however, it's also convenient
399399
/// to have just one function to check the interrupt state.
400400

401-
402401
/// Bump the "interrupt requested" count on the debugger to support
403402
/// cooperative interruption. If this is non-zero, InterruptRequested will
404403
/// return true. Interruptible operations are expected to query the
405404
/// InterruptRequested API periodically, and interrupt what they were doing
406405
/// if it returns \b true.
407406
///
408407
void RequestInterrupt();
409-
408+
410409
/// Decrement the "interrupt requested" counter.
411410
void CancelInterruptRequest();
412-
411+
413412
/// This is the correct way to query the state of Interruption.
414-
/// If you are on the RunCommandInterpreter thread, it will check the
415-
/// command interpreter state, and if it is on another thread it will
413+
/// If you are on the RunCommandInterpreter thread, it will check the
414+
/// command interpreter state, and if it is on another thread it will
416415
/// check the debugger Interrupt Request state.
417416
///
418417
/// \return
@@ -574,13 +573,13 @@ class Debugger : public std::enable_shared_from_this<Debugger>,
574573
bool StartIOHandlerThread();
575574

576575
void StopIOHandlerThread();
577-
576+
578577
// Sets the IOHandler thread to the new_thread, and returns
579578
// the previous IOHandler thread.
580579
HostThread SetIOHandlerThread(HostThread &new_thread);
581580

582581
void JoinIOHandlerThread();
583-
582+
584583
bool IsIOHandlerThreadCurrentThread() const;
585584

586585
lldb::thread_result_t IOHandlerThread();

lldb/source/Core/Debugger.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,10 @@ Status Debugger::SetPropertyValue(const ExecutionContext *exe_ctx,
236236
// use-color changed. Ping the prompt so it can reset the ansi terminal
237237
// codes.
238238
SetPrompt(GetPrompt());
239-
} else if (property_path == g_debugger_properties[ePropertyUseSourceCache].name) {
240-
// use-source-cache changed. Wipe out the cache contents if it was disabled.
239+
} else if (property_path ==
240+
g_debugger_properties[ePropertyUseSourceCache].name) {
241+
// use-source-cache changed. Wipe out the cache contents if it was
242+
// disabled.
241243
if (!GetUseSourceCache()) {
242244
m_source_file_cache.Clear();
243245
}
@@ -1707,7 +1709,7 @@ void Debugger::HandleProcessEvent(const EventSP &event_sp) {
17071709

17081710
// Display running state changes first before any STDIO
17091711
if (got_state_changed && !state_is_stopped) {
1710-
// This is a public stop which we are going to announce to the user, so
1712+
// This is a public stop which we are going to announce to the user, so
17111713
// we should force the most relevant frame selection here.
17121714
Process::HandleProcessStateChangedEvent(event_sp, output_stream_sp.get(),
17131715
SelectMostRelevantFrame,

0 commit comments

Comments
 (0)