summaryrefslogtreecommitdiffstats
path: root/lldb/tools
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/tools')
-rw-r--r--lldb/tools/darwin-debug/darwin-debug.cpp2
-rw-r--r--lldb/tools/debugserver/source/DNB.cpp54
-rw-r--r--lldb/tools/debugserver/source/DNB.h16
-rw-r--r--lldb/tools/debugserver/source/DNBDataRef.cpp30
-rw-r--r--lldb/tools/debugserver/source/DNBDefs.h10
-rw-r--r--lldb/tools/debugserver/source/DNBLog.cpp18
-rw-r--r--lldb/tools/debugserver/source/DNBTimer.h10
-rw-r--r--lldb/tools/debugserver/source/JSON.h2
-rw-r--r--lldb/tools/debugserver/source/JSONGenerator.h2
-rw-r--r--lldb/tools/debugserver/source/MacOSX/CFBundle.cpp10
-rw-r--r--lldb/tools/debugserver/source/MacOSX/CFBundle.h2
-rw-r--r--lldb/tools/debugserver/source/MacOSX/CFString.cpp8
-rw-r--r--lldb/tools/debugserver/source/MacOSX/CFString.h2
-rw-r--r--lldb/tools/debugserver/source/MacOSX/CFUtils.h2
-rw-r--r--lldb/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.h6
-rw-r--r--lldb/tools/debugserver/source/MacOSX/DarwinLog/LogFilterRegex.cpp2
-rw-r--r--lldb/tools/debugserver/source/MacOSX/DarwinLog/LogMessageOsLog.h2
-rw-r--r--lldb/tools/debugserver/source/MacOSX/Genealogy.cpp2
-rw-r--r--lldb/tools/debugserver/source/MacOSX/MachProcess.h16
-rw-r--r--lldb/tools/debugserver/source/MacOSX/MachTask.h3
-rw-r--r--lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp2
-rw-r--r--lldb/tools/debugserver/source/MacOSX/OsLogger.cpp2
-rw-r--r--lldb/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp4
-rw-r--r--lldb/tools/debugserver/source/MacOSX/arm64/DNBArchImplARM64.cpp4
-rw-r--r--lldb/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp4
-rw-r--r--lldb/tools/debugserver/source/MacOSX/ppc/DNBArchImpl.cpp4
-rw-r--r--lldb/tools/debugserver/source/MacOSX/x86_64/DNBArchImplX86_64.cpp4
-rw-r--r--lldb/tools/debugserver/source/PThreadEvent.cpp4
-rw-r--r--lldb/tools/debugserver/source/PThreadEvent.h2
-rw-r--r--lldb/tools/debugserver/source/PseudoTerminal.cpp16
-rw-r--r--lldb/tools/debugserver/source/PseudoTerminal.h6
-rw-r--r--lldb/tools/debugserver/source/RNBContext.cpp6
-rw-r--r--lldb/tools/debugserver/source/RNBContext.h6
-rw-r--r--lldb/tools/debugserver/source/RNBRemote.cpp20
-rw-r--r--lldb/tools/debugserver/source/StdStringExtractor.cpp14
-rw-r--r--lldb/tools/debugserver/source/StdStringExtractor.h6
-rw-r--r--lldb/tools/debugserver/source/debugserver.cpp22
-rw-r--r--lldb/tools/debugserver/source/libdebugserver.cpp8
-rw-r--r--lldb/tools/intel-features/intel-pt/Decoder.h16
-rw-r--r--lldb/tools/intel-features/intel-pt/PTDecoder.h20
-rw-r--r--lldb/tools/lldb-mi/MICmdArgContext.cpp10
-rw-r--r--lldb/tools/lldb-mi/MICmdArgSet.cpp14
-rw-r--r--lldb/tools/lldb-mi/MICmdArgValBase.cpp9
-rw-r--r--lldb/tools/lldb-mi/MICmdArgValBase.h2
-rw-r--r--lldb/tools/lldb-mi/MICmdArgValConsume.cpp5
-rw-r--r--lldb/tools/lldb-mi/MICmdArgValFile.cpp7
-rw-r--r--lldb/tools/lldb-mi/MICmdArgValListBase.cpp7
-rw-r--r--lldb/tools/lldb-mi/MICmdArgValListBase.h1
-rw-r--r--lldb/tools/lldb-mi/MICmdArgValListOfN.cpp7
-rw-r--r--lldb/tools/lldb-mi/MICmdArgValListOfN.h1
-rw-r--r--lldb/tools/lldb-mi/MICmdArgValNumber.cpp7
-rw-r--r--lldb/tools/lldb-mi/MICmdArgValNumber.h1
-rw-r--r--lldb/tools/lldb-mi/MICmdArgValOptionLong.cpp11
-rw-r--r--lldb/tools/lldb-mi/MICmdArgValOptionLong.h1
-rw-r--r--lldb/tools/lldb-mi/MICmdArgValOptionShort.cpp7
-rw-r--r--lldb/tools/lldb-mi/MICmdArgValPrintValues.cpp7
-rw-r--r--lldb/tools/lldb-mi/MICmdArgValString.cpp14
-rw-r--r--lldb/tools/lldb-mi/MICmdArgValThreadGrp.cpp7
-rw-r--r--lldb/tools/lldb-mi/MICmdBase.cpp20
-rw-r--r--lldb/tools/lldb-mi/MICmdBase.h2
-rw-r--r--lldb/tools/lldb-mi/MICmdCmd.cpp13
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdBreak.cpp53
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdData.cpp89
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdEnviro.cpp6
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdExec.cpp84
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdFile.cpp7
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdGdbInfo.cpp8
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdGdbSet.cpp14
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdGdbShow.cpp13
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdGdbThread.cpp5
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdMiscellanous.cpp31
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdStack.cpp60
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdSupportInfo.cpp6
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdSupportList.cpp5
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdSymbol.cpp6
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdTarget.cpp18
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdThread.cpp6
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdTrace.cpp5
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdVar.cpp81
-rw-r--r--lldb/tools/lldb-mi/MICmdCommands.cpp2
-rw-r--r--lldb/tools/lldb-mi/MICmdFactory.cpp9
-rw-r--r--lldb/tools/lldb-mi/MICmdInterpreter.cpp11
-rw-r--r--lldb/tools/lldb-mi/MICmdInvoker.cpp12
-rw-r--r--lldb/tools/lldb-mi/MICmdMgr.cpp9
-rw-r--r--lldb/tools/lldb-mi/MICmdMgrSetCmdDeleteCallback.cpp5
-rw-r--r--lldb/tools/lldb-mi/MICmnBase.cpp8
-rw-r--r--lldb/tools/lldb-mi/MICmnLLDBBroadcaster.cpp4
-rw-r--r--lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp24
-rw-r--r--lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.h2
-rw-r--r--lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfoVarObj.cpp33
-rw-r--r--lldb/tools/lldb-mi/MICmnLLDBDebugger.cpp32
-rw-r--r--lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp38
-rw-r--r--lldb/tools/lldb-mi/MICmnLLDBProxySBValue.cpp3
-rw-r--r--lldb/tools/lldb-mi/MICmnLLDBUtilSBValue.cpp20
-rw-r--r--lldb/tools/lldb-mi/MICmnLog.cpp15
-rw-r--r--lldb/tools/lldb-mi/MICmnLogMediumFile.cpp23
-rw-r--r--lldb/tools/lldb-mi/MICmnMIOutOfBandRecord.cpp8
-rw-r--r--lldb/tools/lldb-mi/MICmnMIResultRecord.cpp8
-rw-r--r--lldb/tools/lldb-mi/MICmnMIValue.cpp3
-rw-r--r--lldb/tools/lldb-mi/MICmnMIValueConst.cpp4
-rw-r--r--lldb/tools/lldb-mi/MICmnMIValueList.cpp10
-rw-r--r--lldb/tools/lldb-mi/MICmnMIValueResult.cpp7
-rw-r--r--lldb/tools/lldb-mi/MICmnMIValueTuple.cpp11
-rw-r--r--lldb/tools/lldb-mi/MICmnResources.cpp8
-rw-r--r--lldb/tools/lldb-mi/MICmnStreamStderr.cpp11
-rw-r--r--lldb/tools/lldb-mi/MICmnStreamStdin.cpp9
-rw-r--r--lldb/tools/lldb-mi/MICmnStreamStdout.cpp11
-rw-r--r--lldb/tools/lldb-mi/MICmnThreadMgrStd.cpp6
-rw-r--r--lldb/tools/lldb-mi/MICmnThreadMgrStd.h1
-rw-r--r--lldb/tools/lldb-mi/MIDataTypes.h3
-rw-r--r--lldb/tools/lldb-mi/MIDriver.cpp50
-rw-r--r--lldb/tools/lldb-mi/MIDriverBase.cpp11
-rw-r--r--lldb/tools/lldb-mi/MIDriverMain.cpp4
-rw-r--r--lldb/tools/lldb-mi/MIDriverMgr.cpp22
-rw-r--r--lldb/tools/lldb-mi/MIUtilDateTimeStd.cpp5
-rw-r--r--lldb/tools/lldb-mi/MIUtilDebug.cpp8
-rw-r--r--lldb/tools/lldb-mi/MIUtilFileStd.cpp11
-rw-r--r--lldb/tools/lldb-mi/MIUtilMapIdToVariant.cpp7
-rw-r--r--lldb/tools/lldb-mi/MIUtilMapIdToVariant.h2
-rw-r--r--lldb/tools/lldb-mi/MIUtilString.cpp34
-rw-r--r--lldb/tools/lldb-mi/MIUtilThreadBaseStd.cpp24
-rw-r--r--lldb/tools/lldb-mi/MIUtilVariant.cpp31
-rw-r--r--lldb/tools/lldb-mi/MIUtilVariant.h16
-rw-r--r--lldb/tools/lldb-server/lldb-gdbserver.cpp6
-rw-r--r--lldb/tools/lldb-server/lldb-platform.cpp6
-rw-r--r--lldb/tools/lldb-server/lldb-server.cpp2
-rw-r--r--lldb/tools/lldb-test/SystemInitializerTest.cpp2
-rw-r--r--lldb/tools/lldb-test/SystemInitializerTest.h2
-rw-r--r--lldb/tools/lldb-vscode/JSONUtils.cpp18
-rw-r--r--lldb/tools/lldb-vscode/JSONUtils.h42
-rw-r--r--lldb/tools/lldb-vscode/LLDBUtils.h18
-rw-r--r--lldb/tools/lldb-vscode/VSCode.cpp8
-rw-r--r--lldb/tools/lldb-vscode/VSCode.h4
-rw-r--r--lldb/tools/lldb-vscode/lldb-vscode.cpp54
134 files changed, 0 insertions, 1756 deletions
diff --git a/lldb/tools/darwin-debug/darwin-debug.cpp b/lldb/tools/darwin-debug/darwin-debug.cpp
index 3c9d025796f..ef90e79949b 100644
--- a/lldb/tools/darwin-debug/darwin-debug.cpp
+++ b/lldb/tools/darwin-debug/darwin-debug.cpp
@@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
-//----------------------------------------------------------------------
// Darwin launch helper
//
// This program was written to allow programs to be launched in a new
@@ -20,7 +19,6 @@
//
// Since it uses darwin specific flags this code should not be compiled
// on other systems.
-//----------------------------------------------------------------------
#if defined(__APPLE__)
#include <crt_externs.h>
diff --git a/lldb/tools/debugserver/source/DNB.cpp b/lldb/tools/debugserver/source/DNB.cpp
index 6b57d488b2f..cb02ee06807 100644
--- a/lldb/tools/debugserver/source/DNB.cpp
+++ b/lldb/tools/debugserver/source/DNB.cpp
@@ -62,12 +62,10 @@ static size_t
GetAllInfosMatchingName(const char *process_name,
std::vector<struct kinfo_proc> &matching_proc_infos);
-//----------------------------------------------------------------------
// A Thread safe singleton to get a process map pointer.
//
// Returns a pointer to the existing process map, or a pointer to a
// newly created process map if CAN_CREATE is non-zero.
-//----------------------------------------------------------------------
static ProcessMap *GetProcessMap(bool can_create) {
static ProcessMap *g_process_map_ptr = NULL;
@@ -80,13 +78,11 @@ static ProcessMap *GetProcessMap(bool can_create) {
return g_process_map_ptr;
}
-//----------------------------------------------------------------------
// Add PID to the shared process pointer map.
//
// Return non-zero value if we succeed in adding the process to the map.
// The only time this should fail is if we run out of memory and can't
// allocate a ProcessMap.
-//----------------------------------------------------------------------
static nub_bool_t AddProcessToMap(nub_process_t pid, MachProcessSP &procSP) {
ProcessMap *process_map = GetProcessMap(true);
if (process_map) {
@@ -96,11 +92,9 @@ static nub_bool_t AddProcessToMap(nub_process_t pid, MachProcessSP &procSP) {
return false;
}
-//----------------------------------------------------------------------
// Remove the shared pointer for PID from the process map.
//
// Returns the number of items removed from the process map.
-//----------------------------------------------------------------------
// static size_t
// RemoveProcessFromMap (nub_process_t pid)
//{
@@ -112,12 +106,10 @@ static nub_bool_t AddProcessToMap(nub_process_t pid, MachProcessSP &procSP) {
// return 0;
//}
-//----------------------------------------------------------------------
// Get the shared pointer for PID from the existing process map.
//
// Returns true if we successfully find a shared pointer to a
// MachProcess object.
-//----------------------------------------------------------------------
static nub_bool_t GetProcessSP(nub_process_t pid, MachProcessSP &procSP) {
ProcessMap *process_map = GetProcessMap(false);
if (process_map != NULL) {
@@ -811,9 +803,7 @@ nub_bool_t DNBProcessIsAlive(nub_process_t pid) {
return eStateInvalid;
}
-//----------------------------------------------------------------------
// Process and Thread state information
-//----------------------------------------------------------------------
nub_state_t DNBProcessGetState(nub_process_t pid) {
MachProcessSP procSP;
if (GetProcessSP(pid, procSP)) {
@@ -822,9 +812,7 @@ nub_state_t DNBProcessGetState(nub_process_t pid) {
return eStateInvalid;
}
-//----------------------------------------------------------------------
// Process and Thread state information
-//----------------------------------------------------------------------
nub_bool_t DNBProcessGetExitStatus(nub_process_t pid, int *status) {
MachProcessSP procSP;
if (GetProcessSP(pid, procSP)) {
@@ -1031,9 +1019,7 @@ const char *DNBProcessGetArgumentAtIndex(nub_process_t pid, nub_size_t idx) {
return NULL;
}
-//----------------------------------------------------------------------
// Execution control
-//----------------------------------------------------------------------
nub_bool_t DNBProcessResume(nub_process_t pid,
const DNBThreadResumeAction *actions,
size_t num_actions) {
@@ -1128,9 +1114,7 @@ nub_bool_t DNBBreakpointClear(nub_process_t pid, nub_addr_t addr) {
return false; // Failed
}
-//----------------------------------------------------------------------
// Watchpoints
-//----------------------------------------------------------------------
nub_bool_t DNBWatchpointSet(nub_process_t pid, nub_addr_t addr, nub_size_t size,
uint32_t watch_flags, nub_bool_t hardware) {
MachProcessSP procSP;
@@ -1146,9 +1130,7 @@ nub_bool_t DNBWatchpointClear(nub_process_t pid, nub_addr_t addr) {
return false; // Failed
}
-//----------------------------------------------------------------------
// Return the number of supported hardware watchpoints.
-//----------------------------------------------------------------------
uint32_t DNBWatchpointGetNumSupportedHWP(nub_process_t pid) {
MachProcessSP procSP;
if (GetProcessSP(pid, procSP))
@@ -1156,13 +1138,11 @@ uint32_t DNBWatchpointGetNumSupportedHWP(nub_process_t pid) {
return 0;
}
-//----------------------------------------------------------------------
// Read memory in the address space of process PID. This call will take
// care of setting and restoring permissions and breaking up the memory
// read into multiple chunks as required.
//
// RETURNS: number of bytes actually read
-//----------------------------------------------------------------------
nub_size_t DNBProcessMemoryRead(nub_process_t pid, nub_addr_t addr,
nub_size_t size, void *buf) {
MachProcessSP procSP;
@@ -1246,13 +1226,11 @@ std::string DNBProcessMemoryReadCStringFixed(nub_process_t pid, nub_addr_t addr,
return cstr;
}
-//----------------------------------------------------------------------
// Write memory to the address space of process PID. This call will take
// care of setting and restoring permissions and breaking up the memory
// write into multiple chunks as required.
//
// RETURNS: number of bytes actually written
-//----------------------------------------------------------------------
nub_size_t DNBProcessMemoryWrite(nub_process_t pid, nub_addr_t addr,
nub_size_t size, const void *buf) {
MachProcessSP procSP;
@@ -1276,7 +1254,6 @@ nub_bool_t DNBProcessMemoryDeallocate(nub_process_t pid, nub_addr_t addr) {
return 0;
}
-//----------------------------------------------------------------------
// Find attributes of the memory region that contains ADDR for process PID,
// if possible, and return a string describing those attributes.
//
@@ -1289,7 +1266,6 @@ nub_bool_t DNBProcessMemoryDeallocate(nub_process_t pid, nub_addr_t addr) {
// Returns -1 if this platform cannot look up information about memory regions
// or if we do not yet have a valid launched process.
//
-//----------------------------------------------------------------------
int DNBProcessMemoryRegionInfo(nub_process_t pid, nub_addr_t addr,
DNBRegionInfo *region_info) {
MachProcessSP procSP;
@@ -1321,9 +1297,7 @@ nub_bool_t DNBProcessSetEnableAsyncProfiling(nub_process_t pid,
return false;
}
-//----------------------------------------------------------------------
// Get the number of threads for the specified process.
-//----------------------------------------------------------------------
nub_size_t DNBProcessGetNumThreads(nub_process_t pid) {
MachProcessSP procSP;
if (GetProcessSP(pid, procSP))
@@ -1331,9 +1305,7 @@ nub_size_t DNBProcessGetNumThreads(nub_process_t pid) {
return 0;
}
-//----------------------------------------------------------------------
// Get the thread ID of the current thread.
-//----------------------------------------------------------------------
nub_thread_t DNBProcessGetCurrentThread(nub_process_t pid) {
MachProcessSP procSP;
if (GetProcessSP(pid, procSP))
@@ -1341,9 +1313,7 @@ nub_thread_t DNBProcessGetCurrentThread(nub_process_t pid) {
return 0;
}
-//----------------------------------------------------------------------
// Get the mach port number of the current thread.
-//----------------------------------------------------------------------
nub_thread_t DNBProcessGetCurrentThreadMachPort(nub_process_t pid) {
MachProcessSP procSP;
if (GetProcessSP(pid, procSP))
@@ -1351,9 +1321,7 @@ nub_thread_t DNBProcessGetCurrentThreadMachPort(nub_process_t pid) {
return 0;
}
-//----------------------------------------------------------------------
// Change the current thread.
-//----------------------------------------------------------------------
nub_thread_t DNBProcessSetCurrentThread(nub_process_t pid, nub_thread_t tid) {
MachProcessSP procSP;
if (GetProcessSP(pid, procSP))
@@ -1361,10 +1329,8 @@ nub_thread_t DNBProcessSetCurrentThread(nub_process_t pid, nub_thread_t tid) {
return INVALID_NUB_THREAD;
}
-//----------------------------------------------------------------------
// Dump a string describing a thread's stop reason to the specified file
// handle
-//----------------------------------------------------------------------
nub_bool_t DNBThreadGetStopReason(nub_process_t pid, nub_thread_t tid,
struct DNBThreadStopInfo *stop_info) {
MachProcessSP procSP;
@@ -1373,13 +1339,11 @@ nub_bool_t DNBThreadGetStopReason(nub_process_t pid, nub_thread_t tid,
return false;
}
-//----------------------------------------------------------------------
// Return string description for the specified thread.
//
// RETURNS: NULL if the thread isn't valid, else a NULL terminated C
// string from a static buffer that must be copied prior to subsequent
// calls.
-//----------------------------------------------------------------------
const char *DNBThreadGetInfo(nub_process_t pid, nub_thread_t tid) {
MachProcessSP procSP;
if (GetProcessSP(pid, procSP))
@@ -1387,9 +1351,7 @@ const char *DNBThreadGetInfo(nub_process_t pid, nub_thread_t tid) {
return NULL;
}
-//----------------------------------------------------------------------
// Get the thread ID given a thread index.
-//----------------------------------------------------------------------
nub_thread_t DNBProcessGetThreadAtIndex(nub_process_t pid, size_t thread_idx) {
MachProcessSP procSP;
if (GetProcessSP(pid, procSP))
@@ -1397,10 +1359,8 @@ nub_thread_t DNBProcessGetThreadAtIndex(nub_process_t pid, size_t thread_idx) {
return INVALID_NUB_THREAD;
}
-//----------------------------------------------------------------------
// Do whatever is needed to sync the thread's register state with it's kernel
// values.
-//----------------------------------------------------------------------
nub_bool_t DNBProcessSyncThreadState(nub_process_t pid, nub_thread_t tid) {
MachProcessSP procSP;
if (GetProcessSP(pid, procSP))
@@ -1440,11 +1400,9 @@ const char *DNBGetDeploymentInfo(nub_process_t pid,
}
-//----------------------------------------------------------------------
// Get the current shared library information for a process. Only return
// the shared libraries that have changed since the last shared library
// state changed event if only_changed is non-zero.
-//----------------------------------------------------------------------
nub_size_t
DNBProcessGetSharedLibraryInfo(nub_process_t pid, nub_bool_t only_changed,
struct DNBExecutableImageInfo **image_infos) {
@@ -1461,16 +1419,12 @@ DNBProcessGetSharedLibraryInfo(nub_process_t pid, nub_bool_t only_changed,
uint32_t DNBGetRegisterCPUType() {
return DNBArchProtocol::GetRegisterCPUType();
}
-//----------------------------------------------------------------------
// Get the register set information for a specific thread.
-//----------------------------------------------------------------------
const DNBRegisterSetInfo *DNBGetRegisterSetInfo(nub_size_t *num_reg_sets) {
return DNBArchProtocol::GetRegisterSetInfo(num_reg_sets);
}
-//----------------------------------------------------------------------
// Read a register value by register set and register index.
-//----------------------------------------------------------------------
nub_bool_t DNBThreadGetRegisterValueByID(nub_process_t pid, nub_thread_t tid,
uint32_t set, uint32_t reg,
DNBRegisterValue *value) {
@@ -1533,9 +1487,7 @@ nub_bool_t DNBThreadRestoreRegisterState(nub_process_t pid, nub_thread_t tid,
return false;
}
-//----------------------------------------------------------------------
// Read a register value by name.
-//----------------------------------------------------------------------
nub_bool_t DNBThreadGetRegisterValueByName(nub_process_t pid, nub_thread_t tid,
uint32_t reg_set,
const char *reg_name,
@@ -1567,9 +1519,7 @@ nub_bool_t DNBThreadGetRegisterValueByName(nub_process_t pid, nub_thread_t tid,
return false;
}
-//----------------------------------------------------------------------
// Read a register set and register number from the register name.
-//----------------------------------------------------------------------
nub_bool_t DNBGetRegisterInfoByName(const char *reg_name,
DNBRegisterInfo *info) {
const struct DNBRegisterSetInfo *set_info;
@@ -1604,10 +1554,8 @@ nub_bool_t DNBGetRegisterInfoByName(const char *reg_name,
return false;
}
-//----------------------------------------------------------------------
// Set the name to address callback function that this nub can use
// for any name to address lookups that are needed.
-//----------------------------------------------------------------------
nub_bool_t DNBProcessSetNameToAddressCallback(nub_process_t pid,
DNBCallbackNameToAddress callback,
void *baton) {
@@ -1619,10 +1567,8 @@ nub_bool_t DNBProcessSetNameToAddressCallback(nub_process_t pid,
return false;
}
-//----------------------------------------------------------------------
// Set the name to address callback function that this nub can use
// for any name to address lookups that are needed.
-//----------------------------------------------------------------------
nub_bool_t DNBProcessSetSharedLibraryInfoCallback(
nub_process_t pid, DNBCallbackCopyExecutableImageInfos callback,
void *baton) {
diff --git a/lldb/tools/debugserver/source/DNB.h b/lldb/tools/debugserver/source/DNB.h
index d32040b4111..074d0aa53f4 100644
--- a/lldb/tools/debugserver/source/DNB.h
+++ b/lldb/tools/debugserver/source/DNB.h
@@ -34,9 +34,7 @@ void DNBTerminate();
nub_bool_t DNBSetArchitecture(const char *arch);
-//----------------------------------------------------------------------
// Process control
-//----------------------------------------------------------------------
nub_process_t DNBProcessLaunch(
const char *path, char const *argv[], const char *envp[],
const char *working_directory, // NULL => don't change, non-NULL => set
@@ -102,9 +100,7 @@ DNBProcessSetEnableAsyncProfiling(nub_process_t pid, nub_bool_t enable,
DNBProfileDataScanType scan_type) DNB_EXPORT;
DarwinLogEventVector DNBProcessGetAvailableDarwinLogEvents(nub_process_t pid);
-//----------------------------------------------------------------------
// Process status
-//----------------------------------------------------------------------
nub_bool_t DNBProcessIsAlive(nub_process_t pid) DNB_EXPORT;
nub_state_t DNBProcessGetState(nub_process_t pid) DNB_EXPORT;
nub_bool_t DNBProcessGetExitStatus(nub_process_t pid, int *status) DNB_EXPORT;
@@ -149,24 +145,18 @@ nub_size_t DNBProcessGetAvailableProfileData(nub_process_t pid, char *buf,
nub_size_t DNBProcessGetStopCount(nub_process_t pid) DNB_EXPORT;
uint32_t DNBProcessGetCPUType(nub_process_t pid) DNB_EXPORT;
-//----------------------------------------------------------------------
// Process executable and arguments
-//----------------------------------------------------------------------
const char *DNBProcessGetExecutablePath(nub_process_t pid);
const char *DNBProcessGetArgumentAtIndex(nub_process_t pid, nub_size_t idx);
nub_size_t DNBProcessGetArgumentCount(nub_process_t pid);
-//----------------------------------------------------------------------
// Process events
-//----------------------------------------------------------------------
nub_event_t DNBProcessWaitForEvents(nub_process_t pid, nub_event_t event_mask,
bool wait_for_set,
struct timespec *timeout);
void DNBProcessResetEvents(nub_process_t pid, nub_event_t event_mask);
-//----------------------------------------------------------------------
// Thread functions
-//----------------------------------------------------------------------
const char *DNBThreadGetName(nub_process_t pid, nub_thread_t tid);
nub_bool_t
DNBThreadGetIdentifierInfo(nub_process_t pid, nub_thread_t tid,
@@ -215,16 +205,12 @@ DNBGetLibrariesInfoForAddresses(nub_process_t pid,
JSONGenerator::ObjectSP DNBGetSharedCacheInfo(nub_process_t pid);
//
-//----------------------------------------------------------------------
// Breakpoint functions
-//----------------------------------------------------------------------
nub_bool_t DNBBreakpointSet(nub_process_t pid, nub_addr_t addr, nub_size_t size,
nub_bool_t hardware);
nub_bool_t DNBBreakpointClear(nub_process_t pid, nub_addr_t addr);
-//----------------------------------------------------------------------
// Watchpoint functions
-//----------------------------------------------------------------------
nub_bool_t DNBWatchpointSet(nub_process_t pid, nub_addr_t addr, nub_size_t size,
uint32_t watch_flags, nub_bool_t hardware);
nub_bool_t DNBWatchpointClear(nub_process_t pid, nub_addr_t addr);
@@ -235,9 +221,7 @@ const DNBRegisterSetInfo *DNBGetRegisterSetInfo(nub_size_t *num_reg_sets);
nub_bool_t DNBGetRegisterInfoByName(const char *reg_name,
DNBRegisterInfo *info);
-//----------------------------------------------------------------------
// Other static nub information calls.
-//----------------------------------------------------------------------
const char *DNBStateAsString(nub_state_t state);
nub_bool_t DNBResolveExecutablePath(const char *path, char *resolved_path,
size_t resolved_path_size);
diff --git a/lldb/tools/debugserver/source/DNBDataRef.cpp b/lldb/tools/debugserver/source/DNBDataRef.cpp
index 073591c8afe..f19c913f65d 100644
--- a/lldb/tools/debugserver/source/DNBDataRef.cpp
+++ b/lldb/tools/debugserver/source/DNBDataRef.cpp
@@ -16,33 +16,25 @@
#include <ctype.h>
#include <libkern/OSByteOrder.h>
-//----------------------------------------------------------------------
// Constructor
-//----------------------------------------------------------------------
DNBDataRef::DNBDataRef()
: m_start(NULL), m_end(NULL), m_swap(false), m_ptrSize(0),
m_addrPCRelative(INVALID_NUB_ADDRESS), m_addrTEXT(INVALID_NUB_ADDRESS),
m_addrDATA(INVALID_NUB_ADDRESS) {}
-//----------------------------------------------------------------------
// Constructor
-//----------------------------------------------------------------------
DNBDataRef::DNBDataRef(const uint8_t *start, size_t size, bool swap)
: m_start(start), m_end(start + size), m_swap(swap), m_ptrSize(0),
m_addrPCRelative(INVALID_NUB_ADDRESS), m_addrTEXT(INVALID_NUB_ADDRESS),
m_addrDATA(INVALID_NUB_ADDRESS) {}
-//----------------------------------------------------------------------
// Destructor
-//----------------------------------------------------------------------
DNBDataRef::~DNBDataRef() {}
-//----------------------------------------------------------------------
// Get8
-//----------------------------------------------------------------------
uint8_t DNBDataRef::Get8(offset_t *offset_ptr) const {
uint8_t val = 0;
if (ValidOffsetForDataOfSize(*offset_ptr, sizeof(val))) {
@@ -52,9 +44,7 @@ uint8_t DNBDataRef::Get8(offset_t *offset_ptr) const {
return val;
}
-//----------------------------------------------------------------------
// Get16
-//----------------------------------------------------------------------
uint16_t DNBDataRef::Get16(offset_t *offset_ptr) const {
uint16_t val = 0;
if (ValidOffsetForDataOfSize(*offset_ptr, sizeof(val))) {
@@ -70,9 +60,7 @@ uint16_t DNBDataRef::Get16(offset_t *offset_ptr) const {
return val;
}
-//----------------------------------------------------------------------
// Get32
-//----------------------------------------------------------------------
uint32_t DNBDataRef::Get32(offset_t *offset_ptr) const {
uint32_t val = 0;
if (ValidOffsetForDataOfSize(*offset_ptr, sizeof(val))) {
@@ -87,9 +75,7 @@ uint32_t DNBDataRef::Get32(offset_t *offset_ptr) const {
return val;
}
-//----------------------------------------------------------------------
// Get64
-//----------------------------------------------------------------------
uint64_t DNBDataRef::Get64(offset_t *offset_ptr) const {
uint64_t val = 0;
if (ValidOffsetForDataOfSize(*offset_ptr, sizeof(val))) {
@@ -104,12 +90,10 @@ uint64_t DNBDataRef::Get64(offset_t *offset_ptr) const {
return val;
}
-//----------------------------------------------------------------------
// GetMax32
//
// Used for calls when the size can vary. Fill in extra cases if they
// are ever needed.
-//----------------------------------------------------------------------
uint32_t DNBDataRef::GetMax32(offset_t *offset_ptr, uint32_t byte_size) const {
switch (byte_size) {
case 1:
@@ -128,12 +112,10 @@ uint32_t DNBDataRef::GetMax32(offset_t *offset_ptr, uint32_t byte_size) const {
return 0;
}
-//----------------------------------------------------------------------
// GetMax64
//
// Used for calls when the size can vary. Fill in extra cases if they
// are ever needed.
-//----------------------------------------------------------------------
uint64_t DNBDataRef::GetMax64(offset_t *offset_ptr, uint32_t size) const {
switch (size) {
case 1:
@@ -155,20 +137,16 @@ uint64_t DNBDataRef::GetMax64(offset_t *offset_ptr, uint32_t size) const {
return 0;
}
-//----------------------------------------------------------------------
// GetPointer
//
// Extract a pointer value from the buffer. The pointer size must be
// set prior to using this using one of the SetPointerSize functions.
-//----------------------------------------------------------------------
uint64_t DNBDataRef::GetPointer(offset_t *offset_ptr) const {
// Must set pointer size prior to using this call
assert(m_ptrSize != 0);
return GetMax64(offset_ptr, m_ptrSize);
}
-//----------------------------------------------------------------------
// GetCStr
-//----------------------------------------------------------------------
const char *DNBDataRef::GetCStr(offset_t *offset_ptr,
uint32_t fixed_length) const {
const char *s = NULL;
@@ -184,9 +162,7 @@ const char *DNBDataRef::GetCStr(offset_t *offset_ptr,
return s;
}
-//----------------------------------------------------------------------
// GetData
-//----------------------------------------------------------------------
const uint8_t *DNBDataRef::GetData(offset_t *offset_ptr,
uint32_t length) const {
const uint8_t *data = NULL;
@@ -197,9 +173,7 @@ const uint8_t *DNBDataRef::GetData(offset_t *offset_ptr,
return data;
}
-//----------------------------------------------------------------------
// Get_ULEB128
-//----------------------------------------------------------------------
uint64_t DNBDataRef::Get_ULEB128(offset_t *offset_ptr) const {
uint64_t result = 0;
if (m_start < m_end) {
@@ -222,9 +196,7 @@ uint64_t DNBDataRef::Get_ULEB128(offset_t *offset_ptr) const {
return result;
}
-//----------------------------------------------------------------------
// Get_SLEB128
-//----------------------------------------------------------------------
int64_t DNBDataRef::Get_SLEB128(offset_t *offset_ptr) const {
int64_t result = 0;
@@ -254,11 +226,9 @@ int64_t DNBDataRef::Get_SLEB128(offset_t *offset_ptr) const {
return result;
}
-//----------------------------------------------------------------------
// Skip_LEB128
//
// Skips past ULEB128 and SLEB128 numbers (just updates the offset)
-//----------------------------------------------------------------------
void DNBDataRef::Skip_LEB128(offset_t *offset_ptr) const {
if (m_start < m_end) {
const uint8_t *start = m_start + *offset_ptr;
diff --git a/lldb/tools/debugserver/source/DNBDefs.h b/lldb/tools/debugserver/source/DNBDefs.h
index 278caadd79d..3ff60d313aa 100644
--- a/lldb/tools/debugserver/source/DNBDefs.h
+++ b/lldb/tools/debugserver/source/DNBDefs.h
@@ -19,33 +19,25 @@
#include <sys/syslimits.h>
#include <unistd.h>
-//----------------------------------------------------------------------
// Define nub_addr_t and the invalid address value from the architecture
-//----------------------------------------------------------------------
#if defined(__x86_64__) || defined(__ppc64__) || defined(__arm64__) || \
defined(__aarch64__)
-//----------------------------------------------------------------------
// 64 bit address architectures
-//----------------------------------------------------------------------
typedef uint64_t nub_addr_t;
#define INVALID_NUB_ADDRESS ((nub_addr_t)~0ull)
#elif defined(__i386__) || defined(__powerpc__) || defined(__ppc__) || \
defined(__arm__)
-//----------------------------------------------------------------------
// 32 bit address architectures
-//----------------------------------------------------------------------
typedef uint32_t nub_addr_t;
#define INVALID_NUB_ADDRESS ((nub_addr_t)~0ul)
#else
-//----------------------------------------------------------------------
// Default to 64 bit address for unrecognized architectures.
-//----------------------------------------------------------------------
#warning undefined architecture, defaulting to 8 byte addresses
typedef uint64_t nub_addr_t;
@@ -253,11 +245,9 @@ enum DNBMemoryPermissions {
#define DNB_THREAD_STOP_INFO_MAX_DESC_LENGTH 256
#define DNB_THREAD_STOP_INFO_MAX_EXC_DATA 8
-//----------------------------------------------------------------------
// DNBThreadStopInfo
//
// Describes the reason a thread stopped.
-//----------------------------------------------------------------------
struct DNBThreadStopInfo {
DNBThreadStopType reason;
char description[DNB_THREAD_STOP_INFO_MAX_DESC_LENGTH];
diff --git a/lldb/tools/debugserver/source/DNBLog.cpp b/lldb/tools/debugserver/source/DNBLog.cpp
index 3d60b59cc99..11b2d0a04b7 100644
--- a/lldb/tools/debugserver/source/DNBLog.cpp
+++ b/lldb/tools/debugserver/source/DNBLog.cpp
@@ -78,10 +78,8 @@ void _DNBLog(uint32_t flags, const char *format, ...) {
va_end(args);
}
-//----------------------------------------------------------------------
// Print debug strings if and only if the global g_debug is set to
// a non-zero value.
-//----------------------------------------------------------------------
void _DNBLogDebug(const char *format, ...) {
if (DNBLogEnabled() && g_debug) {
va_list args;
@@ -91,10 +89,8 @@ void _DNBLogDebug(const char *format, ...) {
}
}
-//----------------------------------------------------------------------
// Print debug strings if and only if the global g_debug is set to
// a non-zero value.
-//----------------------------------------------------------------------
void _DNBLogDebugVerbose(const char *format, ...) {
if (DNBLogEnabled() && g_debug && g_verbose) {
va_list args;
@@ -106,10 +102,8 @@ void _DNBLogDebugVerbose(const char *format, ...) {
static uint32_t g_message_id = 0;
-//----------------------------------------------------------------------
// Prefix the formatted log string with process and thread IDs and
// suffix it with a newline.
-//----------------------------------------------------------------------
void _DNBLogThreaded(const char *format, ...) {
if (DNBLogEnabled()) {
// PTHREAD_MUTEX_LOCKER(locker, GetLogThreadedMutex());
@@ -150,10 +144,8 @@ void _DNBLogThreaded(const char *format, ...) {
}
}
-//----------------------------------------------------------------------
// Prefix the formatted log string with process and thread IDs and
// suffix it with a newline.
-//----------------------------------------------------------------------
void _DNBLogThreadedIf(uint32_t log_bit, const char *format, ...) {
if (DNBLogEnabled() && (log_bit & g_log_bits) == log_bit) {
// PTHREAD_MUTEX_LOCKER(locker, GetLogThreadedMutex());
@@ -195,9 +187,7 @@ void _DNBLogThreadedIf(uint32_t log_bit, const char *format, ...) {
}
}
-//----------------------------------------------------------------------
// Printing of errors that are not fatal.
-//----------------------------------------------------------------------
void _DNBLogError(const char *format, ...) {
if (DNBLogEnabled()) {
char *arg_msg = NULL;
@@ -213,10 +203,8 @@ void _DNBLogError(const char *format, ...) {
}
}
-//----------------------------------------------------------------------
// Printing of errors that ARE fatal. Exit with ERR exit code
// immediately.
-//----------------------------------------------------------------------
void _DNBLogFatalError(int err, const char *format, ...) {
if (DNBLogEnabled()) {
char *arg_msg = NULL;
@@ -233,10 +221,8 @@ void _DNBLogFatalError(int err, const char *format, ...) {
}
}
-//----------------------------------------------------------------------
// Printing of warnings that are not fatal only if verbose mode is
// enabled.
-//----------------------------------------------------------------------
void _DNBLogVerbose(const char *format, ...) {
if (DNBLogEnabled() && g_verbose) {
va_list args;
@@ -246,10 +232,8 @@ void _DNBLogVerbose(const char *format, ...) {
}
}
-//----------------------------------------------------------------------
// Printing of warnings that are not fatal only if verbose mode is
// enabled.
-//----------------------------------------------------------------------
void _DNBLogWarningVerbose(const char *format, ...) {
if (DNBLogEnabled() && g_verbose) {
char *arg_msg = NULL;
@@ -265,9 +249,7 @@ void _DNBLogWarningVerbose(const char *format, ...) {
}
}
}
-//----------------------------------------------------------------------
// Printing of warnings that are not fatal.
-//----------------------------------------------------------------------
void _DNBLogWarning(const char *format, ...) {
if (DNBLogEnabled()) {
char *arg_msg = NULL;
diff --git a/lldb/tools/debugserver/source/DNBTimer.h b/lldb/tools/debugserver/source/DNBTimer.h
index 9792c9b79ab..21ee2351d69 100644
--- a/lldb/tools/debugserver/source/DNBTimer.h
+++ b/lldb/tools/debugserver/source/DNBTimer.h
@@ -21,9 +21,7 @@
class DNBTimer {
public:
- //------------------------------------------------------------------
// Constructors and Destructors
- //------------------------------------------------------------------
DNBTimer(bool threadSafe) : m_mutexAP() {
if (threadSafe)
m_mutexAP.reset(new PThreadMutex(PTHREAD_MUTEX_RECURSIVE));
@@ -50,16 +48,12 @@ public:
~DNBTimer() {}
bool IsThreadSafe() const { return m_mutexAP.get() != NULL; }
- //------------------------------------------------------------------
// Reset the time value to now
- //------------------------------------------------------------------
void Reset() {
PTHREAD_MUTEX_LOCKER(locker, m_mutexAP.get());
gettimeofday(&m_timeval, NULL);
}
- //------------------------------------------------------------------
// Get the total mircoseconds since Jan 1, 1970
- //------------------------------------------------------------------
uint64_t TotalMicroSeconds() const {
PTHREAD_MUTEX_LOCKER(locker, m_mutexAP.get());
return (uint64_t)(m_timeval.tv_sec) * 1000000ull +
@@ -71,10 +65,8 @@ public:
sec = m_timeval.tv_sec;
usec = m_timeval.tv_usec;
}
- //------------------------------------------------------------------
// Return the number of microseconds elapsed between now and the
// m_timeval
- //------------------------------------------------------------------
uint64_t ElapsedMicroSeconds(bool update) {
PTHREAD_MUTEX_LOCKER(locker, m_mutexAP.get());
struct timeval now;
@@ -134,9 +126,7 @@ public:
}
protected:
- //------------------------------------------------------------------
// Classes that inherit from DNBTimer can see and modify these
- //------------------------------------------------------------------
std::unique_ptr<PThreadMutex> m_mutexAP;
struct timeval m_timeval;
};
diff --git a/lldb/tools/debugserver/source/JSON.h b/lldb/tools/debugserver/source/JSON.h
index e7ffcfb5712..b1c4a4c9db8 100644
--- a/lldb/tools/debugserver/source/JSON.h
+++ b/lldb/tools/debugserver/source/JSON.h
@@ -203,7 +203,6 @@ public:
JSONValue::SP GetObject(const std::string &key) const;
- // -------------------------------------------------------------------------
/// Return keyed value as bool
///
/// \param[in] key
@@ -217,7 +216,6 @@ public:
/// true if the key existed as was a bool value; false otherwise.
/// Note the return value is *not* the value of the bool, use
/// \b value for that.
- // -------------------------------------------------------------------------
bool GetObjectAsBool(const std::string &key, bool &value) const;
bool GetObjectAsString(const std::string &key, std::string &value) const;
diff --git a/lldb/tools/debugserver/source/JSONGenerator.h b/lldb/tools/debugserver/source/JSONGenerator.h
index efd8a6c3d35..70708f9a5ac 100644
--- a/lldb/tools/debugserver/source/JSONGenerator.h
+++ b/lldb/tools/debugserver/source/JSONGenerator.h
@@ -16,7 +16,6 @@
#include <utility>
#include <vector>
-//----------------------------------------------------------------------
/// \class JSONGenerator JSONGenerator.h
/// A class which can construct structured data for the sole purpose
/// of printing it in JSON format.
@@ -24,7 +23,6 @@
/// A stripped down version of lldb's StructuredData objects which are much
/// general purpose. This variant is intended only for assembling information
/// and printing it as a JSON string.
-//----------------------------------------------------------------------
class JSONGenerator {
public:
diff --git a/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp b/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp
index 6825fb374da..6971c1f4c32 100644
--- a/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/CFBundle.cpp
@@ -13,38 +13,28 @@
#include "CFBundle.h"
#include "CFString.h"
-//----------------------------------------------------------------------
// CFBundle constructor
-//----------------------------------------------------------------------
CFBundle::CFBundle(const char *path)
: CFReleaser<CFBundleRef>(), m_bundle_url() {
if (path && path[0])
SetPath(path);
}
-//----------------------------------------------------------------------
// CFBundle copy constructor
-//----------------------------------------------------------------------
CFBundle::CFBundle(const CFBundle &rhs)
: CFReleaser<CFBundleRef>(rhs), m_bundle_url(rhs.m_bundle_url) {}
-//----------------------------------------------------------------------
// CFBundle copy constructor
-//----------------------------------------------------------------------
CFBundle &CFBundle::operator=(const CFBundle &rhs) {
if (this != &rhs)
*this = rhs;
return *this;
}
-//----------------------------------------------------------------------
// Destructor
-//----------------------------------------------------------------------
CFBundle::~CFBundle() {}
-//----------------------------------------------------------------------
// Set the path for a bundle by supplying a
-//----------------------------------------------------------------------
bool CFBundle::SetPath(const char *path) {
CFAllocatorRef alloc = kCFAllocatorDefault;
// Release our old bundle and ULR
diff --git a/lldb/tools/debugserver/source/MacOSX/CFBundle.h b/lldb/tools/debugserver/source/MacOSX/CFBundle.h
index c56edee7a03..f49dc30f1f8 100644
--- a/lldb/tools/debugserver/source/MacOSX/CFBundle.h
+++ b/lldb/tools/debugserver/source/MacOSX/CFBundle.h
@@ -17,9 +17,7 @@
class CFBundle : public CFReleaser<CFBundleRef> {
public:
- //------------------------------------------------------------------
// Constructors and Destructors
- //------------------------------------------------------------------
CFBundle(const char *path = NULL);
CFBundle(const CFBundle &rhs);
CFBundle &operator=(const CFBundle &rhs);
diff --git a/lldb/tools/debugserver/source/MacOSX/CFString.cpp b/lldb/tools/debugserver/source/MacOSX/CFString.cpp
index 3061c429b9a..637ba65ae4d 100644
--- a/lldb/tools/debugserver/source/MacOSX/CFString.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/CFString.cpp
@@ -14,19 +14,13 @@
#include <glob.h>
#include <string>
-//----------------------------------------------------------------------
// CFString constructor
-//----------------------------------------------------------------------
CFString::CFString(CFStringRef s) : CFReleaser<CFStringRef>(s) {}
-//----------------------------------------------------------------------
// CFString copy constructor
-//----------------------------------------------------------------------
CFString::CFString(const CFString &rhs) : CFReleaser<CFStringRef>(rhs) {}
-//----------------------------------------------------------------------
// CFString copy constructor
-//----------------------------------------------------------------------
CFString &CFString::operator=(const CFString &rhs) {
if (this != &rhs)
*this = rhs;
@@ -41,9 +35,7 @@ CFString::CFString(const char *cstr, CFStringEncoding cstr_encoding)
}
}
-//----------------------------------------------------------------------
// Destructor
-//----------------------------------------------------------------------
CFString::~CFString() {}
const char *CFString::GetFileSystemRepresentation(std::string &s) {
diff --git a/lldb/tools/debugserver/source/MacOSX/CFString.h b/lldb/tools/debugserver/source/MacOSX/CFString.h
index 47db507ce38..d1bd5682689 100644
--- a/lldb/tools/debugserver/source/MacOSX/CFString.h
+++ b/lldb/tools/debugserver/source/MacOSX/CFString.h
@@ -18,9 +18,7 @@
class CFString : public CFReleaser<CFStringRef> {
public:
- //------------------------------------------------------------------
// Constructors and Destructors
- //------------------------------------------------------------------
CFString(CFStringRef cf_str = NULL);
CFString(const char *s, CFStringEncoding encoding = kCFStringEncodingUTF8);
CFString(const CFString &rhs);
diff --git a/lldb/tools/debugserver/source/MacOSX/CFUtils.h b/lldb/tools/debugserver/source/MacOSX/CFUtils.h
index 9dae40670f3..b567524ce63 100644
--- a/lldb/tools/debugserver/source/MacOSX/CFUtils.h
+++ b/lldb/tools/debugserver/source/MacOSX/CFUtils.h
@@ -17,11 +17,9 @@
#ifdef __cplusplus
-//----------------------------------------------------------------------
// Templatized CF helper class that can own any CF pointer and will
// call CFRelease() on any valid pointer it owns unless that pointer is
// explicitly released using the release() member function.
-//----------------------------------------------------------------------
template <class T> class CFReleaser {
public:
// Type names for the avlue
diff --git a/lldb/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.h b/lldb/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.h
index 334953dcbaf..24ab4230e38 100644
--- a/lldb/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.h
+++ b/lldb/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.h
@@ -29,21 +29,17 @@ class DarwinLogCollector
: public std::enable_shared_from_this<DarwinLogCollector>,
public ActivityStore {
public:
- //------------------------------------------------------------------
/// Return whether the os_log and activity tracing SPI is available.
///
/// \return \b true if the activity stream support is available,
/// \b false otherwise.
- //------------------------------------------------------------------
static bool IsSupported();
- //------------------------------------------------------------------
/// Return a log function suitable for DNBLog to use as the internal
/// logging function.
///
/// \return a DNBLog-style logging function if IsSupported() returns
/// true; otherwise, returns nullptr.
- //------------------------------------------------------------------
static DNBCallbackLog GetLogFunction();
static bool StartCollectingForProcess(nub_process_t pid,
@@ -57,9 +53,7 @@ public:
pid_t GetProcessID() const { return m_pid; }
- //------------------------------------------------------------------
// ActivityStore API
- //------------------------------------------------------------------
const char *GetActivityForID(os_activity_id_t activity_id) const override;
std::string
diff --git a/lldb/tools/debugserver/source/MacOSX/DarwinLog/LogFilterRegex.cpp b/lldb/tools/debugserver/source/MacOSX/DarwinLog/LogFilterRegex.cpp
index 9a09e55edba..489c056fa81 100644
--- a/lldb/tools/debugserver/source/MacOSX/DarwinLog/LogFilterRegex.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/DarwinLog/LogFilterRegex.cpp
@@ -11,11 +11,9 @@
#include "DNBLog.h"
#include "LogMessage.h"
-//----------------------------------------------------------------------
// Enable enhanced mode if it is available. This allows for things like
// \d for digit, \s for space, and many more, but it isn't available
// everywhere.
-//----------------------------------------------------------------------
#if defined(REG_ENHANCED)
#define DEFAULT_COMPILE_FLAGS (REG_ENHANCED | REG_EXTENDED)
#else
diff --git a/lldb/tools/debugserver/source/MacOSX/DarwinLog/LogMessageOsLog.h b/lldb/tools/debugserver/source/MacOSX/DarwinLog/LogMessageOsLog.h
index 5f50e390aa6..39b6adccb1b 100644
--- a/lldb/tools/debugserver/source/MacOSX/DarwinLog/LogMessageOsLog.h
+++ b/lldb/tools/debugserver/source/MacOSX/DarwinLog/LogMessageOsLog.h
@@ -16,13 +16,11 @@
using ActivityStreamEntry = struct os_activity_stream_entry_s;
-// -----------------------------------------------------------------------------
/// Provides a unified wrapper around os_log()-style log messages.
///
/// The lifetime of this class is intended to be very short. The caller
/// must ensure that the passed in ActivityStore and ActivityStreamEntry
/// outlive this LogMessageOsLog entry.
-// -----------------------------------------------------------------------------
class LogMessageOsLog : public LogMessage {
public:
diff --git a/lldb/tools/debugserver/source/MacOSX/Genealogy.cpp b/lldb/tools/debugserver/source/MacOSX/Genealogy.cpp
index 803eb913832..4b664be5488 100644
--- a/lldb/tools/debugserver/source/MacOSX/Genealogy.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/Genealogy.cpp
@@ -16,9 +16,7 @@
#include "GenealogySPI.h"
#include "MachThreadList.h"
-//---------------------------
/// Constructor
-//---------------------------
Genealogy::Genealogy()
: m_os_activity_diagnostic_for_pid(nullptr),
diff --git a/lldb/tools/debugserver/source/MacOSX/MachProcess.h b/lldb/tools/debugserver/source/MacOSX/MachProcess.h
index 644364be4c9..0b8e1f4d4a5 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachProcess.h
+++ b/lldb/tools/debugserver/source/MacOSX/MachProcess.h
@@ -40,9 +40,7 @@ class DNBThreadResumeActions;
class MachProcess {
public:
- //----------------------------------------------------------------------
// Constructors and Destructors
- //----------------------------------------------------------------------
MachProcess();
~MachProcess();
@@ -79,9 +77,7 @@ public:
: filename(), load_address(INVALID_NUB_ADDRESS), mod_date(0) {}
};
- //----------------------------------------------------------------------
// Child process control
- //----------------------------------------------------------------------
pid_t AttachForDebug(pid_t pid, char *err_str, size_t err_len);
pid_t LaunchForDebug(const char *path, char const *argv[], char const *envp[],
const char *working_directory, const char *stdin_path,
@@ -160,9 +156,7 @@ public:
nub_size_t ReadMemory(nub_addr_t addr, nub_size_t size, void *buf);
nub_size_t WriteMemory(nub_addr_t addr, nub_size_t size, const void *buf);
- //----------------------------------------------------------------------
// Path and arg accessors
- //----------------------------------------------------------------------
const char *Path() const { return m_path.c_str(); }
size_t ArgumentCount() const { return m_args.size(); }
const char *ArgumentAtIndex(size_t arg_idx) const {
@@ -171,9 +165,7 @@ public:
return NULL;
}
- //----------------------------------------------------------------------
// Breakpoint functions
- //----------------------------------------------------------------------
DNBBreakpoint *CreateBreakpoint(nub_addr_t addr, nub_size_t length,
bool hardware);
bool DisableBreakpoint(nub_addr_t addr, bool remove);
@@ -182,9 +174,7 @@ public:
DNBBreakpointList &Breakpoints() { return m_breakpoints; }
const DNBBreakpointList &Breakpoints() const { return m_breakpoints; }
- //----------------------------------------------------------------------
// Watchpoint functions
- //----------------------------------------------------------------------
DNBBreakpoint *CreateWatchpoint(nub_addr_t addr, nub_size_t length,
uint32_t watch_type, bool hardware);
bool DisableWatchpoint(nub_addr_t addr, bool remove);
@@ -194,9 +184,7 @@ public:
DNBBreakpointList &Watchpoints() { return m_watchpoints; }
const DNBBreakpointList &Watchpoints() const { return m_watchpoints; }
- //----------------------------------------------------------------------
// Exception thread functions
- //----------------------------------------------------------------------
bool StartSTDIOThread();
static void *STDIOThread(void *arg);
void ExceptionMessageReceived(const MachException::Message &exceptionMessage);
@@ -205,9 +193,7 @@ public:
nub_size_t CopyImageInfos(struct DNBExecutableImageInfo **image_infos,
bool only_changed);
- //----------------------------------------------------------------------
// Profile functions
- //----------------------------------------------------------------------
void SetEnableAsyncProfiling(bool enable, uint64_t internal_usec,
DNBProfileDataScanType scan_type);
bool IsProfilingEnabled() { return m_profile_enabled; }
@@ -217,9 +203,7 @@ public:
void SignalAsyncProfileData(const char *info);
size_t GetAsyncProfileData(char *buf, size_t buf_size);
- //----------------------------------------------------------------------
// Accessors
- //----------------------------------------------------------------------
pid_t ProcessID() const { return m_pid; }
bool ProcessIDIsValid() const { return m_pid > 0; }
pid_t SetProcessID(pid_t pid);
diff --git a/lldb/tools/debugserver/source/MacOSX/MachTask.h b/lldb/tools/debugserver/source/MacOSX/MachTask.h
index ad25f0e415f..a933bffc8a0 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachTask.h
+++ b/lldb/tools/debugserver/source/MacOSX/MachTask.h
@@ -5,7 +5,6 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
-//----------------------------------------------------------------------
//
// MachTask.h
// debugserver
@@ -45,9 +44,7 @@ struct MachMallocEvent {
class MachTask {
public:
- //------------------------------------------------------------------
// Constructors and Destructors
- //------------------------------------------------------------------
MachTask(MachProcess *process);
virtual ~MachTask();
diff --git a/lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp b/lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp
index be59fb6a0cf..8d2165b0f24 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/MachThreadList.cpp
@@ -451,7 +451,6 @@ uint32_t MachThreadList::ProcessDidStop(MachProcess *process) {
return num_threads;
}
-//----------------------------------------------------------------------
// Check each thread in our thread list to see if we should notify our
// client of the current halt in execution.
//
@@ -461,7 +460,6 @@ uint32_t MachThreadList::ProcessDidStop(MachProcess *process) {
// RETURNS
// true if we should stop and notify our clients
// false if we should resume our child process and skip notification
-//----------------------------------------------------------------------
bool MachThreadList::ShouldStop(bool &step_more) {
PTHREAD_MUTEX_LOCKER(locker, m_threads_mutex);
uint32_t should_stop = false;
diff --git a/lldb/tools/debugserver/source/MacOSX/OsLogger.cpp b/lldb/tools/debugserver/source/MacOSX/OsLogger.cpp
index 5e13819de87..a83afb62b36 100644
--- a/lldb/tools/debugserver/source/MacOSX/OsLogger.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/OsLogger.cpp
@@ -19,10 +19,8 @@
#define LLDB_OS_LOG_MAX_BUFFER_LENGTH 256
namespace {
-//----------------------------------------------------------------------
// Darwin os_log logging callback that can be registered with
// DNBLogSetLogCallback
-//----------------------------------------------------------------------
void DarwinLogCallback(void *baton, uint32_t flags, const char *format,
va_list args) {
if (format == nullptr)
diff --git a/lldb/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp b/lldb/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp
index 0d2455e123d..45d05d6e0bd 100644
--- a/lldb/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp
@@ -1423,9 +1423,7 @@ nub_addr_t DNBArchMachARM::GetWatchAddress(const DBG &debug_state,
return bits(debug_state.__wvr[hw_index], 31, 0);
}
-//----------------------------------------------------------------------
// Register information definitions for 32 bit ARMV7.
-//----------------------------------------------------------------------
enum gpr_regnums {
gpr_r0 = 0,
gpr_r1,
@@ -1776,11 +1774,9 @@ const size_t DNBArchMachARM::k_num_exc_registers =
const size_t DNBArchMachARM::k_num_all_registers =
k_num_gpr_registers + k_num_vfp_registers + k_num_exc_registers;
-//----------------------------------------------------------------------
// Register set definitions. The first definitions at register set index
// of zero is for all registers, followed by other registers sets. The
// register information for the all register set need not be filled in.
-//----------------------------------------------------------------------
const DNBRegisterSetInfo DNBArchMachARM::g_reg_sets[] = {
{"ARM Registers", NULL, k_num_all_registers},
{"General Purpose Registers", g_gpr_registers, k_num_gpr_registers},
diff --git a/lldb/tools/debugserver/source/MacOSX/arm64/DNBArchImplARM64.cpp b/lldb/tools/debugserver/source/MacOSX/arm64/DNBArchImplARM64.cpp
index 8fedb984182..911cbe6b4b3 100644
--- a/lldb/tools/debugserver/source/MacOSX/arm64/DNBArchImplARM64.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/arm64/DNBArchImplARM64.cpp
@@ -947,9 +947,7 @@ nub_addr_t DNBArchMachARM64::GetWatchAddress(const DBG &debug_state,
return bits(debug_state.__wvr[hw_index], 63, 0);
}
-//----------------------------------------------------------------------
// Register information definitions for 64 bit ARMv8.
-//----------------------------------------------------------------------
enum gpr_regnums {
gpr_x0 = 0,
gpr_x1,
@@ -1689,11 +1687,9 @@ const size_t DNBArchMachARM64::k_num_exc_registers =
const size_t DNBArchMachARM64::k_num_all_registers =
k_num_gpr_registers + k_num_vfp_registers + k_num_exc_registers;
-//----------------------------------------------------------------------
// Register set definitions. The first definitions at register set index
// of zero is for all registers, followed by other registers sets. The
// register information for the all register set need not be filled in.
-//----------------------------------------------------------------------
const DNBRegisterSetInfo DNBArchMachARM64::g_reg_sets[] = {
{"ARM64 Registers", NULL, k_num_all_registers},
{"General Purpose Registers", g_gpr_registers, k_num_gpr_registers},
diff --git a/lldb/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp b/lldb/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp
index 1854a9c831e..7d2d0c2ef1b 100644
--- a/lldb/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp
@@ -1025,9 +1025,7 @@ kern_return_t DNBArchImplI386::EnableHardwareSingleStep(bool enable) {
return m_state.GetError(e_regSetGPR, Read);
}
-//----------------------------------------------------------------------
// Register information definitions
-//----------------------------------------------------------------------
#define DEFINE_GPR_PSEUDO_16(reg16, reg32) \
{ \
@@ -1540,11 +1538,9 @@ const size_t DNBArchImplI386::k_num_all_registers_avx =
const size_t DNBArchImplI386::k_num_all_registers_avx512f =
k_num_gpr_registers + k_num_fpu_registers_avx512f + k_num_exc_registers;
-//----------------------------------------------------------------------
// Register set definitions. The first definitions at register set index
// of zero is for all registers, followed by other registers sets. The
// register information for the all register set need not be filled in.
-//----------------------------------------------------------------------
const DNBRegisterSetInfo DNBArchImplI386::g_reg_sets_no_avx[] = {
{"i386 Registers", NULL, k_num_all_registers_no_avx},
{"General Purpose Registers", g_gpr_registers, k_num_gpr_registers},
diff --git a/lldb/tools/debugserver/source/MacOSX/ppc/DNBArchImpl.cpp b/lldb/tools/debugserver/source/MacOSX/ppc/DNBArchImpl.cpp
index 141b6b72c2a..c6671b5066a 100644
--- a/lldb/tools/debugserver/source/MacOSX/ppc/DNBArchImpl.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/ppc/DNBArchImpl.cpp
@@ -178,9 +178,7 @@ kern_return_t DNBArchMachPPC::EnableHardwareSingleStep(bool enable) {
return m_state.GetError(e_regSetGPR, Read);
}
-//----------------------------------------------------------------------
// Register information definitions for 32 bit PowerPC.
-//----------------------------------------------------------------------
enum gpr_regnums {
e_regNumGPR_srr0,
@@ -319,11 +317,9 @@ const size_t k_num_vec_registers =
const size_t k_num_ppc_registers = k_num_gpr_registers + k_num_fpr_registers +
k_num_exc_registers + k_num_vec_registers;
-//----------------------------------------------------------------------
// Register set definitions. The first definitions at register set index
// of zero is for all registers, followed by other registers sets. The
// register information for the all register set need not be filled in.
-//----------------------------------------------------------------------
static const DNBRegisterSetInfo g_reg_sets[] = {
{"PowerPC Registers", NULL, k_num_ppc_registers},
{"General Purpose Registers", g_gpr_registers, k_num_gpr_registers},
diff --git a/lldb/tools/debugserver/source/MacOSX/x86_64/DNBArchImplX86_64.cpp b/lldb/tools/debugserver/source/MacOSX/x86_64/DNBArchImplX86_64.cpp
index 4f32d44e69f..319215e8a7f 100644
--- a/lldb/tools/debugserver/source/MacOSX/x86_64/DNBArchImplX86_64.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/x86_64/DNBArchImplX86_64.cpp
@@ -980,9 +980,7 @@ kern_return_t DNBArchImplX86_64::EnableHardwareSingleStep(bool enable) {
return m_state.GetError(e_regSetGPR, Read);
}
-//----------------------------------------------------------------------
// Register information definitions
-//----------------------------------------------------------------------
enum {
gpr_rax = 0,
@@ -2062,11 +2060,9 @@ const size_t DNBArchImplX86_64::k_num_fpu_registers_avx512f =
const size_t DNBArchImplX86_64::k_num_all_registers_avx512f =
k_num_gpr_registers + k_num_fpu_registers_avx512f + k_num_exc_registers;
-//----------------------------------------------------------------------
// Register set definitions. The first definitions at register set index
// of zero is for all registers, followed by other registers sets. The
// register information for the all register set need not be filled in.
-//----------------------------------------------------------------------
const DNBRegisterSetInfo DNBArchImplX86_64::g_reg_sets_no_avx[] = {
{"x86_64 Registers", NULL, k_num_all_registers_no_avx},
{"General Purpose Registers", g_gpr_registers, k_num_gpr_registers},
diff --git a/lldb/tools/debugserver/source/PThreadEvent.cpp b/lldb/tools/debugserver/source/PThreadEvent.cpp
index 9a70b25a880..82d1d227867 100644
--- a/lldb/tools/debugserver/source/PThreadEvent.cpp
+++ b/lldb/tools/debugserver/source/PThreadEvent.cpp
@@ -105,10 +105,8 @@ void PThreadEvent::ResetEvents(const uint32_t mask) {
}
}
-//----------------------------------------------------------------------
// Wait until 'timeout_abstime' for any events that are set in
// 'mask'. If 'timeout_abstime' is NULL, then wait forever.
-//----------------------------------------------------------------------
uint32_t
PThreadEvent::WaitForSetEvents(const uint32_t mask,
const struct timespec *timeout_abstime) const {
@@ -149,10 +147,8 @@ PThreadEvent::WaitForSetEvents(const uint32_t mask,
return 0;
}
-//----------------------------------------------------------------------
// Wait until 'timeout_abstime' for any events in 'mask' to reset.
// If 'timeout_abstime' is NULL, then wait forever.
-//----------------------------------------------------------------------
uint32_t PThreadEvent::WaitForEventsToReset(
const uint32_t mask, const struct timespec *timeout_abstime) const {
// DNBLogThreadedIf(LOG_EVENTS, "%p PThreadEvent::%s (0x%8.8x, %p)", this,
diff --git a/lldb/tools/debugserver/source/PThreadEvent.h b/lldb/tools/debugserver/source/PThreadEvent.h
index 00c8316ef07..5689cbfb9ca 100644
--- a/lldb/tools/debugserver/source/PThreadEvent.h
+++ b/lldb/tools/debugserver/source/PThreadEvent.h
@@ -44,10 +44,8 @@ public:
const struct timespec *timeout_abstime = NULL) const;
protected:
- //----------------------------------------------------------------------
// pthread condition and mutex variable to control access and allow
// blocking between the main thread and the spotlight index thread.
- //----------------------------------------------------------------------
mutable PThreadMutex m_mutex;
mutable PThreadCondition m_set_condition;
mutable PThreadCondition m_reset_condition;
diff --git a/lldb/tools/debugserver/source/PseudoTerminal.cpp b/lldb/tools/debugserver/source/PseudoTerminal.cpp
index 0a75bc9741f..cac8bda6248 100644
--- a/lldb/tools/debugserver/source/PseudoTerminal.cpp
+++ b/lldb/tools/debugserver/source/PseudoTerminal.cpp
@@ -15,27 +15,21 @@
#include <sys/ioctl.h>
#include <unistd.h>
-//----------------------------------------------------------------------
// PseudoTerminal constructor
-//----------------------------------------------------------------------
PseudoTerminal::PseudoTerminal()
: m_master_fd(invalid_fd), m_slave_fd(invalid_fd) {}
-//----------------------------------------------------------------------
// Destructor
// The master and slave file descriptors will get closed if they are
// valid. Call the ReleaseMasterFD()/ReleaseSlaveFD() member functions
// to release any file descriptors that are needed beyond the lifespan
// of this object.
-//----------------------------------------------------------------------
PseudoTerminal::~PseudoTerminal() {
CloseMaster();
CloseSlave();
}
-//----------------------------------------------------------------------
// Close the master file descriptor if it is valid.
-//----------------------------------------------------------------------
void PseudoTerminal::CloseMaster() {
if (m_master_fd > 0) {
::close(m_master_fd);
@@ -43,9 +37,7 @@ void PseudoTerminal::CloseMaster() {
}
}
-//----------------------------------------------------------------------
// Close the slave file descriptor if it is valid.
-//----------------------------------------------------------------------
void PseudoTerminal::CloseSlave() {
if (m_slave_fd > 0) {
::close(m_slave_fd);
@@ -53,7 +45,6 @@ void PseudoTerminal::CloseSlave() {
}
}
-//----------------------------------------------------------------------
// Open the first available pseudo terminal with OFLAG as the
// permissions. The file descriptor is store in the m_master_fd member
// variable and can be accessed via the MasterFD() or ReleaseMasterFD()
@@ -63,7 +54,6 @@ void PseudoTerminal::CloseSlave() {
//
// RETURNS:
// Zero when successful, non-zero indicating an error occurred.
-//----------------------------------------------------------------------
PseudoTerminal::Status PseudoTerminal::OpenFirstAvailableMaster(int oflag) {
// Open the master side of a pseudo terminal
m_master_fd = ::posix_openpt(oflag);
@@ -86,7 +76,6 @@ PseudoTerminal::Status PseudoTerminal::OpenFirstAvailableMaster(int oflag) {
return success;
}
-//----------------------------------------------------------------------
// Open the slave pseudo terminal for the current master pseudo
// terminal. A master pseudo terminal should already be valid prior to
// calling this function (see PseudoTerminal::OpenFirstAvailableMaster()).
@@ -95,7 +84,6 @@ PseudoTerminal::Status PseudoTerminal::OpenFirstAvailableMaster(int oflag) {
//
// RETURNS:
// Zero when successful, non-zero indicating an error occurred.
-//----------------------------------------------------------------------
PseudoTerminal::Status PseudoTerminal::OpenSlave(int oflag) {
CloseSlave();
@@ -113,7 +101,6 @@ PseudoTerminal::Status PseudoTerminal::OpenSlave(int oflag) {
return success;
}
-//----------------------------------------------------------------------
// Get the name of the slave pseudo terminal. A master pseudo terminal
// should already be valid prior to calling this function (see
// PseudoTerminal::OpenFirstAvailableMaster()).
@@ -123,14 +110,12 @@ PseudoTerminal::Status PseudoTerminal::OpenSlave(int oflag) {
// The name of the slave pseudo terminal as a NULL terminated C string
// that comes from static memory, so a copy of the string should be
// made as subsequent calls can change this value.
-//----------------------------------------------------------------------
const char *PseudoTerminal::SlaveName() const {
if (m_master_fd < 0)
return NULL;
return ::ptsname(m_master_fd);
}
-//----------------------------------------------------------------------
// Fork a child process that and have its stdio routed to a pseudo
// terminal.
//
@@ -150,7 +135,6 @@ const char *PseudoTerminal::SlaveName() const {
// RETURNS:
// in the parent process: the pid of the child, or -1 if fork fails
// in the child process: zero
-//----------------------------------------------------------------------
pid_t PseudoTerminal::Fork(PseudoTerminal::Status &error) {
pid_t pid = invalid_pid;
diff --git a/lldb/tools/debugserver/source/PseudoTerminal.h b/lldb/tools/debugserver/source/PseudoTerminal.h
index c14042a41c4..e4093bd98e9 100644
--- a/lldb/tools/debugserver/source/PseudoTerminal.h
+++ b/lldb/tools/debugserver/source/PseudoTerminal.h
@@ -35,9 +35,7 @@ public:
err_dup2_failed_on_stdout = -11,
err_dup2_failed_on_stderr = -12
};
- //------------------------------------------------------------------
// Constructors and Destructors
- //------------------------------------------------------------------
PseudoTerminal();
~PseudoTerminal();
@@ -69,16 +67,12 @@ public:
pid_t Fork(Status &error);
protected:
- //------------------------------------------------------------------
// Classes that inherit from PseudoTerminal can see and modify these
- //------------------------------------------------------------------
int m_master_fd;
int m_slave_fd;
private:
- //------------------------------------------------------------------
// Outlaw copy and assignment constructors
- //------------------------------------------------------------------
PseudoTerminal(const PseudoTerminal &rhs);
PseudoTerminal &operator=(const PseudoTerminal &rhs);
};
diff --git a/lldb/tools/debugserver/source/RNBContext.cpp b/lldb/tools/debugserver/source/RNBContext.cpp
index 87f24ccf1b9..3f1a37a1175 100644
--- a/lldb/tools/debugserver/source/RNBContext.cpp
+++ b/lldb/tools/debugserver/source/RNBContext.cpp
@@ -25,14 +25,10 @@
#include "DNBLog.h"
#include "RNBRemote.h"
-//----------------------------------------------------------------------
// Destructor
-//----------------------------------------------------------------------
RNBContext::~RNBContext() { SetProcessID(INVALID_NUB_PROCESS); }
-//----------------------------------------------------------------------
// RNBContext constructor
-//----------------------------------------------------------------------
const char *RNBContext::EnvironmentAtIndex(size_t index) {
if (index < m_env_vec.size())
@@ -134,10 +130,8 @@ void RNBContext::StopProcessStatusThread() {
}
}
-//----------------------------------------------------------------------
// This thread's sole purpose is to watch for any status changes in the
// child process.
-//----------------------------------------------------------------------
void *RNBContext::ThreadFunctionProcessStatus(void *arg) {
RNBRemoteSP remoteSP(g_remoteSP);
RNBRemote *remote = remoteSP.get();
diff --git a/lldb/tools/debugserver/source/RNBContext.h b/lldb/tools/debugserver/source/RNBContext.h
index c2a0d3374d7..9159057329f 100644
--- a/lldb/tools/debugserver/source/RNBContext.h
+++ b/lldb/tools/debugserver/source/RNBContext.h
@@ -42,9 +42,7 @@ public:
all_event_bits = sticky_event_bits | normal_event_bits
} event_t;
- //------------------------------------------------------------------
// Constructors and Destructors
- //------------------------------------------------------------------
RNBContext()
: m_pid(INVALID_NUB_PROCESS), m_pid_stop_count(0),
m_events(0, all_event_bits), m_pid_pthread(), m_launch_status(),
@@ -127,9 +125,7 @@ public:
bool GetDetachOnError() { return m_detach_on_error; }
protected:
- //------------------------------------------------------------------
// Classes that inherit from RNBContext can see and modify these
- //------------------------------------------------------------------
nub_process_t m_pid;
std::string m_stdin;
std::string m_stdout;
@@ -153,9 +149,7 @@ protected:
static void *ThreadFunctionProcessStatus(void *arg);
private:
- //------------------------------------------------------------------
// Outlaw copy and assignment operators
- //------------------------------------------------------------------
RNBContext(const RNBContext &rhs);
RNBContext &operator=(const RNBContext &rhs);
};
diff --git a/lldb/tools/debugserver/source/RNBRemote.cpp b/lldb/tools/debugserver/source/RNBRemote.cpp
index d67f5c8d47a..16c15f64c25 100644
--- a/lldb/tools/debugserver/source/RNBRemote.cpp
+++ b/lldb/tools/debugserver/source/RNBRemote.cpp
@@ -49,18 +49,14 @@
#include <sstream>
#include <unordered_set>
-//----------------------------------------------------------------------
// constants
-//----------------------------------------------------------------------
static const std::string OS_LOG_EVENTS_KEY_NAME("events");
static const std::string JSON_ASYNC_TYPE_KEY_NAME("type");
static const DarwinLogEventVector::size_type DARWIN_LOG_MAX_EVENTS_PER_PACKET =
10;
-//----------------------------------------------------------------------
// std::iostream formatting macros
-//----------------------------------------------------------------------
#define RAW_HEXBASE std::setfill('0') << std::hex << std::right
#define HEXBASE '0' << 'x' << RAW_HEXBASE
#define RAWHEX8(x) RAW_HEXBASE << std::setw(2) << ((uint32_t)((uint8_t)x))
@@ -89,16 +85,12 @@ static const DarwinLogEventVector::size_type DARWIN_LOG_MAX_EVENTS_PER_PACKET =
std::setfill('\t') << std::setw((iword_idx)) << ""
// Class to handle communications via gdb remote protocol.
-//----------------------------------------------------------------------
// Prototypes
-//----------------------------------------------------------------------
static std::string binary_encode_string(const std::string &s);
-//----------------------------------------------------------------------
// Decode a single hex character and return the hex value as a number or
// -1 if "ch" is not a hex character.
-//----------------------------------------------------------------------
static inline int xdigit_to_sint(char ch) {
if (ch >= 'a' && ch <= 'f')
return 10 + ch - 'a';
@@ -109,10 +101,8 @@ static inline int xdigit_to_sint(char ch) {
return -1;
}
-//----------------------------------------------------------------------
// Decode a single hex ASCII byte. Return -1 on failure, a value 0-255
// on success.
-//----------------------------------------------------------------------
static inline int decoded_hex_ascii_char(const char *p) {
const int hi_nibble = xdigit_to_sint(p[0]);
if (hi_nibble == -1)
@@ -123,9 +113,7 @@ static inline int decoded_hex_ascii_char(const char *p) {
return (uint8_t)((hi_nibble << 4) + lo_nibble);
}
-//----------------------------------------------------------------------
// Decode a hex ASCII string back into a string
-//----------------------------------------------------------------------
static std::string decode_hex_ascii_string(const char *p,
uint32_t max_length = UINT32_MAX) {
std::string arg;
@@ -4414,10 +4402,8 @@ rnb_err_t RNBRemote::HandlePacket_C(const char *p) {
return rnb_success;
}
-//----------------------------------------------------------------------
// 'D' packet
// Detach from gdb.
-//----------------------------------------------------------------------
rnb_err_t RNBRemote::HandlePacket_D(const char *p) {
if (m_ctx.HasValidProcessID()) {
if (DNBProcessDetach(m_ctx.ProcessID()))
@@ -5821,13 +5807,11 @@ static nub_addr_t GetMachHeaderForMainExecutable(const nub_process_t pid,
DNBDataRef::offset_t offset = 0;
data.SetPointerSize(addr_size);
- //----------------------------------------------------------------------
// When we are sitting at __dyld_start, the kernel has placed the
// address of the mach header of the main executable on the stack. If we
// read the SP and dereference a pointer, we might find the mach header
// for the executable. We also just make sure there is only 1 thread
// since if we are at __dyld_start we shouldn't have multiple threads.
- //----------------------------------------------------------------------
if (DNBProcessGetNumThreads(pid) == 1) {
nub_thread_t tid = DNBProcessGetThreadAtIndex(pid, 0);
if (tid != INVALID_NUB_THREAD) {
@@ -5847,10 +5831,8 @@ static nub_addr_t GetMachHeaderForMainExecutable(const nub_process_t pid,
}
}
- //----------------------------------------------------------------------
// Check the dyld_all_image_info structure for a list of mach header
// since it is a very easy thing to check
- //----------------------------------------------------------------------
if (shlib_addr != INVALID_NUB_ADDRESS) {
bytes_read =
DNBProcessMemoryRead(pid, shlib_addr, sizeof(AllImageInfos), bytes);
@@ -5880,12 +5862,10 @@ static nub_addr_t GetMachHeaderForMainExecutable(const nub_process_t pid,
}
}
- //----------------------------------------------------------------------
// We failed to find the executable's mach header from the all image
// infos and by dereferencing the stack pointer. Now we fall back to
// enumerating the memory regions and looking for regions that are
// executable.
- //----------------------------------------------------------------------
DNBRegionInfo region_info;
mach_header_addr = 0;
while (DNBProcessMemoryRegionInfo(pid, mach_header_addr, &region_info)) {
diff --git a/lldb/tools/debugserver/source/StdStringExtractor.cpp b/lldb/tools/debugserver/source/StdStringExtractor.cpp
index a52e8aba5d9..cb706a8f50c 100644
--- a/lldb/tools/debugserver/source/StdStringExtractor.cpp
+++ b/lldb/tools/debugserver/source/StdStringExtractor.cpp
@@ -21,9 +21,7 @@ static inline int xdigit_to_sint(char ch) {
return -1;
}
-//----------------------------------------------------------------------
// StdStringExtractor constructor
-//----------------------------------------------------------------------
StdStringExtractor::StdStringExtractor() : m_packet(), m_index(0) {}
StdStringExtractor::StdStringExtractor(const char *packet_cstr)
@@ -32,15 +30,11 @@ StdStringExtractor::StdStringExtractor(const char *packet_cstr)
m_packet.assign(packet_cstr);
}
-//----------------------------------------------------------------------
// StdStringExtractor copy constructor
-//----------------------------------------------------------------------
StdStringExtractor::StdStringExtractor(const StdStringExtractor &rhs)
: m_packet(rhs.m_packet), m_index(rhs.m_index) {}
-//----------------------------------------------------------------------
// StdStringExtractor assignment operator
-//----------------------------------------------------------------------
const StdStringExtractor &StdStringExtractor::
operator=(const StdStringExtractor &rhs) {
if (this != &rhs) {
@@ -50,9 +44,7 @@ operator=(const StdStringExtractor &rhs) {
return *this;
}
-//----------------------------------------------------------------------
// Destructor
-//----------------------------------------------------------------------
StdStringExtractor::~StdStringExtractor() {}
char StdStringExtractor::GetChar(char fail_value) {
@@ -65,14 +57,12 @@ char StdStringExtractor::GetChar(char fail_value) {
return fail_value;
}
-//----------------------------------------------------------------------
// If a pair of valid hex digits exist at the head of the
// StdStringExtractor they are decoded into an unsigned byte and returned
// by this function
//
// If there is not a pair of valid hex digits at the head of the
// StdStringExtractor, it is left unchanged and -1 is returned
-//----------------------------------------------------------------------
int StdStringExtractor::DecodeHexU8() {
SkipSpaces();
if (GetBytesLeft() < 2) {
@@ -87,10 +77,8 @@ int StdStringExtractor::DecodeHexU8() {
return (uint8_t)((hi_nibble << 4) + lo_nibble);
}
-//----------------------------------------------------------------------
// Extract an unsigned character from two hex ASCII chars in the packet
// string, or return fail_value on failure
-//----------------------------------------------------------------------
uint8_t StdStringExtractor::GetHexU8(uint8_t fail_value, bool set_eof_on_fail) {
// On success, fail_value will be overwritten with the next
// character in the stream
@@ -290,12 +278,10 @@ size_t StdStringExtractor::GetHexBytes(void *dst_void, size_t dst_len,
return bytes_extracted;
}
-//----------------------------------------------------------------------
// Decodes all valid hex encoded bytes at the head of the
// StdStringExtractor, limited by dst_len.
//
// Returns the number of bytes successfully decoded
-//----------------------------------------------------------------------
size_t StdStringExtractor::GetHexBytesAvail(void *dst_void, size_t dst_len) {
uint8_t *dst = (uint8_t *)dst_void;
size_t bytes_extracted = 0;
diff --git a/lldb/tools/debugserver/source/StdStringExtractor.h b/lldb/tools/debugserver/source/StdStringExtractor.h
index cc256f5655f..d3edfb2f461 100644
--- a/lldb/tools/debugserver/source/StdStringExtractor.h
+++ b/lldb/tools/debugserver/source/StdStringExtractor.h
@@ -18,17 +18,13 @@
class StdStringExtractor {
public:
enum { BigEndian = 0, LittleEndian = 1 };
- //------------------------------------------------------------------
// Constructors and Destructors
- //------------------------------------------------------------------
StdStringExtractor();
StdStringExtractor(const char *packet_cstr);
StdStringExtractor(const StdStringExtractor &rhs);
virtual ~StdStringExtractor();
- //------------------------------------------------------------------
// Operators
- //------------------------------------------------------------------
const StdStringExtractor &operator=(const StdStringExtractor &rhs);
// Returns true if the file position is still valid for the data
@@ -107,9 +103,7 @@ public:
}
protected:
- //------------------------------------------------------------------
// For StdStringExtractor only
- //------------------------------------------------------------------
std::string m_packet; // The string in which to extract data.
uint64_t m_index; // When extracting data from a packet, this index
// will march along as things get extracted. If set
diff --git a/lldb/tools/debugserver/source/debugserver.cpp b/lldb/tools/debugserver/source/debugserver.cpp
index c360a46aed5..1463ff906cf 100644
--- a/lldb/tools/debugserver/source/debugserver.cpp
+++ b/lldb/tools/debugserver/source/debugserver.cpp
@@ -45,9 +45,7 @@ extern "C" int proc_set_wakemon_params(pid_t, int,
// Global PID in case we get a signal and need to stop the process...
nub_process_t g_pid = INVALID_NUB_PROCESS;
-//----------------------------------------------------------------------
// Run loop modes which determine which run loop function will be called
-//----------------------------------------------------------------------
typedef enum {
eRNBRunLoopModeInvalid = 0,
eRNBRunLoopModeGetStartModeFromRemoteProtocol,
@@ -58,9 +56,7 @@ typedef enum {
eRNBRunLoopModeExit
} RNBRunLoopMode;
-//----------------------------------------------------------------------
// Global Variables
-//----------------------------------------------------------------------
RNBRemoteSP g_remoteSP;
static int g_lockdown_opt = 0;
static int g_applist_opt = 0;
@@ -87,12 +83,10 @@ bool g_detach_on_error = true;
} \
} while (0)
-//----------------------------------------------------------------------
// Get our program path and arguments from the remote connection.
// We will need to start up the remote connection without a PID, get the
// arguments, wait for the new process to finish launching and hit its
// entry point, and then return the run loop mode that should come next.
-//----------------------------------------------------------------------
RNBRunLoopMode RNBRunLoopGetStartModeFromRemote(RNBRemote *remote) {
std::string packet;
@@ -162,12 +156,10 @@ RNBRunLoopMode RNBRunLoopGetStartModeFromRemote(RNBRemote *remote) {
return eRNBRunLoopModeExit;
}
-//----------------------------------------------------------------------
// This run loop mode will wait for the process to launch and hit its
// entry point. It will currently ignore all events except for the
// process state changed event, where it watches for the process stopped
// or crash process state.
-//----------------------------------------------------------------------
RNBRunLoopMode RNBRunLoopLaunchInferior(RNBRemote *remote,
const char *stdin_path,
const char *stdout_path,
@@ -351,12 +343,10 @@ RNBRunLoopMode RNBRunLoopLaunchInferior(RNBRemote *remote,
return eRNBRunLoopModeExit;
}
-//----------------------------------------------------------------------
// This run loop mode will wait for the process to launch and hit its
// entry point. It will currently ignore all events except for the
// process state changed event, where it watches for the process stopped
// or crash process state.
-//----------------------------------------------------------------------
RNBRunLoopMode RNBRunLoopLaunchAttaching(RNBRemote *remote,
nub_process_t attach_pid,
nub_process_t &pid) {
@@ -379,11 +369,9 @@ RNBRunLoopMode RNBRunLoopLaunchAttaching(RNBRemote *remote,
}
}
-//----------------------------------------------------------------------
// Watch for signals:
// SIGINT: so we can halt our inferior. (disabled for now)
// SIGPIPE: in case our child process dies
-//----------------------------------------------------------------------
int g_sigint_received = 0;
int g_sigpipe_received = 0;
void signal_handler(int signo) {
@@ -654,10 +642,8 @@ RNBRunLoopMode RNBRunLoopPlatform(RNBRemote *remote) {
return eRNBRunLoopModeExit;
}
-//----------------------------------------------------------------------
// Convenience function to set up the remote listening port
// Returns 1 for success 0 for failure.
-//----------------------------------------------------------------------
static void PortWasBoundCallbackUnixSocket(const void *baton, in_port_t port) {
//::printf ("PortWasBoundCallbackUnixSocket (baton = %p, port = %u)\n", baton,
@@ -761,9 +747,7 @@ static int ConnectRemote(RNBRemote *remote, const char *host, int port,
return 1;
}
-//----------------------------------------------------------------------
// ASL Logging callback that can be registered with DNBLogSetLogCallback
-//----------------------------------------------------------------------
void ASLLogCallback(void *baton, uint32_t flags, const char *format,
va_list args) {
if (format == NULL)
@@ -792,10 +776,8 @@ void ASLLogCallback(void *baton, uint32_t flags, const char *format,
::asl_vlog(NULL, g_aslmsg, asl_level, format, args);
}
-//----------------------------------------------------------------------
// FILE based Logging callback that can be registered with
// DNBLogSetLogCallback
-//----------------------------------------------------------------------
void FileLogCallback(void *baton, uint32_t flags, const char *format,
va_list args) {
if (baton == NULL || format == NULL)
@@ -821,9 +803,7 @@ void show_usage_and_exit(int exit_code) {
exit(exit_code);
}
-//----------------------------------------------------------------------
// option descriptors for getopt_long_only()
-//----------------------------------------------------------------------
static struct option g_long_options[] = {
{"attach", required_argument, NULL, 'a'},
{"arch", required_argument, NULL, 'A'},
@@ -890,9 +870,7 @@ static struct option g_long_options[] = {
// -F localhost:1234 -- /bin/ls"
{NULL, 0, NULL, 0}};
-//----------------------------------------------------------------------
// main
-//----------------------------------------------------------------------
int main(int argc, char *argv[]) {
// If debugserver is launched with DYLD_INSERT_LIBRARIES, unset it so we
// don't spawn child processes with this enabled.
diff --git a/lldb/tools/debugserver/source/libdebugserver.cpp b/lldb/tools/debugserver/source/libdebugserver.cpp
index 450ce41de25..e545caf5ae8 100644
--- a/lldb/tools/debugserver/source/libdebugserver.cpp
+++ b/lldb/tools/debugserver/source/libdebugserver.cpp
@@ -26,9 +26,7 @@
#include "RNBSocket.h"
#include "SysSignal.h"
-//----------------------------------------------------------------------
// Run loop modes which determine which run loop function will be called
-//----------------------------------------------------------------------
typedef enum {
eRNBRunLoopModeInvalid = 0,
eRNBRunLoopModeGetStartModeFromRemoteProtocol,
@@ -36,9 +34,7 @@ typedef enum {
eRNBRunLoopModeExit
} RNBRunLoopMode;
-//----------------------------------------------------------------------
// Global Variables
-//----------------------------------------------------------------------
RNBRemoteSP g_remoteSP;
int g_disable_aslr = 0;
int g_isatty = 0;
@@ -60,12 +56,10 @@ int g_isatty = 0;
} \
} while (0)
-//----------------------------------------------------------------------
// Get our program path and arguments from the remote connection.
// We will need to start up the remote connection without a PID, get the
// arguments, wait for the new process to finish launching and hit its
// entry point, and then return the run loop mode that should come next.
-//----------------------------------------------------------------------
RNBRunLoopMode RNBRunLoopGetStartModeFromRemote(RNBRemoteSP &remoteSP) {
std::string packet;
@@ -125,11 +119,9 @@ RNBRunLoopMode RNBRunLoopGetStartModeFromRemote(RNBRemoteSP &remoteSP) {
return eRNBRunLoopModeExit;
}
-//----------------------------------------------------------------------
// Watch for signals:
// SIGINT: so we can halt our inferior. (disabled for now)
// SIGPIPE: in case our child process dies
-//----------------------------------------------------------------------
nub_process_t g_pid;
int g_sigpipe_received = 0;
void signal_handler(int signo) {
diff --git a/lldb/tools/intel-features/intel-pt/Decoder.h b/lldb/tools/intel-features/intel-pt/Decoder.h
index 390defb4419..2ae89653df5 100644
--- a/lldb/tools/intel-features/intel-pt/Decoder.h
+++ b/lldb/tools/intel-features/intel-pt/Decoder.h
@@ -29,13 +29,11 @@
#include "intel-pt.h"
namespace ptdecoder_private {
-//----------------------------------------------------------------------
/// \class Instruction
/// Represents an assembly instruction containing raw
/// instruction bytes, instruction address along with information
/// regarding execution flow context and Intel(R) Processor Trace
/// context.
-//----------------------------------------------------------------------
class Instruction {
public:
Instruction() : ip(0), data(), error(), iclass(ptic_error), speculative(0) {}
@@ -79,11 +77,9 @@ private:
uint32_t speculative : 1; // Instruction was executed speculatively or not
};
-//---------------------------------------------------------------------------
/// \class InstructionList
/// Represents a list of assembly instructions. Each instruction is of
/// type Instruction.
-//---------------------------------------------------------------------------
class InstructionList {
public:
InstructionList() : m_insn_vec() {}
@@ -109,41 +105,34 @@ private:
std::vector<Instruction> m_insn_vec;
};
-//----------------------------------------------------------------------
/// \class TraceOptions
/// Provides Intel(R) Processor Trace specific configuration options and
/// other information obtained by decoding and post-processing the trace
/// data. Currently, this information comprises of the total number of
/// assembly instructions executed for an inferior.
-//----------------------------------------------------------------------
class TraceOptions : public lldb::SBTraceOptions {
public:
TraceOptions() : lldb::SBTraceOptions(), m_insn_log_size(0) {}
~TraceOptions() {}
- //------------------------------------------------------------------
/// Get total number of assembly instructions obtained after decoding the
/// complete Intel(R) Processor Trace data obtained from LLDB.
///
/// \return
/// Total number of instructions.
- //------------------------------------------------------------------
uint32_t getInstructionLogSize() const { return m_insn_log_size; }
- //------------------------------------------------------------------
/// Set total number of assembly instructions.
///
/// \param[in] size
/// Value to be set.
- //------------------------------------------------------------------
void setInstructionLogSize(uint32_t size) { m_insn_log_size = size; }
private:
uint32_t m_insn_log_size;
};
-//----------------------------------------------------------------------
/// \class Decoder
/// This class makes use of Intel(R) Processor Trace hardware feature
/// (implememted inside LLDB) to gather trace data for an inferior (being
@@ -156,7 +145,6 @@ private:
/// - stop the trace for a thread/process,
/// - get the execution flow (assembly instructions) for a thread and
/// - get trace specific information for a thread
-//----------------------------------------------------------------------
class Decoder {
public:
typedef std::vector<Instruction> Instructions;
@@ -216,7 +204,6 @@ private:
void ParseCPUInfo(CPUInfo &pt_cpu, lldb::SBStructuredData &s,
lldb::SBError &sberror);
- ///------------------------------------------------------------------------
/// Function performs following tasks for a given process and thread:
/// - Checks if the given thread is registered in the class or not. If not
/// then tries to register it if trace was ever started on the entire
@@ -224,7 +211,6 @@ private:
/// - fetches trace and other necessary information from LLDB (using
/// ReadTraceDataAndImageInfo()) and decodes the trace (using
/// DecodeProcessorTrace())
- ///------------------------------------------------------------------------
void FetchAndDecode(lldb::SBProcess &sbprocess, lldb::tid_t tid,
lldb::SBError &sberror,
ThreadTraceInfo **threadTraceInfo);
@@ -248,12 +234,10 @@ private:
ReadExecuteSectionInfos &readExecuteSectionInfos,
lldb::SBError &sberror);
- ///------------------------------------------------------------------------
/// Helper functions of DecodeProcessorTrace() function for:
/// - initializing raw trace decoder (provided by Intel(R) Processor Trace
/// Decoding library)
/// - start trace decoding
- ///------------------------------------------------------------------------
void InitializePTInstDecoder(
struct pt_insn_decoder **decoder, struct pt_config *config,
const CPUInfo &pt_cpu, Buffer &pt_buffer,
diff --git a/lldb/tools/intel-features/intel-pt/PTDecoder.h b/lldb/tools/intel-features/intel-pt/PTDecoder.h
index 4b216af959d..10f2a58660b 100644
--- a/lldb/tools/intel-features/intel-pt/PTDecoder.h
+++ b/lldb/tools/intel-features/intel-pt/PTDecoder.h
@@ -29,13 +29,11 @@ class Decoder;
namespace ptdecoder {
-//----------------------------------------------------------------------
/// \class PTInstruction
/// Represents an assembly instruction containing raw
/// instruction bytes, instruction address along with information
/// regarding execution flow context and Intel(R) Processor Trace
/// context.
-//----------------------------------------------------------------------
class PTInstruction {
public:
PTInstruction();
@@ -49,7 +47,6 @@ public:
// Get instruction address in inferior's memory image
uint64_t GetInsnAddress() const;
- //------------------------------------------------------------------
/// Get raw bytes of the instruction in the buffer.
///
/// \param[out] buf
@@ -67,7 +64,6 @@ public:
/// Number of bytes of the instruction actually written to @buf if API
/// succeeds. In case of errors, total number of raw bytes of the
/// instruction is returned.
- //------------------------------------------------------------------
size_t GetRawBytes(void *buf, size_t size) const;
// Get error string if it represents an invalid instruction. For a valid
@@ -81,11 +77,9 @@ private:
std::shared_ptr<ptdecoder_private::Instruction> m_opaque_sp;
};
-//---------------------------------------------------------------------------
/// \class PTInstructionList
/// Represents a list of assembly instructions. Each instruction is of
/// type PTInstruction.
-//---------------------------------------------------------------------------
class PTInstructionList {
public:
PTInstructionList();
@@ -110,12 +104,10 @@ private:
std::shared_ptr<ptdecoder_private::InstructionList> m_opaque_sp;
};
-//----------------------------------------------------------------------
/// \class PTTraceOptions
/// Provides configuration options like trace type, trace buffer size,
/// meta data buffer size along with other Intel(R) Processor Trace
/// specific options.
-//----------------------------------------------------------------------
class PTTraceOptions {
public:
PTTraceOptions();
@@ -130,7 +122,6 @@ public:
uint64_t GetMetaDataBufferSize() const;
- //------------------------------------------------------------------
/// Get Intel(R) Processor Trace specific configuration options (apart from
/// trace buffer size, meta data buffer size and TraceType) formatted as
/// json text i.e. {"Name":Value,"Name":Value} pairs, where "Value" is a
@@ -139,7 +130,6 @@ public:
///
/// \return
/// A string formatted as json text {"Name":Value,"Name":Value}
- //------------------------------------------------------------------
lldb::SBStructuredData GetTraceParams(lldb::SBError &error);
private:
@@ -150,7 +140,6 @@ private:
std::shared_ptr<ptdecoder_private::TraceOptions> m_opaque_sp;
};
-//----------------------------------------------------------------------
/// \class PTDecoder
/// This class makes use of Intel(R) Processor Trace hardware feature
/// (implememted inside LLDB) to gather trace data for an inferior (being
@@ -163,7 +152,6 @@ private:
/// - stop the trace for a thread/process,
/// - get the execution flow (assembly instructions) for a thread and
/// - get trace specific information for a thread
-//----------------------------------------------------------------------
class PTDecoder {
public:
PTDecoder(lldb::SBDebugger &sbdebugger);
@@ -172,7 +160,6 @@ public:
~PTDecoder();
- //------------------------------------------------------------------
/// Start Intel(R) Processor Trace on a thread or complete process with
/// Intel(R) Processor Trace specific configuration options
///
@@ -211,12 +198,10 @@ public:
///
/// \param[out] sberror
/// An error with the failure reason if API fails. Else success.
- //------------------------------------------------------------------
void StartProcessorTrace(lldb::SBProcess &sbprocess,
lldb::SBTraceOptions &sbtraceoptions,
lldb::SBError &sberror);
- //------------------------------------------------------------------
/// Stop Intel(R) Processor Trace on a thread or complete process.
///
/// \param[in] sbprocess
@@ -231,11 +216,9 @@ public:
///
/// \param[out] sberror
/// An error with the failure reason if API fails. Else success.
- //------------------------------------------------------------------
void StopProcessorTrace(lldb::SBProcess &sbprocess, lldb::SBError &sberror,
lldb::tid_t tid = LLDB_INVALID_THREAD_ID);
- //------------------------------------------------------------------
/// Get instruction log containing the execution flow for a thread of a
/// process in terms of assembly instructions executed.
///
@@ -269,13 +252,11 @@ public:
///
/// \param[out] sberror
/// An error with the failure reason if API fails. Else success.
- //------------------------------------------------------------------
void GetInstructionLogAtOffset(lldb::SBProcess &sbprocess, lldb::tid_t tid,
uint32_t offset, uint32_t count,
PTInstructionList &result_list,
lldb::SBError &sberror);
- //------------------------------------------------------------------
/// Get Intel(R) Processor Trace specific information for a thread of a
/// process. The information contains the actual configuration options with
/// which the trace was started for this thread.
@@ -296,7 +277,6 @@ public:
///
/// \param[out] sberror
/// An error with the failure reason if API fails. Else success.
- //------------------------------------------------------------------
void GetProcessorTraceInfo(lldb::SBProcess &sbprocess, lldb::tid_t tid,
PTTraceOptions &options, lldb::SBError &sberror);
diff --git a/lldb/tools/lldb-mi/MICmdArgContext.cpp b/lldb/tools/lldb-mi/MICmdArgContext.cpp
index 959ccee4e6d..18da5b5d67a 100644
--- a/lldb/tools/lldb-mi/MICmdArgContext.cpp
+++ b/lldb/tools/lldb-mi/MICmdArgContext.cpp
@@ -10,7 +10,6 @@
#include "MICmdArgContext.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgContext constructor.
// Type: Method.
// Args: None.
@@ -20,7 +19,6 @@
CMICmdArgContext::CMICmdArgContext() {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgContext constructor.
// Type: Method.
// Args: vrCmdLineArgsRaw - (R) The text description of the arguments
@@ -32,7 +30,6 @@ CMICmdArgContext::CMICmdArgContext(const CMIUtilString &vrCmdLineArgsRaw)
: m_strCmdArgsAndOptions(vrCmdLineArgsRaw) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgContext destructor.
// Type: Method.
// Args: None.
@@ -42,7 +39,6 @@ CMICmdArgContext::CMICmdArgContext(const CMIUtilString &vrCmdLineArgsRaw)
CMICmdArgContext::~CMICmdArgContext() {}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the remainder of the command's argument options left to
// parse.
// Type: Method.
@@ -55,7 +51,6 @@ const CMIUtilString &CMICmdArgContext::GetArgsLeftToParse() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Ask if this arguments string has any arguments.
// Type: Method.
// Args: None.
@@ -68,7 +63,6 @@ bool CMICmdArgContext::IsEmpty() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Remove the argument from the options text and any space after the
// argument
// if applicable.
@@ -127,7 +121,6 @@ bool CMICmdArgContext::RemoveArg(const CMIUtilString &vArg) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Remove the argument at the Nth word position along in the context
// string.
// Any space after the argument is removed if applicable. A search is
@@ -187,7 +180,6 @@ bool CMICmdArgContext::RemoveArgAtPos(const CMIUtilString &vArg,
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve number of arguments or options present in the command's
// option text.
// Type: Method.
@@ -201,7 +193,6 @@ size_t CMICmdArgContext::GetNumberArgsPresent() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve all the arguments or options remaining in *this context.
// Type: Method.
// Args: None.
@@ -215,7 +206,6 @@ CMIUtilString::VecString_t CMICmdArgContext::GetArgs() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Copy assignment operator.
// Type: Method.
// Args: vOther - (R) The variable to copy from.
diff --git a/lldb/tools/lldb-mi/MICmdArgSet.cpp b/lldb/tools/lldb-mi/MICmdArgSet.cpp
index c8d163b6e64..0d67c03bfea 100644
--- a/lldb/tools/lldb-mi/MICmdArgSet.cpp
+++ b/lldb/tools/lldb-mi/MICmdArgSet.cpp
@@ -13,7 +13,6 @@
#include "MICmnResources.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgSet constructor.
// Type: Method.
// Args: None.
@@ -24,7 +23,6 @@ CMICmdArgSet::CMICmdArgSet()
: m_bIsArgsPresentButNotHandledByCmd(false), m_constStrCommaSpc(", ") {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgSet destructor.
// Type: Method.
// Args: None.
@@ -37,7 +35,6 @@ CMICmdArgSet::~CMICmdArgSet() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release resources used by *this container object.
// Type: Method.
// Args: None.
@@ -66,7 +63,6 @@ void CMICmdArgSet::Destroy() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the state flag indicating that the command set up ready to
// parse
// command arguments or options found that one or more arguments was
@@ -83,7 +79,6 @@ bool CMICmdArgSet::IsArgsPresentButNotHandledByCmd() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Add the list of command's arguments to parse and validate another
// one.
// Type: Method.
@@ -94,7 +89,6 @@ bool CMICmdArgSet::IsArgsPresentButNotHandledByCmd() const {
void CMICmdArgSet::Add(CMICmdArgValBase *vArg) { m_setCmdArgs.push_back(vArg); }
//++
-//------------------------------------------------------------------------------------
// Details: After validating an options line of text (the context) and there is
// a failure,
// it is likely a mandatory command argument that is required is
@@ -110,7 +104,6 @@ const CMICmdArgSet::SetCmdArgs_t &CMICmdArgSet::GetArgsThatAreMissing() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: After validating an options line of text (the context) and there is
// a failure,
// it may be because one or more arguments were unable to extract a
@@ -126,7 +119,6 @@ const CMICmdArgSet::SetCmdArgs_t &CMICmdArgSet::GetArgsThatInvalid() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: The list of argument or option (objects) that were specified by the
// command
// and so recognised when parsed but were not handled. Ideally the
@@ -148,7 +140,6 @@ const CMICmdArgSet::SetCmdArgs_t &CMICmdArgSet::GetArgsNotHandledByCmd() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Given a set of command argument objects parse the context option
// string to
// find those argument and retrieve their value. If the function fails
@@ -199,7 +190,6 @@ bool CMICmdArgSet::Validate(const CMIUtilString &vStrMiCmd,
}
//++
-//------------------------------------------------------------------------------------
// Details: Having validated the command's options text and failed for some
// reason form
// the error message made up with the faults found.
@@ -310,7 +300,6 @@ bool CMICmdArgSet::ValidationFormErrorMessages(
}
//++
-//------------------------------------------------------------------------------------
// Details: Ask if the command's argument options text had any arguments.
// Type: Method.
// Args: None.
@@ -323,7 +312,6 @@ bool CMICmdArgSet::IsArgContextEmpty() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the number of arguments that are being used for the
// command.
// Type: Method.
@@ -334,7 +322,6 @@ bool CMICmdArgSet::IsArgContextEmpty() const {
size_t CMICmdArgSet::GetCount() const { return m_setCmdArgs.size(); }
//++
-//------------------------------------------------------------------------------------
// Details: Given a set of command argument objects retrieve the argument with
// the
// specified name.
@@ -364,7 +351,6 @@ bool CMICmdArgSet::GetArg(const CMIUtilString &vArgName,
}
//++
-//------------------------------------------------------------------------------------
// Details: Write a warning message to the MI Log file about the command's
// arguments or
// options that were found present but not handled.
diff --git a/lldb/tools/lldb-mi/MICmdArgValBase.cpp b/lldb/tools/lldb-mi/MICmdArgValBase.cpp
index ff87877fdc6..dc9c7e0257e 100644
--- a/lldb/tools/lldb-mi/MICmdArgValBase.cpp
+++ b/lldb/tools/lldb-mi/MICmdArgValBase.cpp
@@ -11,7 +11,6 @@
#include "MIUtilString.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValBase constructor.
// Type: Method.
// Args: None.
@@ -23,7 +22,6 @@ CMICmdArgValBase::CMICmdArgValBase()
m_bIsMissingOptions(false) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValBase constructor.
// Type: Method.
// Args: vrArgName - (R) Argument's name to search by.
@@ -42,7 +40,6 @@ CMICmdArgValBase::CMICmdArgValBase(const CMIUtilString &vrArgName,
m_bIsMissingOptions(false) {}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the state flag of whether the argument is handled by the
// command or
// not.
@@ -57,7 +54,6 @@ bool CMICmdArgValBase::GetIsMissingOptions() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the state flag of whether the argument is handled by the
// command or
// not.
@@ -70,7 +66,6 @@ bool CMICmdArgValBase::GetIsMissingOptions() const {
bool CMICmdArgValBase::GetIsHandledByCmd() const { return m_bHandled; }
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the name of *this argument.
// Type: Method.
// Args: None.
@@ -80,7 +75,6 @@ bool CMICmdArgValBase::GetIsHandledByCmd() const { return m_bHandled; }
const CMIUtilString &CMICmdArgValBase::GetName() const { return m_strArgName; }
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the state flag of whether the argument was found in the
// command's
// argument / options string.
@@ -93,7 +87,6 @@ const CMIUtilString &CMICmdArgValBase::GetName() const { return m_strArgName; }
bool CMICmdArgValBase::GetFound() const { return m_bFound; }
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the state flag indicating whether the value was obtained
// from the
// text arguments string and is valid.
@@ -106,7 +99,6 @@ bool CMICmdArgValBase::GetFound() const { return m_bFound; }
bool CMICmdArgValBase::GetValid() const { return m_bValid; }
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the state flag indicating whether *this argument is a
// mandatory
// argument for the command or is optional to be present.
@@ -119,7 +111,6 @@ bool CMICmdArgValBase::GetValid() const { return m_bValid; }
bool CMICmdArgValBase::GetIsMandatory() const { return m_bMandatory; }
//++
-//------------------------------------------------------------------------------------
// Details: Parse the command's argument options string and try to extract the
// value *this
// argument is looking for.
diff --git a/lldb/tools/lldb-mi/MICmdArgValBase.h b/lldb/tools/lldb-mi/MICmdArgValBase.h
index 9e31455cd9c..feb7fe4f04d 100644
--- a/lldb/tools/lldb-mi/MICmdArgValBase.h
+++ b/lldb/tools/lldb-mi/MICmdArgValBase.h
@@ -85,7 +85,6 @@ protected:
};
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValBaseTemplate constructor.
// Type: Method.
// Args: vrArgName - (R) Argument's name to search by.
@@ -103,7 +102,6 @@ CMICmdArgValBaseTemplate<T>::CMICmdArgValBaseTemplate(
: CMICmdArgValBase(vrArgName, vbMandatory, vbHandleByCmd) {}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the value the argument parsed from the command's argument /
// options
// text string.
diff --git a/lldb/tools/lldb-mi/MICmdArgValConsume.cpp b/lldb/tools/lldb-mi/MICmdArgValConsume.cpp
index a99ea5c36c7..01d00136659 100644
--- a/lldb/tools/lldb-mi/MICmdArgValConsume.cpp
+++ b/lldb/tools/lldb-mi/MICmdArgValConsume.cpp
@@ -11,7 +11,6 @@
#include "MICmdArgContext.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValConsume constructor.
// Type: Method.
// Args: None.
@@ -21,7 +20,6 @@
CMICmdArgValConsume::CMICmdArgValConsume() {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValConsume constructor.
// Type: Method.
// Args: vrArgName - (R) Argument's name to search by.
@@ -35,7 +33,6 @@ CMICmdArgValConsume::CMICmdArgValConsume(const CMIUtilString &vrArgName,
: CMICmdArgValBaseTemplate(vrArgName, vbMandatory, true) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValConsume destructor.
// Type: Overidden.
// Args: None.
@@ -45,7 +42,6 @@ CMICmdArgValConsume::CMICmdArgValConsume(const CMIUtilString &vrArgName,
CMICmdArgValConsume::~CMICmdArgValConsume() {}
//++
-//------------------------------------------------------------------------------------
// Details: Parse the command's argument options string and try to extract the
// value *this
// argument is looking for.
@@ -81,7 +77,6 @@ bool CMICmdArgValConsume::Validate(CMICmdArgContext &vwArgContext) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Nothing to examine as we just want to consume the argument or option
// (ignore
// it).
diff --git a/lldb/tools/lldb-mi/MICmdArgValFile.cpp b/lldb/tools/lldb-mi/MICmdArgValFile.cpp
index 2d1507a9610..7171b0fa8f1 100644
--- a/lldb/tools/lldb-mi/MICmdArgValFile.cpp
+++ b/lldb/tools/lldb-mi/MICmdArgValFile.cpp
@@ -11,7 +11,6 @@
#include "MICmdArgContext.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValFile constructor.
// Type: Method.
// Args: None.
@@ -21,7 +20,6 @@
CMICmdArgValFile::CMICmdArgValFile() {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValFile constructor.
// Type: Method.
// Args: vrArgName - (R) Argument's name to search by.
@@ -38,7 +36,6 @@ CMICmdArgValFile::CMICmdArgValFile(const CMIUtilString &vrArgName,
: CMICmdArgValBaseTemplate(vrArgName, vbMandatory, vbHandleByCmd) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValFile destructor.
// Type: Overridden.
// Args: None.
@@ -48,7 +45,6 @@ CMICmdArgValFile::CMICmdArgValFile(const CMIUtilString &vrArgName,
CMICmdArgValFile::~CMICmdArgValFile() {}
//++
-//------------------------------------------------------------------------------------
// Details: Parse the command's argument options string and try to extract the
// value *this
// argument is looking for.
@@ -101,7 +97,6 @@ bool CMICmdArgValFile::Validate(CMICmdArgContext &vwArgContext) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Given some text extract the file name path from it. If a space is
// found in
// path done return the path surrounded in quotes.
@@ -124,7 +119,6 @@ CMICmdArgValFile::GetFileNamePath(const CMIUtilString &vrTxt) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Examine the string and determine if it is a valid file name path.
// Type: Method.
// Args: vrFileNamePath - (R) File's name and directory path.
@@ -161,7 +155,6 @@ bool CMICmdArgValFile::IsFilePath(const CMIUtilString &vrFileNamePath) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Determine if the path contains valid characters for a file path.
// Letters can be
// either upper or lower case.
diff --git a/lldb/tools/lldb-mi/MICmdArgValListBase.cpp b/lldb/tools/lldb-mi/MICmdArgValListBase.cpp
index 645a7417a42..bd175f3afe6 100644
--- a/lldb/tools/lldb-mi/MICmdArgValListBase.cpp
+++ b/lldb/tools/lldb-mi/MICmdArgValListBase.cpp
@@ -18,7 +18,6 @@
#include "MICmdArgValThreadGrp.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValListBase constructor.
// Type: Method.
// Args: None.
@@ -29,7 +28,6 @@ CMICmdArgValListBase::CMICmdArgValListBase()
: m_eArgType(eArgValType_invalid) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValListBase constructor.
// Type: Method.
// Args: vrArgName - (R) Argument's name to search by.
@@ -47,7 +45,6 @@ CMICmdArgValListBase::CMICmdArgValListBase(const CMIUtilString &vrArgName,
m_eArgType(eArgValType_invalid) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValListBase constructor.
// Type: Method.
// Args: vrArgName - (R) Argument's name to search by.
@@ -68,7 +65,6 @@ CMICmdArgValListBase::CMICmdArgValListBase(const CMIUtilString &vrArgName,
m_eArgType(veType) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValListBase destructor.
// Type: Overridden.
// Args: None.
@@ -81,7 +77,6 @@ CMICmdArgValListBase::~CMICmdArgValListBase() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Tear down resources used by *this object.
// Type: Method.
// Args: None.
@@ -102,7 +97,6 @@ void CMICmdArgValListBase::Destroy() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Create an CMICmdArgValBase derived object matching the type
// specified
// and put the option or argument's value inside it.
@@ -163,7 +157,6 @@ CMICmdArgValListBase::CreationObj(const CMIUtilString &vrTxt,
}
//++
-//------------------------------------------------------------------------------------
// Details: Validate the option or argument is the correct type.
// Type: Method.
// Args: vrTxt - (R) Text version the option or argument.
diff --git a/lldb/tools/lldb-mi/MICmdArgValListBase.h b/lldb/tools/lldb-mi/MICmdArgValListBase.h
index 8762b2d80fc..4437ae19a87 100644
--- a/lldb/tools/lldb-mi/MICmdArgValListBase.h
+++ b/lldb/tools/lldb-mi/MICmdArgValListBase.h
@@ -45,7 +45,6 @@ public:
// Enums:
public:
//++
- //---------------------------------------------------------------------------------
// Details: CMICmdArgValListBase needs to know what type of argument to look
// for in
// the command options text. It also needs to create argument objects
diff --git a/lldb/tools/lldb-mi/MICmdArgValListOfN.cpp b/lldb/tools/lldb-mi/MICmdArgValListOfN.cpp
index 5ba0f0a3c6c..b53424543b2 100644
--- a/lldb/tools/lldb-mi/MICmdArgValListOfN.cpp
+++ b/lldb/tools/lldb-mi/MICmdArgValListOfN.cpp
@@ -17,7 +17,6 @@
#include "MICmdArgValThreadGrp.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValListOfN constructor.
// Type: Method.
// Args: None.
@@ -27,7 +26,6 @@
CMICmdArgValListOfN::CMICmdArgValListOfN() {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValListOfN constructor.
// Type: Method.
// Args: vrArgName - (R) Argument's name to search by.
@@ -47,7 +45,6 @@ CMICmdArgValListOfN::CMICmdArgValListOfN(const CMIUtilString &vrArgName,
: CMICmdArgValListBase(vrArgName, vbMandatory, vbHandleByCmd, veType) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValListOfN destructor.
// Type: Overridden.
// Args: None.
@@ -57,7 +54,6 @@ CMICmdArgValListOfN::CMICmdArgValListOfN(const CMIUtilString &vrArgName,
CMICmdArgValListOfN::~CMICmdArgValListOfN() {}
//++
-//------------------------------------------------------------------------------------
// Details: Parse the command's argument options string and try to extract the
// list of
// arguments based on the argument object type to look for.
@@ -87,7 +83,6 @@ bool CMICmdArgValListOfN::Validate(CMICmdArgContext &vwArgContext) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Create list of argument objects each holding a value extract from
// the command
// options line.
@@ -124,7 +119,6 @@ bool CMICmdArgValListOfN::CreateList(const CMIUtilString &vrTxt) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Examine the string and determine if it is a valid string type
// argument.
// Type: Method.
@@ -157,7 +151,6 @@ bool CMICmdArgValListOfN::IsListOfN(const CMIUtilString &vrTxt) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the list of CMICmdArgValBase derived option objects found
// following
// *this long option argument. For example "list-thread-groups [
diff --git a/lldb/tools/lldb-mi/MICmdArgValListOfN.h b/lldb/tools/lldb-mi/MICmdArgValListOfN.h
index 9ccd31579f6..74e8c16f7d6 100644
--- a/lldb/tools/lldb-mi/MICmdArgValListOfN.h
+++ b/lldb/tools/lldb-mi/MICmdArgValListOfN.h
@@ -61,7 +61,6 @@ private:
};
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the first argument or option value from the list of 1 or
// more options
// parsed from the command's options string.
diff --git a/lldb/tools/lldb-mi/MICmdArgValNumber.cpp b/lldb/tools/lldb-mi/MICmdArgValNumber.cpp
index 1d8fa632666..ad2df79bf3d 100644
--- a/lldb/tools/lldb-mi/MICmdArgValNumber.cpp
+++ b/lldb/tools/lldb-mi/MICmdArgValNumber.cpp
@@ -11,7 +11,6 @@
#include "MICmdArgContext.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValNumber constructor.
// Type: Method.
// Args: None.
@@ -23,7 +22,6 @@ CMICmdArgValNumber::CMICmdArgValNumber()
m_nNumber(0) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValNumber constructor.
// Type: Method.
// Args: vrArgName - (R) Argument's name to search by.
@@ -45,7 +43,6 @@ CMICmdArgValNumber::CMICmdArgValNumber(
m_nNumberFormatMask(vnNumberFormatMask), m_nNumber(0) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValNumber destructor.
// Type: Overridden.
// Args: None.
@@ -55,7 +52,6 @@ CMICmdArgValNumber::CMICmdArgValNumber(
CMICmdArgValNumber::~CMICmdArgValNumber() {}
//++
-//------------------------------------------------------------------------------------
// Details: Parse the command's argument options string and try to extract the
// value *this
// argument is looking for.
@@ -105,7 +101,6 @@ bool CMICmdArgValNumber::Validate(CMICmdArgContext &vwArgContext) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Examine the string and determine if it is a valid string type
// argument.
// Type: Method.
@@ -134,7 +129,6 @@ bool CMICmdArgValNumber::IsArgNumber(const CMIUtilString &vrTxt) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Extract the thread group number from the thread group argument.
// Type: Method.
// Args: vrTxt - (R) Some text.
@@ -153,7 +147,6 @@ bool CMICmdArgValNumber::ExtractNumber(const CMIUtilString &vrTxt) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the thread group ID found in the argument.
// Type: Method.
// Args: None.
diff --git a/lldb/tools/lldb-mi/MICmdArgValNumber.h b/lldb/tools/lldb-mi/MICmdArgValNumber.h
index ad4347c44ba..23c888e5d80 100644
--- a/lldb/tools/lldb-mi/MICmdArgValNumber.h
+++ b/lldb/tools/lldb-mi/MICmdArgValNumber.h
@@ -28,7 +28,6 @@ class CMICmdArgValNumber : public CMICmdArgValBaseTemplate<MIint64> {
// Enums:
public:
//++
- //---------------------------------------------------------------------------------
// Details: CMICmdArgValNumber needs to know what format of argument to look
// for in
// the command options text.
diff --git a/lldb/tools/lldb-mi/MICmdArgValOptionLong.cpp b/lldb/tools/lldb-mi/MICmdArgValOptionLong.cpp
index 2370c314466..3dc9d40f4b5 100644
--- a/lldb/tools/lldb-mi/MICmdArgValOptionLong.cpp
+++ b/lldb/tools/lldb-mi/MICmdArgValOptionLong.cpp
@@ -11,7 +11,6 @@
#include "MICmdArgContext.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValOptionLong constructor.
// Type: Method.
// Args: None.
@@ -22,7 +21,6 @@ CMICmdArgValOptionLong::CMICmdArgValOptionLong()
: m_nExpectingNOptions(0), m_eExpectingOptionType(eArgValType_invalid) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValOptionLong constructor.
// Type: Method.
// Args: vrArgName - (R) Argument's name to search by.
@@ -40,7 +38,6 @@ CMICmdArgValOptionLong::CMICmdArgValOptionLong(const CMIUtilString &vrArgName,
m_nExpectingNOptions(0), m_eExpectingOptionType(eArgValType_invalid) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValOptionLong constructor.
// Type: Method.
// Args: vrArgName - (R) Argument's name to search by.
@@ -65,7 +62,6 @@ CMICmdArgValOptionLong::CMICmdArgValOptionLong(const CMIUtilString &vrArgName,
m_eExpectingOptionType(veType) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValOptionLong destructor.
// Type: Overridden.
// Args: None.
@@ -78,7 +74,6 @@ CMICmdArgValOptionLong::~CMICmdArgValOptionLong() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Tear down resources used by *this object.
// Type: Method.
// Args: None.
@@ -99,7 +94,6 @@ void CMICmdArgValOptionLong::Destroy() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Parse the command's argument options string and try to extract the
// long
// argument *this argument type is looking for.
@@ -167,7 +161,6 @@ bool CMICmdArgValOptionLong::Validate(CMICmdArgContext &vwArgContext) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Parse the text following *this argument and extract the options the
// values of
// CMICmdArgValListBase::m_eArgType forming argument objects for each
@@ -228,7 +221,6 @@ bool CMICmdArgValOptionLong::ExtractExpectedOptions(CMICmdArgContext &vrwTxt,
}
//++
-//------------------------------------------------------------------------------------
// Details: Examine the string and determine if it is a valid long type option
// argument.
// Long type argument looks like --someLongOption.
@@ -255,7 +247,6 @@ bool CMICmdArgValOptionLong::IsArgLongOption(const CMIUtilString &vrTxt) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Examine the string and determine if it is a valid long type option
// argument.
// Long type argument looks like --someLongOption.
@@ -270,7 +261,6 @@ bool CMICmdArgValOptionLong::IsArgOptionCorrect(
}
//++
-//------------------------------------------------------------------------------------
// Details: Does the argument name of the argument being parsed ATM match the
// name of
// *this argument object.
@@ -285,7 +275,6 @@ bool CMICmdArgValOptionLong::ArgNameMatch(const CMIUtilString &vrTxt) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the list of CMICmdArgValBase derived option objects found
// following
// *this long option argument. For example "list-thread-groups [
diff --git a/lldb/tools/lldb-mi/MICmdArgValOptionLong.h b/lldb/tools/lldb-mi/MICmdArgValOptionLong.h
index cda9ce0de01..24082973368 100644
--- a/lldb/tools/lldb-mi/MICmdArgValOptionLong.h
+++ b/lldb/tools/lldb-mi/MICmdArgValOptionLong.h
@@ -78,7 +78,6 @@ private:
};
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the first argument or option value from the list of 1 or
// more options
// parsed from the command's options string.
diff --git a/lldb/tools/lldb-mi/MICmdArgValOptionShort.cpp b/lldb/tools/lldb-mi/MICmdArgValOptionShort.cpp
index 8f255843365..7b7116cd5f1 100644
--- a/lldb/tools/lldb-mi/MICmdArgValOptionShort.cpp
+++ b/lldb/tools/lldb-mi/MICmdArgValOptionShort.cpp
@@ -11,7 +11,6 @@
#include "MICmdArgContext.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValOptionShort constructor.
// Type: Method.
// Args: None.
@@ -21,7 +20,6 @@
CMICmdArgValOptionShort::CMICmdArgValOptionShort() {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValOptionShort constructor.
// Type: Method.
// Args: vrArgName - (R) Argument's name to search by.
@@ -38,7 +36,6 @@ CMICmdArgValOptionShort::CMICmdArgValOptionShort(const CMIUtilString &vrArgName,
: CMICmdArgValOptionLong(vrArgName, vbMandatory, vbHandleByCmd) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValOptionLong constructor.
// Type: Method.
// Args: vrArgName - (R) Argument's name to search by.
@@ -61,7 +58,6 @@ CMICmdArgValOptionShort::CMICmdArgValOptionShort(
vnExpectingNOptions) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValOptionShort destructor.
// Type: Overridden.
// Args: None.
@@ -71,7 +67,6 @@ CMICmdArgValOptionShort::CMICmdArgValOptionShort(
CMICmdArgValOptionShort::~CMICmdArgValOptionShort() {}
//++
-//------------------------------------------------------------------------------------
// Details: Examine the string and determine if it is a valid short type option
// argument.
// Type: Method.
@@ -98,7 +93,6 @@ bool CMICmdArgValOptionShort::IsArgShortOption(
}
//++
-//------------------------------------------------------------------------------------
// Details: Examine the string and determine if it is a valid short type option
// argument.
// Long type argument looks like -f some short option.
@@ -113,7 +107,6 @@ bool CMICmdArgValOptionShort::IsArgOptionCorrect(
}
//++
-//------------------------------------------------------------------------------------
// Details: Does the argument name of the argument being parsed ATM match the
// name of
// *this argument object.
diff --git a/lldb/tools/lldb-mi/MICmdArgValPrintValues.cpp b/lldb/tools/lldb-mi/MICmdArgValPrintValues.cpp
index 1bb66d039df..a2ce4524737 100644
--- a/lldb/tools/lldb-mi/MICmdArgValPrintValues.cpp
+++ b/lldb/tools/lldb-mi/MICmdArgValPrintValues.cpp
@@ -11,7 +11,6 @@
#include "MICmdArgContext.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValPrintValues constructor.
// Type: Method.
// Args: None.
@@ -21,7 +20,6 @@
CMICmdArgValPrintValues::CMICmdArgValPrintValues() : m_nPrintValues(0) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValPrintValues constructor.
// Type: Method.
// Args: vrArgName - (R) Argument's name to search by.
@@ -39,7 +37,6 @@ CMICmdArgValPrintValues::CMICmdArgValPrintValues(const CMIUtilString &vrArgName,
m_nPrintValues(0) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValPrintValues destructor.
// Type: Overridden.
// Args: None.
@@ -49,7 +46,6 @@ CMICmdArgValPrintValues::CMICmdArgValPrintValues(const CMIUtilString &vrArgName,
CMICmdArgValPrintValues::~CMICmdArgValPrintValues() {}
//++
-//------------------------------------------------------------------------------------
// Details: Parse the command's argument options string and try to extract the
// value *this
// argument is looking for.
@@ -76,7 +72,6 @@ bool CMICmdArgValPrintValues::Validate(CMICmdArgContext &vwArgContext) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Examine the string and determine if it is a valid string type
// argument.
// Type: Method.
@@ -95,7 +90,6 @@ bool CMICmdArgValPrintValues::IsArgPrintValues(
}
//++
-//------------------------------------------------------------------------------------
// Details: Extract the print-values from the print-values argument.
// Type: Method.
// Args: vrTxt - (R) Some text.
@@ -120,7 +114,6 @@ bool CMICmdArgValPrintValues::ExtractPrintValues(const CMIUtilString &vrTxt) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the print-values found in the argument.
// Type: Method.
// Args: None.
diff --git a/lldb/tools/lldb-mi/MICmdArgValString.cpp b/lldb/tools/lldb-mi/MICmdArgValString.cpp
index 1fda3cb4ef5..bd105bc289b 100644
--- a/lldb/tools/lldb-mi/MICmdArgValString.cpp
+++ b/lldb/tools/lldb-mi/MICmdArgValString.cpp
@@ -11,7 +11,6 @@
#include "MICmdArgContext.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValString constructor.
// Type: Method.
// Args: None.
@@ -23,7 +22,6 @@ CMICmdArgValString::CMICmdArgValString()
m_bHandleDirPaths(false), m_bHandleAnything(false) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValString constructor.
// Type: Method.
// Args: vbAnything - (R) True = Parse a string and accept anything, false =
@@ -36,7 +34,6 @@ CMICmdArgValString::CMICmdArgValString(const bool vbAnything)
m_bHandleDirPaths(false), m_bHandleAnything(vbAnything) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValString constructor.
// Type: Method.
// Args: vbHandleQuotes - (R) True = Parse a string surrounded by quotes
@@ -58,7 +55,6 @@ CMICmdArgValString::CMICmdArgValString(const bool vbHandleQuotes,
m_bHandleDirPaths(vbHandleDirPaths), m_bHandleAnything(false) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValString constructor.
// Type: Method.
// Args: vrArgName - (R) Argument's name to search by.
@@ -85,7 +81,6 @@ CMICmdArgValString::CMICmdArgValString(const CMIUtilString &vrArgName,
m_bHandleDirPaths(false), m_bHandleAnything(false) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValString constructor.
// Type: Method.
// Args: vrArgName - (R) Argument's name to search by.
@@ -115,7 +110,6 @@ CMICmdArgValString::CMICmdArgValString(const CMIUtilString &vrArgName,
m_bHandleDirPaths(vbHandleDirPaths), m_bHandleAnything(false) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValString destructor.
// Type: Overridden.
// Args: None.
@@ -125,7 +119,6 @@ CMICmdArgValString::CMICmdArgValString(const CMIUtilString &vrArgName,
CMICmdArgValString::~CMICmdArgValString() {}
//++
-//------------------------------------------------------------------------------------
// Details: Parse the command's argument options string and try to extract the
// value *this
// argument is looking for.
@@ -146,7 +139,6 @@ bool CMICmdArgValString::Validate(CMICmdArgContext &vrwArgContext) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Parse the command's argument options string and try to extract only
// the next
// word delimited by the next space.
@@ -180,7 +172,6 @@ bool CMICmdArgValString::ValidateSingleText(CMICmdArgContext &vrwArgContext) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Parse the command's argument options string and try to extract all
// the words
// between quotes then delimited by the next space.
@@ -212,7 +203,6 @@ bool CMICmdArgValString::ValidateQuotedText(CMICmdArgContext &vrwArgContext) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Examine the string and determine if it is a valid string type
// argument.
// Type: Method.
@@ -232,7 +222,6 @@ bool CMICmdArgValString::IsStringArg(const CMIUtilString &vrTxt) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Examine the string and determine if it is a valid string type
// argument or
// option value. If the string looks like a long option, short option,
@@ -275,7 +264,6 @@ bool CMICmdArgValString::IsStringArgSingleText(
}
//++
-//------------------------------------------------------------------------------------
// Details: Examine the string and determine if it is a valid string type
// argument.
// Take into account quotes surrounding the text. Note this function
@@ -326,7 +314,6 @@ bool CMICmdArgValString::IsStringArgQuotedText(
}
//++
-//------------------------------------------------------------------------------------
// Details: Examine the string and determine if it is a valid string type
// argument.
// Take into account quotes surrounding the text. Take into account
@@ -365,7 +352,6 @@ bool CMICmdArgValString::IsStringArgQuotedTextEmbedded(
}
//++
-//------------------------------------------------------------------------------------
// Details: Examine the string and determine if it is a valid string type
// argument.
// Take into account quotes surrounding the text. Take into account
diff --git a/lldb/tools/lldb-mi/MICmdArgValThreadGrp.cpp b/lldb/tools/lldb-mi/MICmdArgValThreadGrp.cpp
index 00f90ce2056..201d516525f 100644
--- a/lldb/tools/lldb-mi/MICmdArgValThreadGrp.cpp
+++ b/lldb/tools/lldb-mi/MICmdArgValThreadGrp.cpp
@@ -11,7 +11,6 @@
#include "MICmdArgContext.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValThreadGrp constructor.
// Type: Method.
// Args: None.
@@ -21,7 +20,6 @@
CMICmdArgValThreadGrp::CMICmdArgValThreadGrp() : m_nThreadGrp(0) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValThreadGrp constructor.
// Type: Method.
// Args: vrArgName - (R) Argument's name to search by.
@@ -39,7 +37,6 @@ CMICmdArgValThreadGrp::CMICmdArgValThreadGrp(const CMIUtilString &vrArgName,
m_nThreadGrp(0) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdArgValThreadGrp destructor.
// Type: Overridden.
// Args: None.
@@ -49,7 +46,6 @@ CMICmdArgValThreadGrp::CMICmdArgValThreadGrp(const CMIUtilString &vrArgName,
CMICmdArgValThreadGrp::~CMICmdArgValThreadGrp() {}
//++
-//------------------------------------------------------------------------------------
// Details: Parse the command's argument options string and try to extract the
// value *this
// argument is looking for.
@@ -99,7 +95,6 @@ bool CMICmdArgValThreadGrp::Validate(CMICmdArgContext &vwArgContext) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Examine the string and determine if it is a valid string type
// argument.
// Type: Method.
@@ -118,7 +113,6 @@ bool CMICmdArgValThreadGrp::IsArgThreadGrp(const CMIUtilString &vrTxt) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Extract the thread group number from the thread group argument.
// Type: Method.
// Args: vrTxt - (R) Some text.
@@ -138,7 +132,6 @@ bool CMICmdArgValThreadGrp::ExtractNumber(const CMIUtilString &vrTxt) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the thread group ID found in the argument.
// Type: Method.
// Args: None.
diff --git a/lldb/tools/lldb-mi/MICmdBase.cpp b/lldb/tools/lldb-mi/MICmdBase.cpp
index 8bb2107fd02..df36cfe8642 100644
--- a/lldb/tools/lldb-mi/MICmdBase.cpp
+++ b/lldb/tools/lldb-mi/MICmdBase.cpp
@@ -14,7 +14,6 @@
#include "MICmnMIValueConst.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdBase constructor.
// Type: Method.
// Args: None.
@@ -30,7 +29,6 @@ CMICmdBase::CMICmdBase()
m_ThreadArgMandatory(false), m_FrameArgMandatory(false) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdBase destructor.
// Type: Overrideable.
// Args: None.
@@ -40,7 +38,6 @@ CMICmdBase::CMICmdBase()
CMICmdBase::~CMICmdBase() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function.
// Type: Overridden.
// Args: None.
@@ -50,7 +47,6 @@ CMICmdBase::~CMICmdBase() {}
const SMICmdData &CMICmdBase::GetCmdData() const { return m_cmdData; }
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function.
// Type: Overridden.
// Args: None.
@@ -63,7 +59,6 @@ const CMIUtilString &CMICmdBase::GetErrorDescription() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: The CMICmdFactory requires this function. Retrieve the command and
// argument
// options description string.
@@ -75,7 +70,6 @@ const CMIUtilString &CMICmdBase::GetErrorDescription() const {
const CMIUtilString &CMICmdBase::GetMiCmd() const { return m_strMiCmd; }
//++
-//------------------------------------------------------------------------------------
// Details: Help parse the arguments that are common to all commands.
// Args: None.
// Return: None
@@ -95,7 +89,6 @@ void CMICmdBase::AddCommonArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. A command must be given working
// data and
// provide data about its status or provide information to other
@@ -110,7 +103,6 @@ void CMICmdBase::SetCmdData(const SMICmdData &vCmdData) {
}
//++
-//------------------------------------------------------------------------------------
// Details: The command factory requires this function. The factory calls this
// function
// so it can obtain *this command's creation function.
@@ -124,7 +116,6 @@ CMICmdFactory::CmdCreatorFnPtr CMICmdBase::GetCmdCreatorFn() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: If a command is an event type (has callbacks registered with
// SBListener) it
// needs to inform the Invoker that it has finished its work so that
@@ -143,7 +134,6 @@ void CMICmdBase::CmdFinishedTellInvoker() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Returns the final version of the MI result record built up in the
// command's
// Acknowledge function. The one line text of MI result.
@@ -157,7 +147,6 @@ const CMIUtilString &CMICmdBase::GetMIResultRecord() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve from the command additional MI result to its 1 line
// response.
// Because of using LLDB additional 'fake'/hack output is sometimes
@@ -173,7 +162,6 @@ const CMIUtilString &CMICmdBase::GetMIResultRecordExtra() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Hss *this command got additional MI result to its 1 line response.
// Because of using LLDB additional 'fake'/hack output is sometimes
// required to
@@ -189,7 +177,6 @@ bool CMICmdBase::HasMIResultRecordExtra() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Short cut function to enter error information into the command's
// metadata
// object and set the command's error status.
@@ -212,7 +199,6 @@ void CMICmdBase::SetError(const CMIUtilString &rErrMsg) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Short cut function to check MI command's execute status and
// set an error in case of failure.
// Type: Method.
@@ -236,7 +222,6 @@ bool CMICmdBase::HandleSBError(const lldb::SBError &error,
}
//++
-//------------------------------------------------------------------------------------
// Details: Short cut function to check MI command's execute status and
// call specified handler function for success case.
// Type: Method.
@@ -253,7 +238,6 @@ bool CMICmdBase::HandleSBErrorWithSuccess(
}
//++
-//------------------------------------------------------------------------------------
// Details: Short cut function to check MI command's execute status and
// call specified handler function for error case.
// Type: Method.
@@ -270,7 +254,6 @@ bool CMICmdBase::HandleSBErrorWithFailure(
}
//++
-//------------------------------------------------------------------------------------
// Details: Ask a command to provide its unique identifier.
// Type: Method.
// Args: A unique identifier for this command class.
@@ -286,7 +269,6 @@ MIuint CMICmdBase::GetGUID() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -303,7 +285,6 @@ bool CMICmdBase::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Having previously given CMICmdArgSet m_setCmdArgs all the argument
// or option
// definitions for the command to handle proceed to parse and validate
@@ -330,7 +311,6 @@ bool CMICmdBase::ParseValidateCmdOptions() {
}
//++
-//------------------------------------------------------------------------------------
// Details: If the MI Driver is not operating via a client i.e. Eclipse but say
// operating
// on a executable passed in as a argument to the drive then what
diff --git a/lldb/tools/lldb-mi/MICmdBase.h b/lldb/tools/lldb-mi/MICmdBase.h
index 72d73c346b2..4e32ed6a526 100644
--- a/lldb/tools/lldb-mi/MICmdBase.h
+++ b/lldb/tools/lldb-mi/MICmdBase.h
@@ -136,7 +136,6 @@ protected:
};
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the command argument or option object pointer so that it
// can be
// examined. If the option found and valid get the value (number,
@@ -170,7 +169,6 @@ T *CMICmdBase::GetOption(const CMIUtilString &vStrOptionName) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the command argument or option object pointer using
// template function
// CMICmdBase::GetOption(). Should the argument (by name) not be found
diff --git a/lldb/tools/lldb-mi/MICmdCmd.cpp b/lldb/tools/lldb-mi/MICmdCmd.cpp
index a4030200fb3..081cff6fa51 100644
--- a/lldb/tools/lldb-mi/MICmdCmd.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmd.cpp
@@ -14,7 +14,6 @@
#include "MICmdCmd.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdEnablePrettyPrinting constructor.
// Type: Method.
// Args: None.
@@ -30,7 +29,6 @@ CMICmdCmdEnablePrettyPrinting::CMICmdCmdEnablePrettyPrinting() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdEnablePrettyPrinting destructor.
// Type: Overrideable.
// Args: None.
@@ -40,7 +38,6 @@ CMICmdCmdEnablePrettyPrinting::CMICmdCmdEnablePrettyPrinting() {
CMICmdCmdEnablePrettyPrinting::~CMICmdCmdEnablePrettyPrinting() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -57,7 +54,6 @@ bool CMICmdCmdEnablePrettyPrinting::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -79,7 +75,6 @@ bool CMICmdCmdEnablePrettyPrinting::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -92,12 +87,8 @@ CMICmdBase *CMICmdCmdEnablePrettyPrinting::CreateSelf() {
return new CMICmdCmdEnablePrettyPrinting();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdSource constructor.
// Type: Method.
// Args: None.
@@ -113,7 +104,6 @@ CMICmdCmdSource::CMICmdCmdSource() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdSource destructor.
// Type: Overrideable.
// Args: None.
@@ -123,7 +113,6 @@ CMICmdCmdSource::CMICmdCmdSource() {
CMICmdCmdSource::~CMICmdCmdSource() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -140,7 +129,6 @@ bool CMICmdCmdSource::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -159,7 +147,6 @@ bool CMICmdCmdSource::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
diff --git a/lldb/tools/lldb-mi/MICmdCmdBreak.cpp b/lldb/tools/lldb-mi/MICmdCmdBreak.cpp
index 98feea85e3c..1cd0bacf51d 100644
--- a/lldb/tools/lldb-mi/MICmdCmdBreak.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdBreak.cpp
@@ -33,7 +33,6 @@
#include "MICmnStreamStdout.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdBreakInsert constructor.
// Type: Method.
// Args: None.
@@ -57,7 +56,6 @@ CMICmdCmdBreakInsert::CMICmdCmdBreakInsert()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdBreakInsert destructor.
// Type: Overrideable.
// Args: None.
@@ -67,7 +65,6 @@ CMICmdCmdBreakInsert::CMICmdCmdBreakInsert()
CMICmdCmdBreakInsert::~CMICmdCmdBreakInsert() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -104,7 +101,6 @@ bool CMICmdCmdBreakInsert::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Helper function for CMICmdCmdBreakInsert::Execute().
//
// Given a string, return the position of the ':' separator in 'file:func'
@@ -122,7 +118,6 @@ static size_t findFileSeparatorPos(const std::string &x) {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -323,7 +318,6 @@ bool CMICmdCmdBreakInsert::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -359,7 +353,6 @@ bool CMICmdCmdBreakInsert::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -372,12 +365,8 @@ CMICmdBase *CMICmdCmdBreakInsert::CreateSelf() {
return new CMICmdCmdBreakInsert();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdBreakDelete constructor.
// Type: Method.
// Args: None.
@@ -394,7 +383,6 @@ CMICmdCmdBreakDelete::CMICmdCmdBreakDelete()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdBreakDelete destructor.
// Type: Overrideable.
// Args: None.
@@ -404,7 +392,6 @@ CMICmdCmdBreakDelete::CMICmdCmdBreakDelete()
CMICmdCmdBreakDelete::~CMICmdCmdBreakDelete() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -422,7 +409,6 @@ bool CMICmdCmdBreakDelete::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -461,7 +447,6 @@ bool CMICmdCmdBreakDelete::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -480,7 +465,6 @@ bool CMICmdCmdBreakDelete::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -493,12 +477,8 @@ CMICmdBase *CMICmdCmdBreakDelete::CreateSelf() {
return new CMICmdCmdBreakDelete();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdBreakDisable constructor.
// Type: Method.
// Args: None.
@@ -516,7 +496,6 @@ CMICmdCmdBreakDisable::CMICmdCmdBreakDisable()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdBreakDisable destructor.
// Type: Overrideable.
// Args: None.
@@ -526,7 +505,6 @@ CMICmdCmdBreakDisable::CMICmdCmdBreakDisable()
CMICmdCmdBreakDisable::~CMICmdCmdBreakDisable() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -544,7 +522,6 @@ bool CMICmdCmdBreakDisable::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -581,7 +558,6 @@ bool CMICmdCmdBreakDisable::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -612,7 +588,6 @@ bool CMICmdCmdBreakDisable::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -625,12 +600,8 @@ CMICmdBase *CMICmdCmdBreakDisable::CreateSelf() {
return new CMICmdCmdBreakDisable();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdBreakEnable constructor.
// Type: Method.
// Args: None.
@@ -648,7 +619,6 @@ CMICmdCmdBreakEnable::CMICmdCmdBreakEnable()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdBreakEnable destructor.
// Type: Overrideable.
// Args: None.
@@ -658,7 +628,6 @@ CMICmdCmdBreakEnable::CMICmdCmdBreakEnable()
CMICmdCmdBreakEnable::~CMICmdCmdBreakEnable() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -676,7 +645,6 @@ bool CMICmdCmdBreakEnable::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -713,7 +681,6 @@ bool CMICmdCmdBreakEnable::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -744,7 +711,6 @@ bool CMICmdCmdBreakEnable::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -757,12 +723,8 @@ CMICmdBase *CMICmdCmdBreakEnable::CreateSelf() {
return new CMICmdCmdBreakEnable();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdBreakAfter constructor.
// Type: Method.
// Args: None.
@@ -780,7 +742,6 @@ CMICmdCmdBreakAfter::CMICmdCmdBreakAfter()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdBreakAfter destructor.
// Type: Overrideable.
// Args: None.
@@ -790,7 +751,6 @@ CMICmdCmdBreakAfter::CMICmdCmdBreakAfter()
CMICmdCmdBreakAfter::~CMICmdCmdBreakAfter() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -808,7 +768,6 @@ bool CMICmdCmdBreakAfter::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -854,7 +813,6 @@ bool CMICmdCmdBreakAfter::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -873,7 +831,6 @@ bool CMICmdCmdBreakAfter::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -886,12 +843,8 @@ CMICmdBase *CMICmdCmdBreakAfter::CreateSelf() {
return new CMICmdCmdBreakAfter();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdBreakCondition constructor.
// Type: Method.
// Args: None.
@@ -914,7 +867,6 @@ CMICmdCmdBreakCondition::CMICmdCmdBreakCondition()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdBreakCondition destructor.
// Type: Overrideable.
// Args: None.
@@ -924,7 +876,6 @@ CMICmdCmdBreakCondition::CMICmdCmdBreakCondition()
CMICmdCmdBreakCondition::~CMICmdCmdBreakCondition() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -946,7 +897,6 @@ bool CMICmdCmdBreakCondition::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -993,7 +943,6 @@ bool CMICmdCmdBreakCondition::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -1012,7 +961,6 @@ bool CMICmdCmdBreakCondition::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -1026,7 +974,6 @@ CMICmdBase *CMICmdCmdBreakCondition::CreateSelf() {
}
//++
-//------------------------------------------------------------------------------------
// Details: A breakpoint expression can be passed to *this command as:
// a single string i.e. '2' -> ok.
// a quoted string i.e. "a > 100" -> ok
diff --git a/lldb/tools/lldb-mi/MICmdCmdData.cpp b/lldb/tools/lldb-mi/MICmdCmdData.cpp
index afc68a877d1..ae54b958d84 100644
--- a/lldb/tools/lldb-mi/MICmdCmdData.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdData.cpp
@@ -52,7 +52,6 @@ CMIUtilString IntToHexAddrStr(uint32_t number) {
} // namespace
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataEvaluateExpression constructor.
// Type: Method.
// Args: None.
@@ -71,7 +70,6 @@ CMICmdCmdDataEvaluateExpression::CMICmdCmdDataEvaluateExpression()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataEvaluateExpression destructor.
// Type: Overrideable.
// Args: None.
@@ -81,7 +79,6 @@ CMICmdCmdDataEvaluateExpression::CMICmdCmdDataEvaluateExpression()
CMICmdCmdDataEvaluateExpression::~CMICmdCmdDataEvaluateExpression() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -98,7 +95,6 @@ bool CMICmdCmdDataEvaluateExpression::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -150,7 +146,6 @@ bool CMICmdCmdDataEvaluateExpression::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -205,7 +200,6 @@ bool CMICmdCmdDataEvaluateExpression::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -219,7 +213,6 @@ CMICmdBase *CMICmdCmdDataEvaluateExpression::CreateSelf() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Examine the expression string to see if it contains invalid
// characters.
// Type: Method.
@@ -241,12 +234,8 @@ bool CMICmdCmdDataEvaluateExpression::HaveInvalidCharacterInExpression(
return bFoundInvalidCharInExpression;
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataDisassemble constructor.
// Type: Method.
// Args: None.
@@ -264,7 +253,6 @@ CMICmdCmdDataDisassemble::CMICmdCmdDataDisassemble()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataDisassemble destructor.
// Type: Overrideable.
// Args: None.
@@ -274,7 +262,6 @@ CMICmdCmdDataDisassemble::CMICmdCmdDataDisassemble()
CMICmdCmdDataDisassemble::~CMICmdCmdDataDisassemble() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -296,7 +283,6 @@ bool CMICmdCmdDataDisassemble::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -439,7 +425,6 @@ bool CMICmdCmdDataDisassemble::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -460,7 +445,6 @@ bool CMICmdCmdDataDisassemble::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -473,12 +457,8 @@ CMICmdBase *CMICmdCmdDataDisassemble::CreateSelf() {
return new CMICmdCmdDataDisassemble();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataReadMemoryBytes constructor.
// Type: Method.
// Args: None.
@@ -497,7 +477,6 @@ CMICmdCmdDataReadMemoryBytes::CMICmdCmdDataReadMemoryBytes()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataReadMemoryBytes destructor.
// Type: Overrideable.
// Args: None.
@@ -512,7 +491,6 @@ CMICmdCmdDataReadMemoryBytes::~CMICmdCmdDataReadMemoryBytes() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -533,7 +511,6 @@ bool CMICmdCmdDataReadMemoryBytes::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -663,7 +640,6 @@ bool CMICmdCmdDataReadMemoryBytes::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -711,7 +687,6 @@ bool CMICmdCmdDataReadMemoryBytes::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -724,12 +699,8 @@ CMICmdBase *CMICmdCmdDataReadMemoryBytes::CreateSelf() {
return new CMICmdCmdDataReadMemoryBytes();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataReadMemory constructor.
// Type: Method.
// Args: None.
@@ -745,7 +716,6 @@ CMICmdCmdDataReadMemory::CMICmdCmdDataReadMemory() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataReadMemory destructor.
// Type: Overrideable.
// Args: None.
@@ -755,7 +725,6 @@ CMICmdCmdDataReadMemory::CMICmdCmdDataReadMemory() {
CMICmdCmdDataReadMemory::~CMICmdCmdDataReadMemory() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -772,7 +741,6 @@ bool CMICmdCmdDataReadMemory::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -797,7 +765,6 @@ bool CMICmdCmdDataReadMemory::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -810,12 +777,8 @@ CMICmdBase *CMICmdCmdDataReadMemory::CreateSelf() {
return new CMICmdCmdDataReadMemory();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataListRegisterNames constructor.
// Type: Method.
// Args: None.
@@ -832,7 +795,6 @@ CMICmdCmdDataListRegisterNames::CMICmdCmdDataListRegisterNames()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataReadMemoryBytes destructor.
// Type: Overrideable.
// Args: None.
@@ -842,7 +804,6 @@ CMICmdCmdDataListRegisterNames::CMICmdCmdDataListRegisterNames()
CMICmdCmdDataListRegisterNames::~CMICmdCmdDataListRegisterNames() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -860,7 +821,6 @@ bool CMICmdCmdDataListRegisterNames::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -925,7 +885,6 @@ bool CMICmdCmdDataListRegisterNames::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -946,7 +905,6 @@ bool CMICmdCmdDataListRegisterNames::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -960,7 +918,6 @@ CMICmdBase *CMICmdCmdDataListRegisterNames::CreateSelf() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -994,12 +951,8 @@ CMICmdCmdDataListRegisterNames::GetRegister(const MIuint vRegisterIndex) const {
return lldb::SBValue();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataListRegisterValues constructor.
// Type: Method.
// Args: None.
@@ -1017,7 +970,6 @@ CMICmdCmdDataListRegisterValues::CMICmdCmdDataListRegisterValues()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataListRegisterValues destructor.
// Type: Overrideable.
// Args: None.
@@ -1027,7 +979,6 @@ CMICmdCmdDataListRegisterValues::CMICmdCmdDataListRegisterValues()
CMICmdCmdDataListRegisterValues::~CMICmdCmdDataListRegisterValues() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -1050,7 +1001,6 @@ bool CMICmdCmdDataListRegisterValues::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -1132,7 +1082,6 @@ bool CMICmdCmdDataListRegisterValues::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -1153,7 +1102,6 @@ bool CMICmdCmdDataListRegisterValues::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -1167,7 +1115,6 @@ CMICmdBase *CMICmdCmdDataListRegisterValues::CreateSelf() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -1202,7 +1149,6 @@ lldb::SBValue CMICmdCmdDataListRegisterValues::GetRegister(
}
//++
-//------------------------------------------------------------------------------------
// Details: Adds the register value to the output list.
// Type: Method.
// Args: Value of the register, its index and output format.
@@ -1224,12 +1170,8 @@ void CMICmdCmdDataListRegisterValues::AddToOutput(
m_miValueList.Add(miValueTuple);
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataListRegisterChanged constructor.
// Type: Method.
// Args: None.
@@ -1245,7 +1187,6 @@ CMICmdCmdDataListRegisterChanged::CMICmdCmdDataListRegisterChanged() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataListRegisterChanged destructor.
// Type: Overrideable.
// Args: None.
@@ -1255,7 +1196,6 @@ CMICmdCmdDataListRegisterChanged::CMICmdCmdDataListRegisterChanged() {
CMICmdCmdDataListRegisterChanged::~CMICmdCmdDataListRegisterChanged() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -1273,7 +1213,6 @@ bool CMICmdCmdDataListRegisterChanged::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -1295,7 +1234,6 @@ bool CMICmdCmdDataListRegisterChanged::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -1308,12 +1246,8 @@ CMICmdBase *CMICmdCmdDataListRegisterChanged::CreateSelf() {
return new CMICmdCmdDataListRegisterChanged();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataWriteMemoryBytes constructor.
// Type: Method.
// Args: None.
@@ -1331,7 +1265,6 @@ CMICmdCmdDataWriteMemoryBytes::CMICmdCmdDataWriteMemoryBytes()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataWriteMemoryBytes destructor.
// Type: Overrideable.
// Args: None.
@@ -1341,7 +1274,6 @@ CMICmdCmdDataWriteMemoryBytes::CMICmdCmdDataWriteMemoryBytes()
CMICmdCmdDataWriteMemoryBytes::~CMICmdCmdDataWriteMemoryBytes() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -1362,7 +1294,6 @@ bool CMICmdCmdDataWriteMemoryBytes::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -1387,7 +1318,6 @@ bool CMICmdCmdDataWriteMemoryBytes::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -1409,7 +1339,6 @@ bool CMICmdCmdDataWriteMemoryBytes::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -1422,12 +1351,8 @@ CMICmdBase *CMICmdCmdDataWriteMemoryBytes::CreateSelf() {
return new CMICmdCmdDataWriteMemoryBytes();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataWriteMemory constructor.
// Type: Method.
// Args: None.
@@ -1447,7 +1372,6 @@ CMICmdCmdDataWriteMemory::CMICmdCmdDataWriteMemory()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataWriteMemory destructor.
// Type: Overrideable.
// Args: None.
@@ -1462,7 +1386,6 @@ CMICmdCmdDataWriteMemory::~CMICmdCmdDataWriteMemory() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -1484,7 +1407,6 @@ bool CMICmdCmdDataWriteMemory::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -1548,7 +1470,6 @@ bool CMICmdCmdDataWriteMemory::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -1567,7 +1488,6 @@ bool CMICmdCmdDataWriteMemory::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -1580,12 +1500,8 @@ CMICmdBase *CMICmdCmdDataWriteMemory::CreateSelf() {
return new CMICmdCmdDataWriteMemory();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataInfoLine constructor.
// Type: Method.
// Args: None.
@@ -1604,7 +1520,6 @@ CMICmdCmdDataInfoLine::CMICmdCmdDataInfoLine()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdDataInfoLine destructor.
// Type: Overrideable.
// Args: None.
@@ -1614,7 +1529,6 @@ CMICmdCmdDataInfoLine::CMICmdCmdDataInfoLine()
CMICmdCmdDataInfoLine::~CMICmdCmdDataInfoLine() = default;
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -1630,7 +1544,6 @@ bool CMICmdCmdDataInfoLine::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -1725,7 +1638,6 @@ bool CMICmdCmdDataInfoLine::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -1741,7 +1653,6 @@ bool CMICmdCmdDataInfoLine::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
diff --git a/lldb/tools/lldb-mi/MICmdCmdEnviro.cpp b/lldb/tools/lldb-mi/MICmdCmdEnviro.cpp
index 71fa6186583..e7a92f3c9e8 100644
--- a/lldb/tools/lldb-mi/MICmdCmdEnviro.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdEnviro.cpp
@@ -17,7 +17,6 @@
#include "MICmnMIValueConst.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdEnvironmentCd constructor.
// Type: Method.
// Args: None.
@@ -34,7 +33,6 @@ CMICmdCmdEnvironmentCd::CMICmdCmdEnvironmentCd()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdEnvironmentCd destructor.
// Type: Overrideable.
// Args: None.
@@ -44,7 +42,6 @@ CMICmdCmdEnvironmentCd::CMICmdCmdEnvironmentCd()
CMICmdCmdEnvironmentCd::~CMICmdCmdEnvironmentCd() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -61,7 +58,6 @@ bool CMICmdCmdEnvironmentCd::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -104,7 +100,6 @@ bool CMICmdCmdEnvironmentCd::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -137,7 +132,6 @@ bool CMICmdCmdEnvironmentCd::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
diff --git a/lldb/tools/lldb-mi/MICmdCmdExec.cpp b/lldb/tools/lldb-mi/MICmdCmdExec.cpp
index 960c0bb3273..fd13a919242 100644
--- a/lldb/tools/lldb-mi/MICmdCmdExec.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdExec.cpp
@@ -41,7 +41,6 @@
#include "MIDriver.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecRun constructor.
// Type: Method.
// Args: None.
@@ -57,7 +56,6 @@ CMICmdCmdExecRun::CMICmdCmdExecRun() : m_constStrArgStart("start") {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecRun destructor.
// Type: Overrideable.
// Args: None.
@@ -67,7 +65,6 @@ CMICmdCmdExecRun::CMICmdCmdExecRun() : m_constStrArgStart("start") {
CMICmdCmdExecRun::~CMICmdCmdExecRun() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. It parses the command line
// options'
// arguments to extract values for each of those arguments.
@@ -85,7 +82,6 @@ bool CMICmdCmdExecRun::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -147,7 +143,6 @@ bool CMICmdCmdExecRun::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -181,7 +176,6 @@ bool CMICmdCmdExecRun::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -192,12 +186,8 @@ bool CMICmdCmdExecRun::Acknowledge() {
//--
CMICmdBase *CMICmdCmdExecRun::CreateSelf() { return new CMICmdCmdExecRun(); }
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecContinue constructor.
// Type: Method.
// Args: None.
@@ -213,7 +203,6 @@ CMICmdCmdExecContinue::CMICmdCmdExecContinue() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecContinue destructor.
// Type: Overrideable.
// Args: None.
@@ -223,7 +212,6 @@ CMICmdCmdExecContinue::CMICmdCmdExecContinue() {
CMICmdCmdExecContinue::~CMICmdCmdExecContinue() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -253,7 +241,6 @@ bool CMICmdCmdExecContinue::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -270,7 +257,6 @@ bool CMICmdCmdExecContinue::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -283,12 +269,8 @@ CMICmdBase *CMICmdCmdExecContinue::CreateSelf() {
return new CMICmdCmdExecContinue();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecNext constructor.
// Type: Method.
// Args: None.
@@ -304,7 +286,6 @@ CMICmdCmdExecNext::CMICmdCmdExecNext() : m_constStrArgNumber("number") {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecNext destructor.
// Type: Overrideable.
// Args: None.
@@ -314,7 +295,6 @@ CMICmdCmdExecNext::CMICmdCmdExecNext() : m_constStrArgNumber("number") {
CMICmdCmdExecNext::~CMICmdCmdExecNext() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -330,7 +310,6 @@ bool CMICmdCmdExecNext::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -375,7 +354,6 @@ bool CMICmdCmdExecNext::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -392,7 +370,6 @@ bool CMICmdCmdExecNext::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -403,12 +380,8 @@ bool CMICmdCmdExecNext::Acknowledge() {
//--
CMICmdBase *CMICmdCmdExecNext::CreateSelf() { return new CMICmdCmdExecNext(); }
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecStep constructor.
// Type: Method.
// Args: None.
@@ -424,7 +397,6 @@ CMICmdCmdExecStep::CMICmdCmdExecStep() : m_constStrArgNumber("number") {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecStep destructor.
// Type: Overrideable.
// Args: None.
@@ -434,7 +406,6 @@ CMICmdCmdExecStep::CMICmdCmdExecStep() : m_constStrArgNumber("number") {
CMICmdCmdExecStep::~CMICmdCmdExecStep() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -450,7 +421,6 @@ bool CMICmdCmdExecStep::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -496,7 +466,6 @@ bool CMICmdCmdExecStep::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -513,7 +482,6 @@ bool CMICmdCmdExecStep::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -524,12 +492,8 @@ bool CMICmdCmdExecStep::Acknowledge() {
//--
CMICmdBase *CMICmdCmdExecStep::CreateSelf() { return new CMICmdCmdExecStep(); }
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecNextInstruction constructor.
// Type: Method.
// Args: None.
@@ -546,7 +510,6 @@ CMICmdCmdExecNextInstruction::CMICmdCmdExecNextInstruction()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecNextInstruction destructor.
// Type: Overrideable.
// Args: None.
@@ -556,7 +519,6 @@ CMICmdCmdExecNextInstruction::CMICmdCmdExecNextInstruction()
CMICmdCmdExecNextInstruction::~CMICmdCmdExecNextInstruction() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -572,7 +534,6 @@ bool CMICmdCmdExecNextInstruction::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -618,7 +579,6 @@ bool CMICmdCmdExecNextInstruction::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -635,7 +595,6 @@ bool CMICmdCmdExecNextInstruction::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -648,12 +607,8 @@ CMICmdBase *CMICmdCmdExecNextInstruction::CreateSelf() {
return new CMICmdCmdExecNextInstruction();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecStepInstruction constructor.
// Type: Method.
// Args: None.
@@ -670,7 +625,6 @@ CMICmdCmdExecStepInstruction::CMICmdCmdExecStepInstruction()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecStepInstruction destructor.
// Type: Overrideable.
// Args: None.
@@ -680,7 +634,6 @@ CMICmdCmdExecStepInstruction::CMICmdCmdExecStepInstruction()
CMICmdCmdExecStepInstruction::~CMICmdCmdExecStepInstruction() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -696,7 +649,6 @@ bool CMICmdCmdExecStepInstruction::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -742,7 +694,6 @@ bool CMICmdCmdExecStepInstruction::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -759,7 +710,6 @@ bool CMICmdCmdExecStepInstruction::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -772,12 +722,8 @@ CMICmdBase *CMICmdCmdExecStepInstruction::CreateSelf() {
return new CMICmdCmdExecStepInstruction();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecFinish constructor.
// Type: Method.
// Args: None.
@@ -793,7 +739,6 @@ CMICmdCmdExecFinish::CMICmdCmdExecFinish() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecFinish destructor.
// Type: Overrideable.
// Args: None.
@@ -803,7 +748,6 @@ CMICmdCmdExecFinish::CMICmdCmdExecFinish() {
CMICmdCmdExecFinish::~CMICmdCmdExecFinish() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -816,7 +760,6 @@ CMICmdCmdExecFinish::~CMICmdCmdExecFinish() {}
bool CMICmdCmdExecFinish::ParseArgs() { return ParseValidateCmdOptions(); }
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -861,7 +804,6 @@ bool CMICmdCmdExecFinish::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -878,7 +820,6 @@ bool CMICmdCmdExecFinish::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -891,12 +832,8 @@ CMICmdBase *CMICmdCmdExecFinish::CreateSelf() {
return new CMICmdCmdExecFinish();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecInterrupt constructor.
// Type: Method.
// Args: None.
@@ -912,7 +849,6 @@ CMICmdCmdExecInterrupt::CMICmdCmdExecInterrupt() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecInterrupt destructor.
// Type: Overrideable.
// Args: None.
@@ -922,7 +858,6 @@ CMICmdCmdExecInterrupt::CMICmdCmdExecInterrupt() {
CMICmdCmdExecInterrupt::~CMICmdCmdExecInterrupt() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -953,7 +888,6 @@ bool CMICmdCmdExecInterrupt::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -970,7 +904,6 @@ bool CMICmdCmdExecInterrupt::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -983,12 +916,8 @@ CMICmdBase *CMICmdCmdExecInterrupt::CreateSelf() {
return new CMICmdCmdExecInterrupt();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecArguments constructor.
// Type: Method.
// Args: None.
@@ -1005,7 +934,6 @@ CMICmdCmdExecArguments::CMICmdCmdExecArguments()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecArguments destructor.
// Type: Overrideable.
// Args: None.
@@ -1015,7 +943,6 @@ CMICmdCmdExecArguments::CMICmdCmdExecArguments()
CMICmdCmdExecArguments::~CMICmdCmdExecArguments() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -1033,7 +960,6 @@ bool CMICmdCmdExecArguments::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -1074,7 +1000,6 @@ bool CMICmdCmdExecArguments::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -1091,7 +1016,6 @@ bool CMICmdCmdExecArguments::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -1104,12 +1028,8 @@ CMICmdBase *CMICmdCmdExecArguments::CreateSelf() {
return new CMICmdCmdExecArguments();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecAbort constructor.
// Type: Method.
// Args: None.
@@ -1125,7 +1045,6 @@ CMICmdCmdExecAbort::CMICmdCmdExecAbort() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdExecAbort destructor.
// Type: Overrideable.
// Args: None.
@@ -1135,7 +1054,6 @@ CMICmdCmdExecAbort::CMICmdCmdExecAbort() {
CMICmdCmdExecAbort::~CMICmdCmdExecAbort() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -1168,7 +1086,6 @@ bool CMICmdCmdExecAbort::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -1185,7 +1102,6 @@ bool CMICmdCmdExecAbort::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
diff --git a/lldb/tools/lldb-mi/MICmdCmdFile.cpp b/lldb/tools/lldb-mi/MICmdCmdFile.cpp
index 7b13209f7f9..8b105eb1d58 100644
--- a/lldb/tools/lldb-mi/MICmdCmdFile.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdFile.cpp
@@ -23,7 +23,6 @@
#include "MIUtilFileStd.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdFileExecAndSymbols constructor.
// Type: Method.
// Args: None.
@@ -41,7 +40,6 @@ CMICmdCmdFileExecAndSymbols::CMICmdCmdFileExecAndSymbols()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdFileExecAndSymbols destructor.
// Type: Overrideable.
// Args: None.
@@ -51,7 +49,6 @@ CMICmdCmdFileExecAndSymbols::CMICmdCmdFileExecAndSymbols()
CMICmdCmdFileExecAndSymbols::~CMICmdCmdFileExecAndSymbols() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -73,7 +70,6 @@ bool CMICmdCmdFileExecAndSymbols::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -159,7 +155,6 @@ bool CMICmdCmdFileExecAndSymbols::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -178,7 +173,6 @@ bool CMICmdCmdFileExecAndSymbols::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -192,7 +186,6 @@ CMICmdBase *CMICmdCmdFileExecAndSymbols::CreateSelf() {
}
//++
-//------------------------------------------------------------------------------------
// Details: If the MI Driver is not operating via a client i.e. Eclipse but say
// operating
// on a executable passed in as a argument to the drive then what
diff --git a/lldb/tools/lldb-mi/MICmdCmdGdbInfo.cpp b/lldb/tools/lldb-mi/MICmdCmdGdbInfo.cpp
index 20396161b37..b351353ba1e 100644
--- a/lldb/tools/lldb-mi/MICmdCmdGdbInfo.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdGdbInfo.cpp
@@ -26,7 +26,6 @@ const CMICmdCmdGdbInfo::MapPrintFnNameToPrintFn_t
{"sharedlibrary", &CMICmdCmdGdbInfo::PrintFnSharedLibrary}};
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdGdbInfo constructor.
// Type: Method.
// Args: None.
@@ -45,7 +44,6 @@ CMICmdCmdGdbInfo::CMICmdCmdGdbInfo()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdGdbInfo destructor.
// Type: Overrideable.
// Args: None.
@@ -55,7 +53,6 @@ CMICmdCmdGdbInfo::CMICmdCmdGdbInfo()
CMICmdCmdGdbInfo::~CMICmdCmdGdbInfo() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -71,7 +68,6 @@ bool CMICmdCmdGdbInfo::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -99,7 +95,6 @@ bool CMICmdCmdGdbInfo::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -140,7 +135,6 @@ bool CMICmdCmdGdbInfo::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -152,7 +146,6 @@ bool CMICmdCmdGdbInfo::Acknowledge() {
CMICmdBase *CMICmdCmdGdbInfo::CreateSelf() { return new CMICmdCmdGdbInfo(); }
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the print function's pointer for the matching print
// request.
// Type: Method.
@@ -177,7 +170,6 @@ bool CMICmdCmdGdbInfo::GetPrintFn(const CMIUtilString &vrPrintFnName,
}
//++
-//------------------------------------------------------------------------------------
// Details: Carry out work to complete the request to prepare and send back
// information
// asked for.
diff --git a/lldb/tools/lldb-mi/MICmdCmdGdbSet.cpp b/lldb/tools/lldb-mi/MICmdCmdGdbSet.cpp
index c99c2175277..162e3d5a345 100644
--- a/lldb/tools/lldb-mi/MICmdCmdGdbSet.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdGdbSet.cpp
@@ -31,7 +31,6 @@ const CMICmdCmdGdbSet::MapGdbOptionNameToFnGdbOptionPtr_t
{"breakpoint", &CMICmdCmdGdbSet::OptionFnBreakpoint}};
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdGdbSet constructor.
// Type: Method.
// Args: None.
@@ -50,7 +49,6 @@ CMICmdCmdGdbSet::CMICmdCmdGdbSet()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdGdbSet destructor.
// Type: Overrideable.
// Args: None.
@@ -60,7 +58,6 @@ CMICmdCmdGdbSet::CMICmdCmdGdbSet()
CMICmdCmdGdbSet::~CMICmdCmdGdbSet() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -78,7 +75,6 @@ bool CMICmdCmdGdbSet::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command is executed in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -132,7 +128,6 @@ bool CMICmdCmdGdbSet::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute() method.
@@ -179,7 +174,6 @@ bool CMICmdCmdGdbSet::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -191,7 +185,6 @@ bool CMICmdCmdGdbSet::Acknowledge() {
CMICmdBase *CMICmdCmdGdbSet::CreateSelf() { return new CMICmdCmdGdbSet(); }
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the print function's pointer for the matching print
// request.
// Type: Method.
@@ -216,7 +209,6 @@ bool CMICmdCmdGdbSet::GetOptionFn(const CMIUtilString &vrPrintFnName,
}
//++
-//------------------------------------------------------------------------------------
// Details: Carry out work to complete the GDB set option 'target-async' to
// prepare
// and send back information asked for.
@@ -261,7 +253,6 @@ bool CMICmdCmdGdbSet::OptionFnTargetAsync(
}
//++
-//------------------------------------------------------------------------------------
// Details: Carry out work to complete the GDB set option
// 'print-char-array-as-string' to
// prepare and send back information asked for.
@@ -312,7 +303,6 @@ bool CMICmdCmdGdbSet::OptionFnPrint(const CMIUtilString::VecString_t &vrWords) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Carry out work to complete the GDB set option 'solib-search-path' to
// prepare
// and send back information asked for.
@@ -348,7 +338,6 @@ bool CMICmdCmdGdbSet::OptionFnSolibSearchPath(
}
//++
-//------------------------------------------------------------------------------------
// Details: Carry out work to complete the GDB set option 'output-radix' to
// prepare
// and send back information asked for.
@@ -399,7 +388,6 @@ bool CMICmdCmdGdbSet::OptionFnOutputRadix(
}
//++
-//------------------------------------------------------------------------------------
// Details: Carry out work to complete the GDB set option 'disassembly-flavor'
// to prepare
// and send back information asked for.
@@ -432,7 +420,6 @@ bool CMICmdCmdGdbSet::OptionFnDisassemblyFlavor(
}
//++
-//------------------------------------------------------------------------------------
// Details: Carry out work to complete the GDB set option 'breakpoint' to
// prepare
// and send back information asked for.
@@ -482,7 +469,6 @@ bool CMICmdCmdGdbSet::OptionFnBreakpoint(
}
//++
-//------------------------------------------------------------------------------------
// Details: Carry out work to complete the GDB set option to prepare and send
// back the
// requested information.
diff --git a/lldb/tools/lldb-mi/MICmdCmdGdbShow.cpp b/lldb/tools/lldb-mi/MICmdCmdGdbShow.cpp
index 58f626dd927..9ebd36202b7 100644
--- a/lldb/tools/lldb-mi/MICmdCmdGdbShow.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdGdbShow.cpp
@@ -35,7 +35,6 @@ const CMICmdCmdGdbShow::MapGdbOptionNameToFnGdbOptionPtr_t
{"breakpoint", &CMICmdCmdGdbShow::OptionFnBreakpoint}};
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdGdbShow constructor.
// Type: Method.
// Args: None.
@@ -54,7 +53,6 @@ CMICmdCmdGdbShow::CMICmdCmdGdbShow()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdGdbShow destructor.
// Type: Overrideable.
// Args: None.
@@ -64,7 +62,6 @@ CMICmdCmdGdbShow::CMICmdCmdGdbShow()
CMICmdCmdGdbShow::~CMICmdCmdGdbShow() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -82,7 +79,6 @@ bool CMICmdCmdGdbShow::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command is executed in this
// function.
// Type: Overridden.
@@ -134,7 +130,6 @@ bool CMICmdCmdGdbShow::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute() method.
@@ -190,7 +185,6 @@ bool CMICmdCmdGdbShow::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -202,7 +196,6 @@ bool CMICmdCmdGdbShow::Acknowledge() {
CMICmdBase *CMICmdCmdGdbShow::CreateSelf() { return new CMICmdCmdGdbShow(); }
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the print function's pointer for the matching print
// request.
// Type: Method.
@@ -227,7 +220,6 @@ bool CMICmdCmdGdbShow::GetOptionFn(const CMIUtilString &vrPrintFnName,
}
//++
-//------------------------------------------------------------------------------------
// Details: Carry out work to complete the GDB show option 'target-async' to
// prepare
// and send back the requested information.
@@ -251,7 +243,6 @@ bool CMICmdCmdGdbShow::OptionFnTargetAsync(
}
//++
-//------------------------------------------------------------------------------------
// Details: Carry out work to complete the GDB show option 'print' to prepare
// and send
// back the requested information.
@@ -302,7 +293,6 @@ bool CMICmdCmdGdbShow::OptionFnPrint(
}
//++
-//------------------------------------------------------------------------------------
// Details: Carry out work to complete the GDB show option 'language' to prepare
// and send back the requested information.
// Type: Method.
@@ -328,7 +318,6 @@ bool CMICmdCmdGdbShow::OptionFnLanguage(
}
//++
-//------------------------------------------------------------------------------------
// Details: Carry out work to complete the GDB show option 'disassembly-flavor' to prepare
// and send back the requested information.
// Type: Method.
@@ -348,7 +337,6 @@ bool CMICmdCmdGdbShow::OptionFnDisassemblyFlavor(const CMIUtilString::VecString_
}
//++
-//------------------------------------------------------------------------------------
// Details: Carry out work to complete the GDB show option 'breakpoint' to
// prepare
// and send back the requested information.
@@ -385,7 +373,6 @@ bool CMICmdCmdGdbShow::OptionFnBreakpoint(
}
//++
-//------------------------------------------------------------------------------------
// Details: Carry out work to complete the GDB show option to prepare and send
// back the
// requested information.
diff --git a/lldb/tools/lldb-mi/MICmdCmdGdbThread.cpp b/lldb/tools/lldb-mi/MICmdCmdGdbThread.cpp
index 8a01225bfc2..132cf2c68ef 100644
--- a/lldb/tools/lldb-mi/MICmdCmdGdbThread.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdGdbThread.cpp
@@ -14,7 +14,6 @@
#include "MICmnMIValueConst.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdGdbThread constructor.
// Type: Method.
// Args: None.
@@ -30,7 +29,6 @@ CMICmdCmdGdbThread::CMICmdCmdGdbThread() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdThread destructor.
// Type: Overrideable.
// Args: None.
@@ -40,7 +38,6 @@ CMICmdCmdGdbThread::CMICmdCmdGdbThread() {
CMICmdCmdGdbThread::~CMICmdCmdGdbThread() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -58,7 +55,6 @@ bool CMICmdCmdGdbThread::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -80,7 +76,6 @@ bool CMICmdCmdGdbThread::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
diff --git a/lldb/tools/lldb-mi/MICmdCmdMiscellanous.cpp b/lldb/tools/lldb-mi/MICmdCmdMiscellanous.cpp
index 9d644c8dea1..5aa79599953 100644
--- a/lldb/tools/lldb-mi/MICmdCmdMiscellanous.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdMiscellanous.cpp
@@ -34,7 +34,6 @@
#include "MIDriverBase.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdGdbExit constructor.
// Type: Method.
// Args: None.
@@ -50,7 +49,6 @@ CMICmdCmdGdbExit::CMICmdCmdGdbExit() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdGdbExit destructor.
// Type: Overrideable.
// Args: None.
@@ -60,7 +58,6 @@ CMICmdCmdGdbExit::CMICmdCmdGdbExit() {
CMICmdCmdGdbExit::~CMICmdCmdGdbExit() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -80,7 +77,6 @@ bool CMICmdCmdGdbExit::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -109,7 +105,6 @@ bool CMICmdCmdGdbExit::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -120,12 +115,8 @@ bool CMICmdCmdGdbExit::Acknowledge() {
//--
CMICmdBase *CMICmdCmdGdbExit::CreateSelf() { return new CMICmdCmdGdbExit(); }
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdListThreadGroups constructor.
// Type: Method.
// Args: None.
@@ -145,7 +136,6 @@ CMICmdCmdListThreadGroups::CMICmdCmdListThreadGroups()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdListThreadGroups destructor.
// Type: Overrideable.
// Args: None.
@@ -157,7 +147,6 @@ CMICmdCmdListThreadGroups::~CMICmdCmdListThreadGroups() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -182,7 +171,6 @@ bool CMICmdCmdListThreadGroups::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -253,7 +241,6 @@ bool CMICmdCmdListThreadGroups::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -387,7 +374,6 @@ bool CMICmdCmdListThreadGroups::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -400,12 +386,8 @@ CMICmdBase *CMICmdCmdListThreadGroups::CreateSelf() {
return new CMICmdCmdListThreadGroups();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdInterpreterExec constructor.
// Type: Method.
// Args: None.
@@ -423,7 +405,6 @@ CMICmdCmdInterpreterExec::CMICmdCmdInterpreterExec()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdInterpreterExec destructor.
// Type: Overrideable.
// Args: None.
@@ -433,7 +414,6 @@ CMICmdCmdInterpreterExec::CMICmdCmdInterpreterExec()
CMICmdCmdInterpreterExec::~CMICmdCmdInterpreterExec() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -452,7 +432,6 @@ bool CMICmdCmdInterpreterExec::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -484,7 +463,6 @@ bool CMICmdCmdInterpreterExec::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -522,7 +500,6 @@ bool CMICmdCmdInterpreterExec::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -535,12 +512,8 @@ CMICmdBase *CMICmdCmdInterpreterExec::CreateSelf() {
return new CMICmdCmdInterpreterExec();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdInferiorTtySet constructor.
// Type: Method.
// Args: None.
@@ -556,7 +529,6 @@ CMICmdCmdInferiorTtySet::CMICmdCmdInferiorTtySet() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdInferiorTtySet destructor.
// Type: Overrideable.
// Args: None.
@@ -566,7 +538,6 @@ CMICmdCmdInferiorTtySet::CMICmdCmdInferiorTtySet() {
CMICmdCmdInferiorTtySet::~CMICmdCmdInferiorTtySet() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -584,7 +555,6 @@ bool CMICmdCmdInferiorTtySet::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -603,7 +573,6 @@ bool CMICmdCmdInferiorTtySet::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
diff --git a/lldb/tools/lldb-mi/MICmdCmdStack.cpp b/lldb/tools/lldb-mi/MICmdCmdStack.cpp
index 06b114fae66..599db37417f 100644
--- a/lldb/tools/lldb-mi/MICmdCmdStack.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdStack.cpp
@@ -34,7 +34,6 @@
#include <algorithm>
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdStackInfoDepth constructor.
// Type: Method.
// Args: None.
@@ -51,7 +50,6 @@ CMICmdCmdStackInfoDepth::CMICmdCmdStackInfoDepth()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdStackInfoDepth destructor.
// Type: Overrideable.
// Args: None.
@@ -61,7 +59,6 @@ CMICmdCmdStackInfoDepth::CMICmdCmdStackInfoDepth()
CMICmdCmdStackInfoDepth::~CMICmdCmdStackInfoDepth() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -77,7 +74,6 @@ bool CMICmdCmdStackInfoDepth::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -114,7 +110,6 @@ bool CMICmdCmdStackInfoDepth::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -137,7 +132,6 @@ bool CMICmdCmdStackInfoDepth::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -150,12 +144,8 @@ CMICmdBase *CMICmdCmdStackInfoDepth::CreateSelf() {
return new CMICmdCmdStackInfoDepth();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdStackInfoFrame constructor.
// Type: Method.
// Args: None.
@@ -171,7 +161,6 @@ CMICmdCmdStackInfoFrame::CMICmdCmdStackInfoFrame() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdStackInfoFrame destructor.
// Type: Overrideable.
// Args: None.
@@ -181,7 +170,6 @@ CMICmdCmdStackInfoFrame::CMICmdCmdStackInfoFrame() {
CMICmdCmdStackInfoFrame::~CMICmdCmdStackInfoFrame() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -194,7 +182,6 @@ CMICmdCmdStackInfoFrame::~CMICmdCmdStackInfoFrame() {}
bool CMICmdCmdStackInfoFrame::ParseArgs() { return ParseValidateCmdOptions(); }
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -227,7 +214,6 @@ bool CMICmdCmdStackInfoFrame::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -248,7 +234,6 @@ bool CMICmdCmdStackInfoFrame::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -261,12 +246,8 @@ CMICmdBase *CMICmdCmdStackInfoFrame::CreateSelf() {
return new CMICmdCmdStackInfoFrame();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdStackListFrames constructor.
// Type: Method.
// Args: None.
@@ -284,7 +265,6 @@ CMICmdCmdStackListFrames::CMICmdCmdStackListFrames()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdStackListFrames destructor.
// Type: Overrideable.
// Args: None.
@@ -296,7 +276,6 @@ CMICmdCmdStackListFrames::~CMICmdCmdStackListFrames() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -313,7 +292,6 @@ bool CMICmdCmdStackListFrames::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -382,7 +360,6 @@ bool CMICmdCmdStackListFrames::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -438,7 +415,6 @@ bool CMICmdCmdStackListFrames::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -451,12 +427,8 @@ CMICmdBase *CMICmdCmdStackListFrames::CreateSelf() {
return new CMICmdCmdStackListFrames();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdStackListArguments constructor.
// Type: Method.
// Args: None.
@@ -475,7 +447,6 @@ CMICmdCmdStackListArguments::CMICmdCmdStackListArguments()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdStackListArguments destructor.
// Type: Overrideable.
// Args: None.
@@ -485,7 +456,6 @@ CMICmdCmdStackListArguments::CMICmdCmdStackListArguments()
CMICmdCmdStackListArguments::~CMICmdCmdStackListArguments() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -504,7 +474,6 @@ bool CMICmdCmdStackListArguments::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -598,7 +567,6 @@ bool CMICmdCmdStackListArguments::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -632,7 +600,6 @@ bool CMICmdCmdStackListArguments::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -645,12 +612,8 @@ CMICmdBase *CMICmdCmdStackListArguments::CreateSelf() {
return new CMICmdCmdStackListArguments();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdStackListLocals constructor.
// Type: Method.
// Args: None.
@@ -668,7 +631,6 @@ CMICmdCmdStackListLocals::CMICmdCmdStackListLocals()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdStackListLocals destructor.
// Type: Overrideable.
// Args: None.
@@ -678,7 +640,6 @@ CMICmdCmdStackListLocals::CMICmdCmdStackListLocals()
CMICmdCmdStackListLocals::~CMICmdCmdStackListLocals() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -695,7 +656,6 @@ bool CMICmdCmdStackListLocals::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -770,7 +730,6 @@ bool CMICmdCmdStackListLocals::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -803,7 +762,6 @@ bool CMICmdCmdStackListLocals::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -816,12 +774,8 @@ CMICmdBase *CMICmdCmdStackListLocals::CreateSelf() {
return new CMICmdCmdStackListLocals();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdStackListVariables constructor.
// Type: Method.
// Args: None.
@@ -839,7 +793,6 @@ CMICmdCmdStackListVariables::CMICmdCmdStackListVariables()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdStackListVariables destructor.
// Type: Overrideable.
// Args: None.
@@ -849,7 +802,6 @@ CMICmdCmdStackListVariables::CMICmdCmdStackListVariables()
CMICmdCmdStackListVariables::~CMICmdCmdStackListVariables() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -866,7 +818,6 @@ bool CMICmdCmdStackListVariables::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -942,7 +893,6 @@ bool CMICmdCmdStackListVariables::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -975,7 +925,6 @@ bool CMICmdCmdStackListVariables::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -988,12 +937,8 @@ CMICmdBase *CMICmdCmdStackListVariables::CreateSelf() {
return new CMICmdCmdStackListVariables();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdStackSelectFrame constructor.
// Type: Method.
// Args: None.
@@ -1010,7 +955,6 @@ CMICmdCmdStackSelectFrame::CMICmdCmdStackSelectFrame()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdStackSelectFrame destructor.
// Type: Overrideable.
// Args: None.
@@ -1020,7 +964,6 @@ CMICmdCmdStackSelectFrame::CMICmdCmdStackSelectFrame()
CMICmdCmdStackSelectFrame::~CMICmdCmdStackSelectFrame() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -1036,7 +979,6 @@ bool CMICmdCmdStackSelectFrame::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -1066,7 +1008,6 @@ bool CMICmdCmdStackSelectFrame::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -1099,7 +1040,6 @@ bool CMICmdCmdStackSelectFrame::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
diff --git a/lldb/tools/lldb-mi/MICmdCmdSupportInfo.cpp b/lldb/tools/lldb-mi/MICmdCmdSupportInfo.cpp
index 384069f3fa0..18260f2f01e 100644
--- a/lldb/tools/lldb-mi/MICmdCmdSupportInfo.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdSupportInfo.cpp
@@ -17,7 +17,6 @@
#include "MICmnMIValueTuple.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdSupportInfoMiCmdQuery constructor.
// Type: Method.
// Args: None.
@@ -34,7 +33,6 @@ CMICmdCmdSupportInfoMiCmdQuery::CMICmdCmdSupportInfoMiCmdQuery()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdSupportInfoMiCmdQuery destructor.
// Type: Overrideable.
// Args: None.
@@ -44,7 +42,6 @@ CMICmdCmdSupportInfoMiCmdQuery::CMICmdCmdSupportInfoMiCmdQuery()
CMICmdCmdSupportInfoMiCmdQuery::~CMICmdCmdSupportInfoMiCmdQuery() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -60,7 +57,6 @@ bool CMICmdCmdSupportInfoMiCmdQuery::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -85,7 +81,6 @@ bool CMICmdCmdSupportInfoMiCmdQuery::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -109,7 +104,6 @@ bool CMICmdCmdSupportInfoMiCmdQuery::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
diff --git a/lldb/tools/lldb-mi/MICmdCmdSupportList.cpp b/lldb/tools/lldb-mi/MICmdCmdSupportList.cpp
index 72bcb207f48..e457e0101f4 100644
--- a/lldb/tools/lldb-mi/MICmdCmdSupportList.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdSupportList.cpp
@@ -15,7 +15,6 @@
#include "MICmnMIValueList.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdSupportListFeatures constructor.
// Type: Method.
// Args: None.
@@ -31,7 +30,6 @@ CMICmdCmdSupportListFeatures::CMICmdCmdSupportListFeatures() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdSupportListFeatures destructor.
// Type: Overrideable.
// Args: None.
@@ -41,7 +39,6 @@ CMICmdCmdSupportListFeatures::CMICmdCmdSupportListFeatures() {
CMICmdCmdSupportListFeatures::~CMICmdCmdSupportListFeatures() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -59,7 +56,6 @@ bool CMICmdCmdSupportListFeatures::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -87,7 +83,6 @@ bool CMICmdCmdSupportListFeatures::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
diff --git a/lldb/tools/lldb-mi/MICmdCmdSymbol.cpp b/lldb/tools/lldb-mi/MICmdCmdSymbol.cpp
index 833c5cba37e..d57d1b008e5 100644
--- a/lldb/tools/lldb-mi/MICmdCmdSymbol.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdSymbol.cpp
@@ -41,7 +41,6 @@ CreateMITuplePCLine(const uint32_t addr, const uint32_t line_number) {
using namespace lldb; // For operator==(const SBAddress &, const SBAddress &).
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdSymbolListLines constructor.
// Type: Method.
// Args: None.
@@ -58,7 +57,6 @@ CMICmdCmdSymbolListLines::CMICmdCmdSymbolListLines()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdSymbolListLines destructor.
// Type: Overrideable.
// Args: None.
@@ -68,7 +66,6 @@ CMICmdCmdSymbolListLines::CMICmdCmdSymbolListLines()
CMICmdCmdSymbolListLines::~CMICmdCmdSymbolListLines() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -84,7 +81,6 @@ bool CMICmdCmdSymbolListLines::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -149,7 +145,6 @@ bool CMICmdCmdSymbolListLines::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -169,7 +164,6 @@ bool CMICmdCmdSymbolListLines::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
diff --git a/lldb/tools/lldb-mi/MICmdCmdTarget.cpp b/lldb/tools/lldb-mi/MICmdCmdTarget.cpp
index f614eb05b89..b3e0beac8d4 100644
--- a/lldb/tools/lldb-mi/MICmdCmdTarget.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdTarget.cpp
@@ -25,7 +25,6 @@
#include "MICmnMIValueConst.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdTargetSelect constructor.
// Type: Method.
// Args: None.
@@ -43,7 +42,6 @@ CMICmdCmdTargetSelect::CMICmdCmdTargetSelect()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdTargetSelect destructor.
// Type: Overrideable.
// Args: None.
@@ -53,7 +51,6 @@ CMICmdCmdTargetSelect::CMICmdCmdTargetSelect()
CMICmdCmdTargetSelect::~CMICmdCmdTargetSelect() = default;
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -71,7 +68,6 @@ bool CMICmdCmdTargetSelect::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -151,7 +147,6 @@ bool CMICmdCmdTargetSelect::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -187,7 +182,6 @@ bool CMICmdCmdTargetSelect::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -201,7 +195,6 @@ CMICmdBase *CMICmdCmdTargetSelect::CreateSelf() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdTargetAttach constructor.
// Type: Method.
// Args: None.
@@ -219,7 +212,6 @@ CMICmdCmdTargetAttach::CMICmdCmdTargetAttach()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdTargetAttach destructor.
// Type: Overrideable.
// Args: None.
@@ -229,7 +221,6 @@ CMICmdCmdTargetAttach::CMICmdCmdTargetAttach()
CMICmdCmdTargetAttach::~CMICmdCmdTargetAttach() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -250,7 +241,6 @@ bool CMICmdCmdTargetAttach::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -312,7 +302,6 @@ bool CMICmdCmdTargetAttach::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -348,7 +337,6 @@ bool CMICmdCmdTargetAttach::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -362,7 +350,6 @@ CMICmdBase *CMICmdCmdTargetAttach::CreateSelf() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdTargetDetach constructor.
// Type: Method.
// Args: None.
@@ -378,7 +365,6 @@ CMICmdCmdTargetDetach::CMICmdCmdTargetDetach() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdTargetDetach destructor.
// Type: Overrideable.
// Args: None.
@@ -388,7 +374,6 @@ CMICmdCmdTargetDetach::CMICmdCmdTargetDetach() {
CMICmdCmdTargetDetach::~CMICmdCmdTargetDetach() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -401,7 +386,6 @@ CMICmdCmdTargetDetach::~CMICmdCmdTargetDetach() {}
bool CMICmdCmdTargetDetach::ParseArgs() { return MIstatus::success; }
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -433,7 +417,6 @@ bool CMICmdCmdTargetDetach::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -451,7 +434,6 @@ bool CMICmdCmdTargetDetach::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
diff --git a/lldb/tools/lldb-mi/MICmdCmdThread.cpp b/lldb/tools/lldb-mi/MICmdCmdThread.cpp
index c3a64c0a027..e0c74f925a9 100644
--- a/lldb/tools/lldb-mi/MICmdCmdThread.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdThread.cpp
@@ -21,7 +21,6 @@
#include "MICmnMIValueConst.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdThreadInfo constructor.
// Type: Method.
// Args: None.
@@ -39,7 +38,6 @@ CMICmdCmdThreadInfo::CMICmdCmdThreadInfo()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdThreadInfo destructor.
// Type: Overrideable.
// Args: None.
@@ -49,7 +47,6 @@ CMICmdCmdThreadInfo::CMICmdCmdThreadInfo()
CMICmdCmdThreadInfo::~CMICmdCmdThreadInfo() { m_vecMIValueTuple.clear(); }
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -66,7 +63,6 @@ bool CMICmdCmdThreadInfo::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -135,7 +131,6 @@ bool CMICmdCmdThreadInfo::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -203,7 +198,6 @@ bool CMICmdCmdThreadInfo::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
diff --git a/lldb/tools/lldb-mi/MICmdCmdTrace.cpp b/lldb/tools/lldb-mi/MICmdCmdTrace.cpp
index 8ca657412f5..1daa18010c9 100644
--- a/lldb/tools/lldb-mi/MICmdCmdTrace.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdTrace.cpp
@@ -14,7 +14,6 @@
#include "MICmnMIValueConst.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdTraceStatus constructor.
// Type: Method.
// Args: None.
@@ -30,7 +29,6 @@ CMICmdCmdTraceStatus::CMICmdCmdTraceStatus() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdTraceStatus destructor.
// Type: Overrideable.
// Args: None.
@@ -40,7 +38,6 @@ CMICmdCmdTraceStatus::CMICmdCmdTraceStatus() {
CMICmdCmdTraceStatus::~CMICmdCmdTraceStatus() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -57,7 +54,6 @@ bool CMICmdCmdTraceStatus::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -79,7 +75,6 @@ bool CMICmdCmdTraceStatus::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
diff --git a/lldb/tools/lldb-mi/MICmdCmdVar.cpp b/lldb/tools/lldb-mi/MICmdCmdVar.cpp
index 60c66d391ce..3063b1b464d 100644
--- a/lldb/tools/lldb-mi/MICmdCmdVar.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdVar.cpp
@@ -40,7 +40,6 @@
#include <algorithm>
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarCreate constructor.
// Type: Method.
// Args: None.
@@ -60,7 +59,6 @@ CMICmdCmdVarCreate::CMICmdCmdVarCreate()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarCreate destructor.
// Type: Overrideable.
// Args: None.
@@ -70,7 +68,6 @@ CMICmdCmdVarCreate::CMICmdCmdVarCreate()
CMICmdCmdVarCreate::~CMICmdCmdVarCreate() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -89,7 +86,6 @@ bool CMICmdCmdVarCreate::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -211,7 +207,6 @@ bool CMICmdCmdVarCreate::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -264,7 +259,6 @@ bool CMICmdCmdVarCreate::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -278,7 +272,6 @@ CMICmdBase *CMICmdCmdVarCreate::CreateSelf() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Complete SBValue object and its children to get
// SBValue::GetValueDidChange
// work.
@@ -304,12 +297,8 @@ void CMICmdCmdVarCreate::CompleteSBValue(lldb::SBValue &vrwValue) {
}
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarUpdate constructor.
// Type: Method.
// Args: None.
@@ -327,7 +316,6 @@ CMICmdCmdVarUpdate::CMICmdCmdVarUpdate()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarUpdate destructor.
// Type: Overrideable.
// Args: None.
@@ -337,7 +325,6 @@ CMICmdCmdVarUpdate::CMICmdCmdVarUpdate()
CMICmdCmdVarUpdate::~CMICmdCmdVarUpdate() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -355,7 +342,6 @@ bool CMICmdCmdVarUpdate::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -408,7 +394,6 @@ bool CMICmdCmdVarUpdate::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -441,7 +426,6 @@ bool CMICmdCmdVarUpdate::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -455,7 +439,6 @@ CMICmdBase *CMICmdCmdVarUpdate::CreateSelf() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Form the MI response for multiple variables.
// Type: Method.
// Args: vrStrVarName - (R) Session var object's name.
@@ -491,7 +474,6 @@ void CMICmdCmdVarUpdate::MIFormResponse(const CMIUtilString &vrStrVarName,
}
//++
-//------------------------------------------------------------------------------------
// Details: Determine if the var object was changed.
// Type: Method.
// Args: vrVarObj - (R) Session var object to examine.
@@ -527,12 +509,8 @@ bool CMICmdCmdVarUpdate::ExamineSBValueForChange(lldb::SBValue &vrwValue,
return MIstatus::success;
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarDelete constructor.
// Type: Method.
// Args: None.
@@ -548,7 +526,6 @@ CMICmdCmdVarDelete::CMICmdCmdVarDelete() : m_constStrArgName("name") {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -564,7 +541,6 @@ bool CMICmdCmdVarDelete::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarDelete destructor.
// Type: Overrideable.
// Args: None.
@@ -574,7 +550,6 @@ bool CMICmdCmdVarDelete::ParseArgs() {
CMICmdCmdVarDelete::~CMICmdCmdVarDelete() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -595,7 +570,6 @@ bool CMICmdCmdVarDelete::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -614,7 +588,6 @@ bool CMICmdCmdVarDelete::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -627,12 +600,8 @@ CMICmdBase *CMICmdCmdVarDelete::CreateSelf() {
return new CMICmdCmdVarDelete();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarAssign constructor.
// Type: Method.
// Args: None.
@@ -650,7 +619,6 @@ CMICmdCmdVarAssign::CMICmdCmdVarAssign()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarAssign destructor.
// Type: Overrideable.
// Args: None.
@@ -660,7 +628,6 @@ CMICmdCmdVarAssign::CMICmdCmdVarAssign()
CMICmdCmdVarAssign::~CMICmdCmdVarAssign() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -677,7 +644,6 @@ bool CMICmdCmdVarAssign::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -715,7 +681,6 @@ bool CMICmdCmdVarAssign::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -751,7 +716,6 @@ bool CMICmdCmdVarAssign::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -764,12 +728,8 @@ CMICmdBase *CMICmdCmdVarAssign::CreateSelf() {
return new CMICmdCmdVarAssign();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarSetFormat constructor.
// Type: Method.
// Args: None.
@@ -786,7 +746,6 @@ CMICmdCmdVarSetFormat::CMICmdCmdVarSetFormat()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarSetFormat destructor.
// Type: Overrideable.
// Args: None.
@@ -796,7 +755,6 @@ CMICmdCmdVarSetFormat::CMICmdCmdVarSetFormat()
CMICmdCmdVarSetFormat::~CMICmdCmdVarSetFormat() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -813,7 +771,6 @@ bool CMICmdCmdVarSetFormat::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -854,7 +811,6 @@ bool CMICmdCmdVarSetFormat::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -897,7 +853,6 @@ bool CMICmdCmdVarSetFormat::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -910,12 +865,8 @@ CMICmdBase *CMICmdCmdVarSetFormat::CreateSelf() {
return new CMICmdCmdVarSetFormat();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarListChildren constructor.
// Type: Method.
// Args: None.
@@ -934,7 +885,6 @@ CMICmdCmdVarListChildren::CMICmdCmdVarListChildren()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarListChildren destructor.
// Type: Overrideable.
// Args: None.
@@ -944,7 +894,6 @@ CMICmdCmdVarListChildren::CMICmdCmdVarListChildren()
CMICmdCmdVarListChildren::~CMICmdCmdVarListChildren() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -964,7 +913,6 @@ bool CMICmdCmdVarListChildren::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -1077,7 +1025,6 @@ bool CMICmdCmdVarListChildren::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -1119,7 +1066,6 @@ bool CMICmdCmdVarListChildren::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -1132,12 +1078,8 @@ CMICmdBase *CMICmdCmdVarListChildren::CreateSelf() {
return new CMICmdCmdVarListChildren();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarEvaluateExpression constructor.
// Type: Method.
// Args: None.
@@ -1155,7 +1097,6 @@ CMICmdCmdVarEvaluateExpression::CMICmdCmdVarEvaluateExpression()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarEvaluateExpression destructor.
// Type: Overrideable.
// Args: None.
@@ -1165,7 +1106,6 @@ CMICmdCmdVarEvaluateExpression::CMICmdCmdVarEvaluateExpression()
CMICmdCmdVarEvaluateExpression::~CMICmdCmdVarEvaluateExpression() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -1184,7 +1124,6 @@ bool CMICmdCmdVarEvaluateExpression::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -1219,7 +1158,6 @@ bool CMICmdCmdVarEvaluateExpression::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -1252,7 +1190,6 @@ bool CMICmdCmdVarEvaluateExpression::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -1265,12 +1202,8 @@ CMICmdBase *CMICmdCmdVarEvaluateExpression::CreateSelf() {
return new CMICmdCmdVarEvaluateExpression();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarInfoPathExpression constructor.
// Type: Method.
// Args: None.
@@ -1287,7 +1220,6 @@ CMICmdCmdVarInfoPathExpression::CMICmdCmdVarInfoPathExpression()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarInfoPathExpression destructor.
// Type: Overrideable.
// Args: None.
@@ -1297,7 +1229,6 @@ CMICmdCmdVarInfoPathExpression::CMICmdCmdVarInfoPathExpression()
CMICmdCmdVarInfoPathExpression::~CMICmdCmdVarInfoPathExpression() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -1313,7 +1244,6 @@ bool CMICmdCmdVarInfoPathExpression::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -1384,7 +1314,6 @@ bool CMICmdCmdVarInfoPathExpression::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -1416,7 +1345,6 @@ bool CMICmdCmdVarInfoPathExpression::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
@@ -1429,12 +1357,8 @@ CMICmdBase *CMICmdCmdVarInfoPathExpression::CreateSelf() {
return new CMICmdCmdVarInfoPathExpression();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarShowAttributes constructor.
// Type: Method.
// Args: None.
@@ -1451,7 +1375,6 @@ CMICmdCmdVarShowAttributes::CMICmdCmdVarShowAttributes()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdCmdVarShowAttributes destructor.
// Type: Overrideable.
// Args: None.
@@ -1461,7 +1384,6 @@ CMICmdCmdVarShowAttributes::CMICmdCmdVarShowAttributes()
CMICmdCmdVarShowAttributes::~CMICmdCmdVarShowAttributes() {}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The parses the command line
// options
// arguments to extract values for each of those arguments.
@@ -1477,7 +1399,6 @@ bool CMICmdCmdVarShowAttributes::ParseArgs() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command does work in this
// function.
// The command is likely to communicate with the LLDB SBDebugger in
@@ -1504,7 +1425,6 @@ bool CMICmdCmdVarShowAttributes::Execute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: The invoker requires this function. The command prepares a MI Record
// Result
// for the work carried out in the Execute().
@@ -1527,7 +1447,6 @@ bool CMICmdCmdVarShowAttributes::Acknowledge() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdFactory when registering *this command. The
// factory
// calls this function to create an instance of *this command.
diff --git a/lldb/tools/lldb-mi/MICmdCommands.cpp b/lldb/tools/lldb-mi/MICmdCommands.cpp
index f172012d86c..cffc50a9ba6 100644
--- a/lldb/tools/lldb-mi/MICmdCommands.cpp
+++ b/lldb/tools/lldb-mi/MICmdCommands.cpp
@@ -45,7 +45,6 @@ template <typename T> static bool Register();
}
//++
-//------------------------------------------------------------------------------------
// Details: Command to command factory registration function.
// Type: Template function.
// Args: typename T - A command type class.
@@ -61,7 +60,6 @@ template <typename T> static bool MICmnCommands::Register() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Register commands with MI command factory
// Type: Function.
// Args: None.
diff --git a/lldb/tools/lldb-mi/MICmdFactory.cpp b/lldb/tools/lldb-mi/MICmdFactory.cpp
index 93368032efd..30995835c68 100644
--- a/lldb/tools/lldb-mi/MICmdFactory.cpp
+++ b/lldb/tools/lldb-mi/MICmdFactory.cpp
@@ -14,7 +14,6 @@
#include "MICmnResources.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdFactory constructor.
// Type: Method.
// Args: None.
@@ -24,7 +23,6 @@
CMICmdFactory::CMICmdFactory() {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdFactory destructor.
// Type: Overridable.
// Args: None.
@@ -34,7 +32,6 @@ CMICmdFactory::CMICmdFactory() {}
CMICmdFactory::~CMICmdFactory() { Shutdown(); }
//++
-//------------------------------------------------------------------------------------
// Details: Initialize resources for *this Command factory.
// Type: Method.
// Args: None.
@@ -56,7 +53,6 @@ bool CMICmdFactory::Initialize() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release resources for *this Command Factory.
// Type: Method.
// Args: None.
@@ -79,7 +75,6 @@ bool CMICmdFactory::Shutdown() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Register a command's creator function with the command identifier
// the MI
// command name i.e. 'file-exec-and-symbols'.
@@ -116,7 +111,6 @@ bool CMICmdFactory::CmdRegister(const CMIUtilString &vMiCmd,
}
//++
-//------------------------------------------------------------------------------------
// Details: Check a command is already registered.
// Type: Method.
// Args: vMiCmd - (R) Command's name, the MI command.
@@ -131,7 +125,6 @@ bool CMICmdFactory::HaveAlready(const CMIUtilString &vMiCmd) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Check a command's name is valid:
// - name is not empty
// - name does not have spaces
@@ -157,7 +150,6 @@ bool CMICmdFactory::IsValid(const CMIUtilString &vMiCmd) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Check a command is already registered.
// Type: Method.
// Args: vMiCmd - (R) Command's name, the MI command.
@@ -170,7 +162,6 @@ bool CMICmdFactory::CmdExist(const CMIUtilString &vMiCmd) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Create a command given the specified MI command name. The command
// data object
// contains the options for the command.
diff --git a/lldb/tools/lldb-mi/MICmdInterpreter.cpp b/lldb/tools/lldb-mi/MICmdInterpreter.cpp
index 0ed4b2f006c..9e37ac2d610 100644
--- a/lldb/tools/lldb-mi/MICmdInterpreter.cpp
+++ b/lldb/tools/lldb-mi/MICmdInterpreter.cpp
@@ -11,7 +11,6 @@
#include "MICmdFactory.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdInterpreter constructor.
// Type: Method.
// Args: None.
@@ -22,7 +21,6 @@ CMICmdInterpreter::CMICmdInterpreter()
: m_rCmdFactory(CMICmdFactory::Instance()) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdInterpreter destructor.
// Type: Overridable.
// Args: None.
@@ -32,7 +30,6 @@ CMICmdInterpreter::CMICmdInterpreter()
CMICmdInterpreter::~CMICmdInterpreter() { Shutdown(); }
//++
-//------------------------------------------------------------------------------------
// Details: Initialize resources for *this Command Interpreter.
// Type: Method.
// Args: None.
@@ -52,7 +49,6 @@ bool CMICmdInterpreter::Initialize() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release resources for *this Command Interpreter.
// Type: Method.
// Args: None.
@@ -73,7 +69,6 @@ bool CMICmdInterpreter::Shutdown() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Establish whether the text data is an MI format type command.
// Type: Method.
// Args: vTextLine - (R) Text data to interpret.
@@ -122,7 +117,6 @@ bool CMICmdInterpreter::ValidateIsMi(const CMIUtilString &vTextLine,
}
//++
-//------------------------------------------------------------------------------------
// Details: Establish whether the command name entered on the stdin stream is
// recognised by
// the MI driver.
@@ -137,7 +131,6 @@ bool CMICmdInterpreter::HasCmdFactoryGotMiCmd(const SMICmdData &vCmd) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Does the command entered match the criteria for a MI command format.
// The format to validate against is 'nn-' where there can be 1 to n
// digits.
@@ -174,7 +167,6 @@ bool CMICmdInterpreter::MiHasCmdTokenEndingHyphen(
}
//++
-//------------------------------------------------------------------------------------
// Details: Does the command entered match the criteria for a MI command format.
// The format to validate against is 'nnA' where there can be 1 to n
// digits.
@@ -210,7 +202,6 @@ bool CMICmdInterpreter::MiHasCmdTokenEndingAlpha(
}
//++
-//------------------------------------------------------------------------------------
// Details: Does the command entered match the criteria for a MI command format.
// Is the command token present before the hyphen?
// Type: Method.
@@ -224,7 +215,6 @@ bool CMICmdInterpreter::MiHasCmdTokenPresent(const CMIUtilString &vTextLine) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Does the command name entered match the criteria for a MI command
// format.
// Is a recognised command present? The command name is entered into
@@ -287,7 +277,6 @@ bool CMICmdInterpreter::MiHasCmd(const CMIUtilString &vTextLine) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the just entered new command from stdin. It contains the
// command
// name, number and any options.
diff --git a/lldb/tools/lldb-mi/MICmdInvoker.cpp b/lldb/tools/lldb-mi/MICmdInvoker.cpp
index 1714c624ff5..f4150a20ccd 100644
--- a/lldb/tools/lldb-mi/MICmdInvoker.cpp
+++ b/lldb/tools/lldb-mi/MICmdInvoker.cpp
@@ -15,7 +15,6 @@
#include "MIDriver.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdInvoker constructor.
// Type: Method.
// Args: None.
@@ -25,7 +24,6 @@
CMICmdInvoker::CMICmdInvoker() : m_rStreamOut(CMICmnStreamStdout::Instance()) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdInvoker destructor.
// Type: Overridable.
// Args: None.
@@ -35,7 +33,6 @@ CMICmdInvoker::CMICmdInvoker() : m_rStreamOut(CMICmnStreamStdout::Instance()) {}
CMICmdInvoker::~CMICmdInvoker() { Shutdown(); }
//++
-//------------------------------------------------------------------------------------
// Details: Initialize resources for *this Command Invoker.
// Type: Method.
// Args: None.
@@ -55,7 +52,6 @@ bool CMICmdInvoker::Initialize() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release resources for *this Stdin stream.
// Type: Method.
// Args: None.
@@ -78,7 +74,6 @@ bool CMICmdInvoker::Shutdown() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Empty the map of invoked commands doing work. Command objects are
// deleted too.
// Type: Method.
@@ -104,7 +99,6 @@ void CMICmdInvoker::CmdDeleteAll() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Remove from the map of invoked commands doing work a command that
// has finished
// its work. The command object is deleted too.
@@ -138,7 +132,6 @@ bool CMICmdInvoker::CmdDelete(const MIuint vId,
}
//++
-//------------------------------------------------------------------------------------
// Details: Add to the map of invoked commands doing work a command that is
// about to
// start to do work.
@@ -165,7 +158,6 @@ bool CMICmdInvoker::CmdAdd(const CMICmdBase &vCmd) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Having previously had the potential command validated and found
// valid now
// get the command executed.
@@ -212,7 +204,6 @@ bool CMICmdInvoker::CmdExecute(CMICmdBase &vCmd) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Called when a command has finished its Execution() work either
// synchronously
// because the command executed was the type a non event type or
@@ -269,7 +260,6 @@ bool CMICmdInvoker::CmdExecuteFinished(CMICmdBase &vCmd) {
}
//++
-//------------------------------------------------------------------------------------
// Details: If the MI Driver is not operating via a client i.e. Eclipse check
// the command
// on failure suggests the application exits. A command can be such
@@ -290,7 +280,6 @@ void CMICmdInvoker::CmdCauseAppExit(const CMICmdBase &vCmd) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Write to stdout and the Log file the command's MI formatted result.
// Type: vCmdData - (R) A command's information.
// Return: MIstatus::success - Functionality succeeded.
@@ -312,7 +301,6 @@ bool CMICmdInvoker::CmdStdout(const SMICmdData &vCmdData) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Required by the CMICmdMgr::ICmdDeleteCallback. *this object is
// registered
// with the Command Manager to receive callbacks when a command is
diff --git a/lldb/tools/lldb-mi/MICmdMgr.cpp b/lldb/tools/lldb-mi/MICmdMgr.cpp
index d9d0f570d2b..453ffedbd33 100644
--- a/lldb/tools/lldb-mi/MICmdMgr.cpp
+++ b/lldb/tools/lldb-mi/MICmdMgr.cpp
@@ -18,7 +18,6 @@
#include "MIUtilSingletonHelper.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdMgr constructor.
// Type: Method.
// Args: None.
@@ -31,7 +30,6 @@ CMICmdMgr::CMICmdMgr()
m_invoker(CMICmdInvoker::Instance()) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmdMgr destructor.
// Type: Overridable.
// Args: None.
@@ -41,7 +39,6 @@ CMICmdMgr::CMICmdMgr()
CMICmdMgr::~CMICmdMgr() { Shutdown(); }
//++
-//------------------------------------------------------------------------------------
// Details: Initialize resources for *this Command Manager.
// Type: Method.
// Args: None.
@@ -90,7 +87,6 @@ bool CMICmdMgr::Initialize() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release resources for *this Command Manager.
// Type: Method.
// Args: None.
@@ -147,7 +143,6 @@ bool CMICmdMgr::Shutdown() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Establish whether the text data is an MI format type command.
// Type: Method.
// Args: vTextLine - (R) Text data to interpret.
@@ -167,7 +162,6 @@ bool CMICmdMgr::CmdInterpret(const CMIUtilString &vTextLine, bool &vwbYesValid,
}
//++
-//------------------------------------------------------------------------------------
// Details: Having previously had the potential command validated and found
// valid now
// get the command executed.
@@ -209,7 +203,6 @@ bool CMICmdMgr::CmdExecute(const SMICmdData &vCmdData) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Iterate all interested clients and tell them a command is being
// deleted.
// Type: Method.
@@ -228,7 +221,6 @@ bool CMICmdMgr::CmdDelete(SMICmdData vCmdData) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Register an object to be called when a command object is deleted.
// Type: Method.
// Args: vObject - (R) A new interested client.
@@ -242,7 +234,6 @@ bool CMICmdMgr::CmdRegisterForDeleteNotification(
}
//++
-//------------------------------------------------------------------------------------
// Details: Unregister an object from being called when a command object is
// deleted.
// Type: Method.
diff --git a/lldb/tools/lldb-mi/MICmdMgrSetCmdDeleteCallback.cpp b/lldb/tools/lldb-mi/MICmdMgrSetCmdDeleteCallback.cpp
index 2710ff5d178..d6146b8d276 100644
--- a/lldb/tools/lldb-mi/MICmdMgrSetCmdDeleteCallback.cpp
+++ b/lldb/tools/lldb-mi/MICmdMgrSetCmdDeleteCallback.cpp
@@ -12,7 +12,6 @@
namespace CMICmdMgrSetCmdDeleteCallback {
//++
-//------------------------------------------------------------------------------------
// Details: CSetClients constructor.
// Type: Method.
// Args: None.
@@ -22,7 +21,6 @@ namespace CMICmdMgrSetCmdDeleteCallback {
CSetClients::CSetClients() : m_bClientUnregistered(false) {}
//++
-//------------------------------------------------------------------------------------
// Details: CSetClients destructor.
// Type: Method.
// Args: None.
@@ -32,7 +30,6 @@ CSetClients::CSetClients() : m_bClientUnregistered(false) {}
CSetClients::~CSetClients() {}
//++
-//------------------------------------------------------------------------------------
// Details: Register an object to be called when a command object is deleted.
// Type: Method.
// Args: vObject - (R) A new interested client.
@@ -47,7 +44,6 @@ bool CSetClients::Register(ICallback &vObject) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Unregister an object from being called when a command object is
// deleted.
// Type: Method.
@@ -64,7 +60,6 @@ bool CSetClients::Unregister(ICallback &vObject) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Iterate all interested clients and tell them a command is being
// deleted.
// Type: Method.
diff --git a/lldb/tools/lldb-mi/MICmnBase.cpp b/lldb/tools/lldb-mi/MICmnBase.cpp
index 855db5c2645..72096d56feb 100644
--- a/lldb/tools/lldb-mi/MICmnBase.cpp
+++ b/lldb/tools/lldb-mi/MICmnBase.cpp
@@ -15,7 +15,6 @@
#include "MICmnStreamStderr.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnBase constructor.
// Type: Method.
// Args: None.
@@ -27,7 +26,6 @@ CMICmnBase::CMICmnBase()
m_pLog(&CMICmnLog::Instance()), m_clientUsageRefCnt(0) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnBase destructor.
// Type: Overrideable.
// Args: None.
@@ -37,7 +35,6 @@ CMICmnBase::CMICmnBase()
CMICmnBase::~CMICmnBase() { m_pLog = NULL; }
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve whether *this object has an error description set.
// Type: Method.
// Args: None.
@@ -49,7 +46,6 @@ bool CMICmnBase::HaveErrorDescription() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve MI's last error condition.
// Type: Method.
// Args: None.
@@ -61,7 +57,6 @@ const CMIUtilString &CMICmnBase::GetErrorDescription() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set MI's error condition description. This may be accessed by
// clients and
// seen by users. Message is available to the client using the server
@@ -81,7 +76,6 @@ void CMICmnBase::SetErrorDescription(const CMIUtilString &vrTxt) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set MI's error condition description. This may be accessed by
// clients and
// seen by users. Message is available to the client using the server
@@ -97,7 +91,6 @@ void CMICmnBase::SetErrorDescriptionNoLog(const CMIUtilString &vrTxt) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Clear MI's error condition description.
// Type: Method.
// Args: None.
@@ -109,7 +102,6 @@ void CMICmnBase::ClrErrorDescription() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set MI's error condition description. This may be accessed by
// clients and
// seen by users. Message is available to the client using the server
diff --git a/lldb/tools/lldb-mi/MICmnLLDBBroadcaster.cpp b/lldb/tools/lldb-mi/MICmnLLDBBroadcaster.cpp
index 805667c5d07..554ec1f7e9f 100644
--- a/lldb/tools/lldb-mi/MICmnLLDBBroadcaster.cpp
+++ b/lldb/tools/lldb-mi/MICmnLLDBBroadcaster.cpp
@@ -10,7 +10,6 @@
#include "MICmnLLDBBroadcaster.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBBroadcaster constructor.
// Type: Method.
// Args: None.
@@ -21,7 +20,6 @@ CMICmnLLDBBroadcaster::CMICmnLLDBBroadcaster()
: lldb::SBBroadcaster("MI driver") {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBBroadcaster destructor.
// Type: Overridable.
// Args: None.
@@ -31,7 +29,6 @@ CMICmnLLDBBroadcaster::CMICmnLLDBBroadcaster()
CMICmnLLDBBroadcaster::~CMICmnLLDBBroadcaster() { Shutdown(); }
//++
-//------------------------------------------------------------------------------------
// Details: Initialize resources for *this broadcaster object.
// Type: Method.
// Args: None.
@@ -51,7 +48,6 @@ bool CMICmnLLDBBroadcaster::Initialize() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release resources for *this broadcaster object.
// Type: Method.
// Args: None.
diff --git a/lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp b/lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp
index 0ffb967b968..5ec2c588e20 100644
--- a/lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp
+++ b/lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp
@@ -29,7 +29,6 @@
#include "Platform.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBDebugSessionInfo constructor.
// Type: Method.
// Args: None.
@@ -46,7 +45,6 @@ CMICmnLLDBDebugSessionInfo::CMICmnLLDBDebugSessionInfo()
m_constStrPrintAggregateFieldNames("Print AggregateFieldNames") {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBDebugSessionInfo destructor.
// Type: Overridable.
// Args: None.
@@ -56,7 +54,6 @@ CMICmnLLDBDebugSessionInfo::CMICmnLLDBDebugSessionInfo()
CMICmnLLDBDebugSessionInfo::~CMICmnLLDBDebugSessionInfo() { Shutdown(); }
//++
-//------------------------------------------------------------------------------------
// Details: Initialize resources for *this object.
// Type: Method.
// Args: None.
@@ -79,7 +76,6 @@ bool CMICmnLLDBDebugSessionInfo::Initialize() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release resources for *this object.
// Type: Method.
// Args: None.
@@ -106,7 +102,6 @@ bool CMICmnLLDBDebugSessionInfo::Shutdown() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Command instances can create and share data between other instances
// of commands.
// Data can also be assigned by a command and retrieved by LLDB event
@@ -128,7 +123,6 @@ void CMICmnLLDBDebugSessionInfo::SharedDataDestroy() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Record information about a LLDB break point so that is can be
// recalled in other
// commands or LLDB event handling functions.
@@ -148,7 +142,6 @@ bool CMICmnLLDBDebugSessionInfo::RecordBrkPtInfo(
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve information about a LLDB break point previous recorded
// either by
// commands or LLDB event handling functions.
@@ -172,7 +165,6 @@ bool CMICmnLLDBDebugSessionInfo::RecordBrkPtInfoGet(
}
//++
-//------------------------------------------------------------------------------------
// Details: Delete information about a specific LLDB break point object. This
// function
// should be called when a LLDB break point is deleted.
@@ -194,7 +186,6 @@ bool CMICmnLLDBDebugSessionInfo::RecordBrkPtInfoDelete(const MIuint vnBrkPtId) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the specified thread's frame information.
// Type: Method.
// Args: vCmdData - (R) A command's information.
@@ -241,7 +232,6 @@ bool CMICmnLLDBDebugSessionInfo::GetThreadFrames(
}
//++
-//------------------------------------------------------------------------------------
// Details: Return the resolved file's path for the given file.
// Type: Method.
// Args: vCmdData - (R) A command's information.
@@ -272,7 +262,6 @@ bool CMICmnLLDBDebugSessionInfo::ResolvePath(const SMICmdData &vCmdData,
}
//++
-//------------------------------------------------------------------------------------
// Details: Return the resolved file's path for the given file.
// Type: Method.
// Args: vstrUnknown - (R) String assigned to path when resolved path
@@ -320,7 +309,6 @@ bool CMICmnLLDBDebugSessionInfo::ResolvePath(const CMIUtilString &vstrUnknown,
}
//++
-//------------------------------------------------------------------------------------
// Details: Determine the given file path exists or not.
// Type: Method.
// Args: vPath - (R) File name path.
@@ -342,7 +330,6 @@ bool CMICmnLLDBDebugSessionInfo::AccessPath(const CMIUtilString &vPath,
}
//++
-//------------------------------------------------------------------------------------
// Details: Form MI partial response by appending more MI value type objects to
// the
// tuple type object past in.
@@ -408,7 +395,6 @@ bool CMICmnLLDBDebugSessionInfo::MIResponseFormThreadInfo(
}
//++
-//------------------------------------------------------------------------------------
// Details: Form MI partial response by appending more MI value type objects to
// the
// tuple type object past in.
@@ -511,7 +497,6 @@ bool CMICmnLLDBDebugSessionInfo::MIResponseForVariableInfoInternal(
}
//++
-//------------------------------------------------------------------------------------
// Details: Extract the value's name and value or recurse into child value
// object.
// Type: Method.
@@ -535,7 +520,6 @@ bool CMICmnLLDBDebugSessionInfo::GetVariableInfo(const lldb::SBValue &vrValue,
}
//++
-//------------------------------------------------------------------------------------
// Details: Form MI partial response by appending more MI value type objects to
// the
// tuple type object past in.
@@ -606,7 +590,6 @@ bool CMICmnLLDBDebugSessionInfo::MIResponseFormFrameInfo(
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the frame information from LLDB frame object.
// Type: Method.
// Args: vrFrame - (R) LLDB thread object.
@@ -648,7 +631,6 @@ bool CMICmnLLDBDebugSessionInfo::GetFrameInfo(
}
//++
-//------------------------------------------------------------------------------------
// Details: Form MI partial response by appending more MI value type objects to
// the
// tuple type object past in.
@@ -683,7 +665,6 @@ void CMICmnLLDBDebugSessionInfo::MIResponseFormBrkPtFrameInfo(
}
//++
-//------------------------------------------------------------------------------------
// Details: Form MI partial response by appending more MI value type objects to
// the
// tuple type object past in.
@@ -773,7 +754,6 @@ bool CMICmnLLDBDebugSessionInfo::MIResponseFormBrkPtInfo(
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve breakpoint information and write into the given breakpoint
// information
// object. Note not all possible information is retrieved and so the
@@ -836,7 +816,6 @@ bool CMICmnLLDBDebugSessionInfo::GetBrkPtInfo(const lldb::SBBreakpoint &vBrkPt,
}
//++
-//------------------------------------------------------------------------------------
// Details: Get current debugger.
// Type: Method.
// Args: None.
@@ -848,7 +827,6 @@ lldb::SBDebugger &CMICmnLLDBDebugSessionInfo::GetDebugger() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Get current listener.
// Type: Method.
// Args: None.
@@ -860,7 +838,6 @@ lldb::SBListener &CMICmnLLDBDebugSessionInfo::GetListener() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Get current target.
// Type: Method.
// Args: None.
@@ -875,7 +852,6 @@ lldb::SBTarget CMICmnLLDBDebugSessionInfo::GetTarget() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Get current process.
// Type: Method.
// Args: None.
diff --git a/lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.h b/lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.h
index 05b7cff93ed..1fa81951f43 100644
--- a/lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.h
+++ b/lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.h
@@ -242,7 +242,6 @@ private:
};
//++
-//------------------------------------------------------------------------------------
// Details: Command instances can create and share data between other instances
// of commands.
// This function adds new data to the shared data. Using the same ID
@@ -268,7 +267,6 @@ bool CMICmnLLDBDebugSessionInfo::SharedDataAdd(const CMIUtilString &vKey,
}
//++
-//------------------------------------------------------------------------------------
// Details: Command instances can create and share data between other instances
// of commands.
// This function retrieves data from the shared data container.
diff --git a/lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfoVarObj.cpp b/lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfoVarObj.cpp
index 4eaf81293cf..fc0f76b6d49 100644
--- a/lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfoVarObj.cpp
+++ b/lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfoVarObj.cpp
@@ -28,7 +28,6 @@ CMICmnLLDBDebugSessionInfoVarObj::varFormat_e
CMICmnLLDBDebugSessionInfoVarObj::ms_eDefaultFormat = eVarFormat_Natural;
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBDebugSessionInfoVarObj constructor.
// Type: Method.
// Args: None.
@@ -41,7 +40,6 @@ CMICmnLLDBDebugSessionInfoVarObj::CMICmnLLDBDebugSessionInfoVarObj()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBDebugSessionInfoVarObj constructor.
// Type: Method.
// Args: vrStrNameReal - (R) The actual name of the variable, the
@@ -61,7 +59,6 @@ CMICmnLLDBDebugSessionInfoVarObj::CMICmnLLDBDebugSessionInfoVarObj(
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBDebugSessionInfoVarObj constructor.
// Type: Method.
// Args: vrStrNameReal - (R) The actual name of the variable, the
@@ -84,7 +81,6 @@ CMICmnLLDBDebugSessionInfoVarObj::CMICmnLLDBDebugSessionInfoVarObj(
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBDebugSessionInfoVarObj copy constructor.
// Type: Method.
// Args: vrOther - (R) The object to copy from.
@@ -97,7 +93,6 @@ CMICmnLLDBDebugSessionInfoVarObj::CMICmnLLDBDebugSessionInfoVarObj(
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBDebugSessionInfoVarObj copy constructor.
// Type: Method.
// Args: vrOther - (R) The object to copy from.
@@ -110,7 +105,6 @@ CMICmnLLDBDebugSessionInfoVarObj::CMICmnLLDBDebugSessionInfoVarObj(
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBDebugSessionInfoVarObj move constructor.
// Type: Method.
// Args: vrwOther - (R) The object to copy from.
@@ -123,7 +117,6 @@ CMICmnLLDBDebugSessionInfoVarObj::CMICmnLLDBDebugSessionInfoVarObj(
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBDebugSessionInfoVarObj assignment operator.
// Type: Method.
// Args: vrOther - (R) The object to copy from.
@@ -138,7 +131,6 @@ operator=(const CMICmnLLDBDebugSessionInfoVarObj &vrOther) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBDebugSessionInfoVarObj assignment operator.
// Type: Method.
// Args: vrwOther - (R) The object to copy from.
@@ -153,7 +145,6 @@ operator=(CMICmnLLDBDebugSessionInfoVarObj &&vrwOther) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Copy the other instance of that object to *this object.
// Type: Method.
// Args: vrOther - (R) The object to copy from.
@@ -179,7 +170,6 @@ bool CMICmnLLDBDebugSessionInfoVarObj::CopyOther(
}
//++
-//------------------------------------------------------------------------------------
// Details: Move that object to *this object.
// Type: Method.
// Args: vrwOther - (RW) The object to copy from.
@@ -206,7 +196,6 @@ bool CMICmnLLDBDebugSessionInfoVarObj::MoveOther(
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBDebugSessionInfoVarObj destructor.
// Type: Overridden.
// Args: None.
@@ -216,7 +205,6 @@ bool CMICmnLLDBDebugSessionInfoVarObj::MoveOther(
CMICmnLLDBDebugSessionInfoVarObj::~CMICmnLLDBDebugSessionInfoVarObj() {}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the var format enumeration for the specified string.
// Type: Static method.
// Args: vrStrFormat - (R) Text description of the var format.
@@ -238,7 +226,6 @@ CMICmnLLDBDebugSessionInfoVarObj::GetVarFormatForString(
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the var format enumeration for the specified character.
// Type: Static method.
// Args: vcFormat - Character representing the var format.
@@ -262,7 +249,6 @@ CMICmnLLDBDebugSessionInfoVarObj::GetVarFormatForChar(char vcFormat) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Return the equivalent var value formatted string for the given value
// type,
// which was prepared for printing (i.e. value was escaped and now it's
@@ -297,7 +283,6 @@ CMIUtilString CMICmnLLDBDebugSessionInfoVarObj::GetValueStringFormatted(
}
//++
-//------------------------------------------------------------------------------------
// Details: Return number formatted string according to the given value type.
// Type: Static method.
// Args: vnValue - (R) The number value to get formatted.
@@ -340,7 +325,6 @@ CMIUtilString CMICmnLLDBDebugSessionInfoVarObj::GetStringFormatted(
}
//++
-//------------------------------------------------------------------------------------
// Details: Delete internal container contents.
// Type: Static method.
// Args: None.
@@ -352,7 +336,6 @@ void CMICmnLLDBDebugSessionInfoVarObj::VarObjClear() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Add a var object to the internal container.
// Type: Static method.
// Args: vrVarObj - (R) The var value object.
@@ -367,7 +350,6 @@ void CMICmnLLDBDebugSessionInfoVarObj::VarObjAdd(
}
//++
-//------------------------------------------------------------------------------------
// Details: Delete the var object from the internal container matching the
// specified name.
// Type: Static method.
@@ -385,7 +367,6 @@ void CMICmnLLDBDebugSessionInfoVarObj::VarObjDelete(
}
//++
-//------------------------------------------------------------------------------------
// Details: Update an existing var object in the internal container.
// Type: Static method.
// Args: vrVarObj - (R) The var value object.
@@ -398,7 +379,6 @@ void CMICmnLLDBDebugSessionInfoVarObj::VarObjUpdate(
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the var object matching the specified name.
// Type: Static method.
// Args: vrVarName - (R) The var value name.
@@ -421,7 +401,6 @@ bool CMICmnLLDBDebugSessionInfoVarObj::VarObjGet(
}
//++
-//------------------------------------------------------------------------------------
// Details: A count is kept of the number of var value objects created. This is
// count is
// used to ID the var value object. Reset the count to 0.
@@ -435,7 +414,6 @@ void CMICmnLLDBDebugSessionInfoVarObj::VarObjIdResetToZero() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Default format is globally used as the data format when "natural" is
// in effect, that is, this overrides the default
// Type: Static method.
@@ -449,7 +427,6 @@ void CMICmnLLDBDebugSessionInfoVarObj::VarObjSetFormat(
}
//++
-//------------------------------------------------------------------------------------
// Details: A count is kept of the number of var value objects created. This is
// count is
// used to ID the var value object. Increment the count by 1.
@@ -461,7 +438,6 @@ void CMICmnLLDBDebugSessionInfoVarObj::VarObjSetFormat(
void CMICmnLLDBDebugSessionInfoVarObj::VarObjIdInc() { ms_nVarUniqueId++; }
//++
-//------------------------------------------------------------------------------------
// Details: A count is kept of the number of var value objects created. This is
// count is
// used to ID the var value object. Retrieve ID.
@@ -475,7 +451,6 @@ MIuint CMICmnLLDBDebugSessionInfoVarObj::VarObjIdGet() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the value formatted object's name.
// Type: Method.
// Args: None.
@@ -487,7 +462,6 @@ const CMIUtilString &CMICmnLLDBDebugSessionInfoVarObj::GetName() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the value formatted object's variable name as given in the
// MI command
// to create the var object.
@@ -501,7 +475,6 @@ const CMIUtilString &CMICmnLLDBDebugSessionInfoVarObj::GetNameReal() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the value formatted string.
// Type: Method.
// Args: None.
@@ -514,7 +487,6 @@ CMICmnLLDBDebugSessionInfoVarObj::GetValueFormatted() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the LLDB Value object.
// Type: Method.
// Args: None.
@@ -526,7 +498,6 @@ lldb::SBValue &CMICmnLLDBDebugSessionInfoVarObj::GetValue() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the LLDB Value object.
// Type: Method.
// Args: None.
@@ -538,7 +509,6 @@ const lldb::SBValue &CMICmnLLDBDebugSessionInfoVarObj::GetValue() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set the var format type for *this object and update the formatting.
// Type: Method.
// Args: None.
@@ -557,7 +527,6 @@ bool CMICmnLLDBDebugSessionInfoVarObj::SetVarFormat(
}
//++
-//------------------------------------------------------------------------------------
// Details: Update *this var obj. Update it's value and type.
// Type: Method.
// Args: None.
@@ -576,7 +545,6 @@ void CMICmnLLDBDebugSessionInfoVarObj::UpdateValue() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the enumeration type of the var object.
// Type: Method.
// Args: None.
@@ -589,7 +557,6 @@ CMICmnLLDBDebugSessionInfoVarObj::GetType() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the parent var object's name, the parent var object to
// *this var
// object (if assigned). The parent is equivalent to LLDB SBValue
diff --git a/lldb/tools/lldb-mi/MICmnLLDBDebugger.cpp b/lldb/tools/lldb-mi/MICmnLLDBDebugger.cpp
index f93faeb3f0b..b22e7d9a1fe 100644
--- a/lldb/tools/lldb-mi/MICmnLLDBDebugger.cpp
+++ b/lldb/tools/lldb-mi/MICmnLLDBDebugger.cpp
@@ -29,7 +29,6 @@
#include "MIUtilSingletonHelper.h"
//++
-//------------------------------------------------------------------------------------
// MI private summary providers
static inline bool MI_char_summary_provider(lldb::SBValue value,
lldb::SBTypeSummaryOptions options,
@@ -55,7 +54,6 @@ static inline bool MI_char_summary_provider(lldb::SBValue value,
}
//++
-//------------------------------------------------------------------------------------
// MI summary helper routines
static inline bool MI_add_summary(lldb::SBTypeCategory category,
const char *typeName,
@@ -74,7 +72,6 @@ static inline bool MI_add_summary(lldb::SBTypeCategory category,
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBDebugger constructor.
// Type: Method.
// Args: None.
@@ -85,7 +82,6 @@ CMICmnLLDBDebugger::CMICmnLLDBDebugger()
: m_constStrThisThreadId("MI debugger event") {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBDebugger destructor.
// Type: Overridable.
// Args: None.
@@ -95,7 +91,6 @@ CMICmnLLDBDebugger::CMICmnLLDBDebugger()
CMICmnLLDBDebugger::~CMICmnLLDBDebugger() { Shutdown(); }
//++
-//------------------------------------------------------------------------------------
// Details: Initialize resources for *this debugger object.
// Type: Method.
// Args: None.
@@ -157,7 +152,6 @@ bool CMICmnLLDBDebugger::Initialize() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release resources for *this debugger object.
// Type: Method.
// Args: None.
@@ -217,7 +211,6 @@ bool CMICmnLLDBDebugger::Shutdown() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Return the LLDB debugger instance created for this debug session.
// Type: Method.
// Args: None.
@@ -229,7 +222,6 @@ lldb::SBDebugger &CMICmnLLDBDebugger::GetTheDebugger() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Return the LLDB listener instance created for this debug session.
// Type: Method.
// Args: None.
@@ -241,7 +233,6 @@ lldb::SBListener &CMICmnLLDBDebugger::GetTheListener() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set the client driver that wants to use *this LLDB debugger. Call
// this function
// prior to Initialize().
@@ -258,7 +249,6 @@ bool CMICmnLLDBDebugger::SetDriver(const CMIDriverBase &vClientDriver) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Get the client driver that is use *this LLDB debugger.
// Type: Method.
// Args: vClientDriver - (R) A driver.
@@ -270,7 +260,6 @@ CMIDriverBase &CMICmnLLDBDebugger::GetDriver() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Wait until all events have been handled.
// This function works in pair with
// CMICmnLLDBDebugger::MonitorSBListenerEvents
@@ -294,7 +283,6 @@ void CMICmnLLDBDebugger::WaitForHandleEvent() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Check if need to rebroadcast stop event. This function will return
// true if
// debugger is in synchronouse mode. In such case the
@@ -321,7 +309,6 @@ bool CMICmnLLDBDebugger::CheckIfNeedToRebroadcastStopEvent() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Rebroadcast stop event if needed. This function should be called
// only if the
// CMICmnLLDBDebugger::CheckIfNeedToRebroadcastStopEvent() returned
@@ -342,7 +329,6 @@ void CMICmnLLDBDebugger::RebroadcastStopEvent() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Initialize the LLDB Debugger object.
// Type: Method.
// Args: None.
@@ -363,7 +349,6 @@ bool CMICmnLLDBDebugger::InitSBDebugger() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set the LLDB Debugger's std in, err and out streams. (Not
// implemented left
// here for reference. Was called in the
@@ -388,7 +373,6 @@ bool CMICmnLLDBDebugger::InitStdStreams() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set up the events from the SBDebugger's we would like to listen to.
// Type: Method.
// Args: None.
@@ -443,7 +427,6 @@ bool CMICmnLLDBDebugger::InitSBListener() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Register with the debugger, the SBListener, the type of events you
// are interested
// in. Others, like commands, may have already set the mask.
@@ -481,7 +464,6 @@ bool CMICmnLLDBDebugger::RegisterForEvent(
}
//++
-//------------------------------------------------------------------------------------
// Details: Register with the debugger, the SBListener, the type of events you
// are interested
// in. Others, like commands, may have already set the mask.
@@ -532,7 +514,6 @@ bool CMICmnLLDBDebugger::RegisterForEvent(
}
//++
-//------------------------------------------------------------------------------------
// Details: Unregister with the debugger, the SBListener, the type of events you
// are no
// longer interested in. Others, like commands, may still remain
@@ -579,7 +560,6 @@ bool CMICmnLLDBDebugger::UnregisterForEvent(
}
//++
-//------------------------------------------------------------------------------------
// Details: Given the SBBroadcaster class name retrieve it's current event mask.
// Type: Method.
// Args: vBroadcasterClass - (R) The SBBroadcaster's class name.
@@ -609,7 +589,6 @@ bool CMICmnLLDBDebugger::BroadcasterGetMask(
}
//++
-//------------------------------------------------------------------------------------
// Details: Remove the event mask for the specified SBBroadcaster class name.
// Type: Method.
// Args: vBroadcasterClass - (R) The SBBroadcaster's class name.
@@ -629,7 +608,6 @@ bool CMICmnLLDBDebugger::BroadcasterRemoveMask(
}
//++
-//------------------------------------------------------------------------------------
// Details: Given the SBBroadcaster class name save it's current event mask.
// Type: Method.
// Args: vBroadcasterClass - (R) The SBBroadcaster's class name.
@@ -655,7 +633,6 @@ bool CMICmnLLDBDebugger::BroadcasterSaveMask(
}
//++
-//------------------------------------------------------------------------------------
// Details: Iterate all the clients who have registered event masks against
// particular
// SBBroadcasters and build up the mask that is for all of them.
@@ -683,7 +660,6 @@ MIuint CMICmnLLDBDebugger::ClientGetMaskForAllClients(
}
//++
-//------------------------------------------------------------------------------------
// Details: Given the client save its particular event requirements.
// Type: Method.
// Args: vClientName - (R) The Client's unique ID.
@@ -714,7 +690,6 @@ bool CMICmnLLDBDebugger::ClientSaveMask(const CMIUtilString &vClientName,
}
//++
-//------------------------------------------------------------------------------------
// Details: Given the client remove it's particular event requirements.
// Type: Method.
// Args: vClientName - (R) The Client's unique ID.
@@ -743,7 +718,6 @@ bool CMICmnLLDBDebugger::ClientRemoveTheirMask(
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the client's event mask used for on a particular
// SBBroadcaster.
// Type: Method.
@@ -778,7 +752,6 @@ bool CMICmnLLDBDebugger::ClientGetTheirMask(
}
//++
-//------------------------------------------------------------------------------------
// Details: Momentarily wait for an events being broadcast and inspect those
// that do
// come this way. Check if the target should exit event if so start
@@ -848,7 +821,6 @@ bool CMICmnLLDBDebugger::MonitorSBListenerEvents(bool &vrbIsAlive) {
}
//++
-//------------------------------------------------------------------------------------
// Details: The main worker method for this thread.
// Type: Method.
// Args: vrbIsAlive - (W) True = *this thread is working, false = thread has
@@ -862,7 +834,6 @@ bool CMICmnLLDBDebugger::ThreadRun(bool &vrbIsAlive) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Let this thread clean up after itself.
// Type: Method.
// Args:
@@ -873,7 +844,6 @@ bool CMICmnLLDBDebugger::ThreadRun(bool &vrbIsAlive) {
bool CMICmnLLDBDebugger::ThreadFinish() { return MIstatus::success; }
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve *this thread object's name.
// Type: Overridden.
// Args: None.
@@ -885,7 +855,6 @@ const CMIUtilString &CMICmnLLDBDebugger::ThreadGetName() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Loads lldb-mi formatters
// Type: Method.
// Args: None.
@@ -913,7 +882,6 @@ bool CMICmnLLDBDebugger::LoadMIFormatters(lldb::SBTypeCategory miCategory) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Registers lldb-mi custom summary providers
// Type: Method.
// Args: None.
diff --git a/lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp b/lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
index c35d7300428..58a7c7de500 100644
--- a/lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
+++ b/lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
@@ -43,7 +43,6 @@
#include <algorithm>
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBDebuggerHandleEvents constructor.
// Type: Method.
// Args: None.
@@ -53,7 +52,6 @@
CMICmnLLDBDebuggerHandleEvents::CMICmnLLDBDebuggerHandleEvents() {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBDebuggerHandleEvents destructor.
// Type: Overridable.
// Args: None.
@@ -65,7 +63,6 @@ CMICmnLLDBDebuggerHandleEvents::~CMICmnLLDBDebuggerHandleEvents() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Initialize resources for *this broadcaster object.
// Type: Method.
// Args: None.
@@ -90,7 +87,6 @@ bool CMICmnLLDBDebuggerHandleEvents::Initialize() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release resources for *this broadcaster object.
// Type: Method.
// Args: None.
@@ -111,7 +107,6 @@ bool CMICmnLLDBDebuggerHandleEvents::Shutdown() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Interpret the event object to ascertain the action to take or
// information to
// to form and put in a MI Out-of-band record object which is given to
@@ -150,7 +145,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleEvent(const lldb::SBEvent &vEvent,
}
//++
-//------------------------------------------------------------------------------------
// Details: Handle a LLDB SBProcess event.
// Type: Method.
// Args: vEvent - (R) An LLDB broadcast event.
@@ -201,7 +195,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleEventSBProcess(
}
//++
-//------------------------------------------------------------------------------------
// Details: Handle a LLDB SBBreakpoint event.
// Type: Method.
// Args: vEvent - (R) An LLDB broadcast event.
@@ -274,7 +267,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleEventSBBreakPoint(
}
//++
-//------------------------------------------------------------------------------------
// Details: Handle a LLDB SBBreakpoint event.
// Type: Method.
// Args: vEvent - (R) An LLDB broadcast event.
@@ -299,7 +291,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleEventSBBreakpointLocationsAdded(
}
//++
-//------------------------------------------------------------------------------------
// Details: Handle a LLDB SBBreakpoint event.
// Type: Method.
// Args: vEvent - (R) An LLDB broadcast event.
@@ -368,7 +359,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleEventSBBreakpointCmn(
}
//++
-//------------------------------------------------------------------------------------
// Details: Handle a LLDB SBBreakpoint added event.
// Add more breakpoint information or overwrite existing information.
// Normally a break point session info objects exists by now when an MI
@@ -493,7 +483,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleEventSBBreakpointAdded(
}
//++
-//------------------------------------------------------------------------------------
// Details: Handle a LLDB SBThread event.
// Type: Method.
// Args: vEvent - (R) An LLDB broadcast event.
@@ -542,7 +531,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleEventSBThread(
}
//++
-//------------------------------------------------------------------------------------
// Details: Handle a LLDB SBThread event.
// Type: Method.
// Args: vEvent - (R) An LLDB broadcast event.
@@ -576,7 +564,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleEventSBThreadSuspended(
}
//++
-//------------------------------------------------------------------------------------
// Details: Handle a LLDB SBThread event.
// Type: Method.
// Args: vEvent - (R) An LLDB broadcast event.
@@ -596,7 +583,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleEventSBThreadBitStackChanged(
}
//++
-//------------------------------------------------------------------------------------
// Details: Handle a LLDB SBTarget event.
// Type: Method.
// Args: vEvent - (R) An LLDB broadcast event.
@@ -645,7 +631,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleEventSBTarget(
}
//++
-//------------------------------------------------------------------------------------
// Details: Print to stdout
// "=library-loaded,id=\"%s\",target-name=\"%s\",host-name=\"%s\",symbols-loaded="%d"[,symbols-path=\"%s\"],loaded_addr=\"0x%016"
// PRIx64"\""
@@ -675,7 +660,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleTargetEventBroadcastBitModulesLoaded(
}
//++
-//------------------------------------------------------------------------------------
// Details: Print to stdout
// "=library-unloaded,id=\"%s\",target-name=\"%s\",host-name=\"%s\",symbols-loaded="%d"[,symbols-path=\"%s\"],loaded_addr=\"0x%016"
// PRIx64"\""
@@ -705,7 +689,6 @@ bool CMICmnLLDBDebuggerHandleEvents::
}
//++
-//------------------------------------------------------------------------------------
// Details: Build module information for =library-loaded/=library-unloaded:
// "id=\"%s\",target-name=\"%s\",host-name=\"%s\",symbols-loaded="%d"[,symbols-path=\"%s\"],loaded_addr=\"0x%016"
// PRIx64"\""
@@ -783,7 +766,6 @@ bool CMICmnLLDBDebuggerHandleEvents::MiHelpGetModuleInfo(
}
//++
-//------------------------------------------------------------------------------------
// Details: Handle a LLDB SBCommandInterpreter event.
// Type: Method.
// Args: vEvent - (R) An LLDB command interpreter event.
@@ -842,7 +824,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleEventSBCommandInterpreter(
}
//++
-//------------------------------------------------------------------------------------
// Details: Handle SBProcess event eBroadcastBitStateChanged.
// Type: Method.
// Args: vEvent - (R) An LLDB event object.
@@ -938,7 +919,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleProcessEventBroadcastBitStateChanged(
}
//++
-//------------------------------------------------------------------------------------
// Details: Asynchronous event handler for LLDB Process state suspended.
// Type: Method.
// Args: vEvent - (R) An LLDB event object.
@@ -983,7 +963,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleProcessEventStateSuspended(
}
//++
-//------------------------------------------------------------------------------------
// Details: Print to stdout MI formatted text to indicate process stopped.
// Type: Method.
// Args: vwrbShouldBrk - (W) True = Yes break, false = do not.
@@ -1052,7 +1031,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleProcessEventStateStopped(
}
//++
-//------------------------------------------------------------------------------------
// Details: Asynchronous event handler for LLDB Process stop signal.
// Type: Method.
// Args: vrEvent - (R) An LLDB broadcast event.
@@ -1203,7 +1181,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleProcessEventStopSignal(
}
//++
-//------------------------------------------------------------------------------------
// Details: Asynchronous event handler for LLDB Process stop exception.
// Type: Method.
// Args: None.
@@ -1244,7 +1221,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleProcessEventStopException() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Form partial MI response in a MI value tuple object.
// Type: Method.
// Args: vwrMiValueTuple - (W) MI value tuple object.
@@ -1295,7 +1271,6 @@ bool CMICmnLLDBDebuggerHandleEvents::MiHelpGetCurrentThreadFrame(
}
//++
-//------------------------------------------------------------------------------------
// Details: Asynchronous event handler for LLDB Process stop reason breakpoint.
// Type: Method.
// Args: None.
@@ -1325,7 +1300,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleProcessEventStopReasonBreakpoint() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Form the MI Out-of-band response for stopped reason on hitting a
// break point.
// Type: Method.
@@ -1425,7 +1399,6 @@ bool CMICmnLLDBDebuggerHandleEvents::MiStoppedAtBreakPoint(
}
//++
-//------------------------------------------------------------------------------------
// Details: Asynchronous event handler for LLDB Process stop reason trace.
// Type: Method.
// Args: None.
@@ -1491,7 +1464,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleProcessEventStopReasonTrace() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Asynchronous function update selected thread.
// Type: Method.
// Args: None.
@@ -1564,7 +1536,6 @@ bool CMICmnLLDBDebuggerHandleEvents::UpdateSelectedThread() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Print to stdout "*running,thread-id=\"all\"", "(gdb)".
// Type: Method.
// Args: None.
@@ -1584,7 +1555,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleProcessEventStateRunning() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Print to stdout "=thread-exited,id=\"%ld\",group-id=\"i1\"",
// "=thread-group-exited,id=\"i1\",exit-code=\"0\""),
// "*stopped,reason=\"exited-normally\"",
@@ -1628,7 +1598,6 @@ bool CMICmnLLDBDebuggerHandleEvents::HandleProcessEventStateExited() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Drain all stdout so we don't see any output come after we print our
// prompts.
// The process has stuff waiting for stdout; get it and write it out to
@@ -1684,7 +1653,6 @@ bool CMICmnLLDBDebuggerHandleEvents::GetProcessStdout() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Drain all stderr so we don't see any output come after we print our
// prompts.
// The process has stuff waiting for stderr; get it and write it out to
@@ -1739,7 +1707,6 @@ bool CMICmnLLDBDebuggerHandleEvents::GetProcessStderr() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Asynchronous event function check for state changes.
// Type: Method.
// Args: None.
@@ -1835,7 +1802,6 @@ bool CMICmnLLDBDebuggerHandleEvents::ChkForStateChanges() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Take a fully formed MI result record and send to the stdout stream.
// Also output to the MI Log file.
// Type: Method.
@@ -1850,7 +1816,6 @@ bool CMICmnLLDBDebuggerHandleEvents::MiResultRecordToStdout(
}
//++
-//------------------------------------------------------------------------------------
// Details: Take a fully formed MI Out-of-band record and send to the stdout
// stream.
// Also output to the MI Log file.
@@ -1866,7 +1831,6 @@ bool CMICmnLLDBDebuggerHandleEvents::MiOutOfBandRecordToStdout(
}
//++
-//------------------------------------------------------------------------------------
// Details: Take a text data and send to the stdout stream. Also output to the
// MI Log
// file.
@@ -1881,7 +1845,6 @@ bool CMICmnLLDBDebuggerHandleEvents::TextToStdout(const CMIUtilString &vrTxt) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Take a text data and send to the stderr stream. Also output to the
// MI Log
// file.
@@ -1896,7 +1859,6 @@ bool CMICmnLLDBDebuggerHandleEvents::TextToStderr(const CMIUtilString &vrTxt) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Initialize the member variables with the signal values in this
// process
// file.
diff --git a/lldb/tools/lldb-mi/MICmnLLDBProxySBValue.cpp b/lldb/tools/lldb-mi/MICmnLLDBProxySBValue.cpp
index 865d8a01d9b..14e39cd1f80 100644
--- a/lldb/tools/lldb-mi/MICmnLLDBProxySBValue.cpp
+++ b/lldb/tools/lldb-mi/MICmnLLDBProxySBValue.cpp
@@ -17,7 +17,6 @@
#include "MIUtilString.h"
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the numerical value from the SBValue object. If the
// function fails
// it could indicate the SBValue object does not represent an internal
@@ -51,7 +50,6 @@ bool CMICmnLLDBProxySBValue::GetValueAsUnsigned(const lldb::SBValue &vrValue,
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the numerical value from the SBValue object. If the
// function fails
// it could indicate the SBValue object does not represent an internal
@@ -85,7 +83,6 @@ bool CMICmnLLDBProxySBValue::GetValueAsSigned(const lldb::SBValue &vrValue,
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the NUL terminated string from the SBValue object if it of
// the type
// unsigned char *.
diff --git a/lldb/tools/lldb-mi/MICmnLLDBUtilSBValue.cpp b/lldb/tools/lldb-mi/MICmnLLDBUtilSBValue.cpp
index 06d5aeac38e..0e7df52b7b9 100644
--- a/lldb/tools/lldb-mi/MICmnLLDBUtilSBValue.cpp
+++ b/lldb/tools/lldb-mi/MICmnLLDBUtilSBValue.cpp
@@ -21,7 +21,6 @@ static const char *kUnknownValue = "??";
static const char *kUnresolvedCompositeValue = "{...}";
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBUtilSBValue constructor.
// Type: Method.
// Args: vrValue - (R) The LLDB value object.
@@ -41,7 +40,6 @@ CMICmnLLDBUtilSBValue::CMICmnLLDBUtilSBValue(
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLLDBUtilSBValue destructor.
// Type: Method.
// Args: None.
@@ -51,7 +49,6 @@ CMICmnLLDBUtilSBValue::CMICmnLLDBUtilSBValue(
CMICmnLLDBUtilSBValue::~CMICmnLLDBUtilSBValue() {}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve from the LLDB SB Value object the name of the variable. If
// the name
// is invalid (or the SBValue object invalid) then "??" is returned.
@@ -68,7 +65,6 @@ CMIUtilString CMICmnLLDBUtilSBValue::GetName() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve from the LLDB SB Value object the value of the variable
// described in
// text. If the value is invalid (or the SBValue object invalid) then
@@ -119,7 +115,6 @@ CMIUtilString CMICmnLLDBUtilSBValue::GetValue(
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve from the LLDB SB Value object the value of the variable
// described in
// text if it has a simple format (not composite).
@@ -246,7 +241,6 @@ CMICmnLLDBUtilSBValue::GetValueSummary(bool valueOnly,
}
//++
-//------------------------------------------------------------------------------------
// Details: Check that basic type is a char type. Char type can be signed or
// unsigned.
// Type: Static.
@@ -268,7 +262,6 @@ bool CMICmnLLDBUtilSBValue::IsCharBasicType(lldb::BasicType eType) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the flag stating whether this value object is a char type
// or some
// other type. Char type can be signed or unsigned.
@@ -283,7 +276,6 @@ bool CMICmnLLDBUtilSBValue::IsCharType() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the flag stating whether first child value object of *this
// object is
// a char type or some other type. Returns false if there are not
@@ -307,7 +299,6 @@ bool CMICmnLLDBUtilSBValue::IsFirstChildCharType() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the flag stating whether pointee object of *this object is
// a char type or some other type. Returns false if there are not
// children. Char
@@ -330,7 +321,6 @@ bool CMICmnLLDBUtilSBValue::IsPointeeCharType() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the flag stating whether this value object is a integer
// type or some
// other type. Char type can be signed or unsigned and short or
@@ -355,7 +345,6 @@ bool CMICmnLLDBUtilSBValue::IsIntegerType() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the flag stating whether this value object is a pointer
// type or some
// other type.
@@ -369,7 +358,6 @@ bool CMICmnLLDBUtilSBValue::IsPointerType() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the flag stating whether this value object is an array type
// or some
// other type.
@@ -383,7 +371,6 @@ bool CMICmnLLDBUtilSBValue::IsArrayType() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the C string data of value object by read the memory where
// the
// variable is held.
@@ -418,7 +405,6 @@ CMICmnLLDBUtilSBValue::ReadCStringFromHostMemory(lldb::SBValue &vrValue,
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the state of the value object's name.
// Type: Method.
// Args: None.
@@ -431,7 +417,6 @@ bool CMICmnLLDBUtilSBValue::IsNameUnknown() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the state of the value object's value data.
// Type: Method.
// Args: None.
@@ -444,7 +429,6 @@ bool CMICmnLLDBUtilSBValue::IsValueUnknown() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the value object's type name if valid.
// Type: Method.
// Args: None.
@@ -459,7 +443,6 @@ CMIUtilString CMICmnLLDBUtilSBValue::GetTypeName() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the value object's display type name if valid.
// Type: Method.
// Args: None.
@@ -474,7 +457,6 @@ CMIUtilString CMICmnLLDBUtilSBValue::GetTypeNameDisplay() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve whether the value object's is valid or not.
// Type: Method.
// Args: None.
@@ -484,7 +466,6 @@ CMIUtilString CMICmnLLDBUtilSBValue::GetTypeNameDisplay() const {
bool CMICmnLLDBUtilSBValue::IsValid() const { return m_bValidSBValue; }
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the value object' has a name. A value object can be valid
// but still
// have no name which suggest it is not a variable.
@@ -505,7 +486,6 @@ bool CMICmnLLDBUtilSBValue::HasName() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Determine if the value object' represents a LLDB variable i.e. "$0".
// Type: Method.
// Args: None.
diff --git a/lldb/tools/lldb-mi/MICmnLog.cpp b/lldb/tools/lldb-mi/MICmnLog.cpp
index 5597184b40e..fc4c3141915 100644
--- a/lldb/tools/lldb-mi/MICmnLog.cpp
+++ b/lldb/tools/lldb-mi/MICmnLog.cpp
@@ -14,7 +14,6 @@
#include "MIUtilDateTimeStd.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLog constructor.
// Type: Method.
// Args: None.
@@ -26,7 +25,6 @@ CMICmnLog::CMICmnLog() : m_bEnabled(false), m_bInitializingATM(false) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLog destructor.
// Type: Method.
// Args: None.
@@ -36,7 +34,6 @@ CMICmnLog::CMICmnLog() : m_bEnabled(false), m_bInitializingATM(false) {
CMICmnLog::~CMICmnLog() { Shutdown(); }
//++
-//------------------------------------------------------------------------------------
// Details: Initialize resources for *this Logger.
// Type: Method.
// Args: None.
@@ -94,7 +91,6 @@ bool CMICmnLog::Initialize() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release resources for *this Logger.
// Type: Method.
// Args: None.
@@ -119,7 +115,6 @@ bool CMICmnLog::Shutdown() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Enabled or disable *this Logger from writing any data to registered
// clients.
// Type: Method.
@@ -135,7 +130,6 @@ bool CMICmnLog::SetEnabled(const bool vbYes) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve state whether *this Logger is enabled writing data to
// registered clients.
// Type: Method.
@@ -147,7 +141,6 @@ bool CMICmnLog::SetEnabled(const bool vbYes) {
bool CMICmnLog::GetEnabled() const { return m_bEnabled; }
//++
-//------------------------------------------------------------------------------------
// Details: Unregister all the Mediums registered with *this Logger.
// Type: Method.
// Args: None.
@@ -168,7 +161,6 @@ bool CMICmnLog::UnregisterMediumAll() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Register a Medium with *this Logger.
// Type: Method.
// Args: vrMedium - (R) The medium to register.
@@ -197,7 +189,6 @@ bool CMICmnLog::RegisterMedium(const IMedium &vrMedium) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Query the Logger to see if a medium is already registered.
// Type: Method.
// Args: vrMedium - (R) The medium to query.
@@ -212,7 +203,6 @@ bool CMICmnLog::HaveMediumAlready(const IMedium &vrMedium) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Unregister a medium from the Logger.
// Type: Method.
// Args: vrMedium - (R) The medium to unregister.
@@ -228,7 +218,6 @@ bool CMICmnLog::UnregisterMedium(const IMedium &vrMedium) {
}
//++
-//------------------------------------------------------------------------------------
// Details: The callee client uses this function to write to the Logger. The
// data to be
// written is given out to all the mediums registered. The verbosity
@@ -293,7 +282,6 @@ bool CMICmnLog::Write(const CMIUtilString &vData, const ELogVerbosity veType) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Short cut function call to write only to the Log file.
// The logger must be initialized successfully before a write to any
// registered
@@ -309,7 +297,6 @@ bool CMICmnLog::WriteLog(const CMIUtilString &vData) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve a string detailing the last error.
// Type: Method.
// Args: None,
@@ -321,7 +308,6 @@ const CMIUtilString &CMICmnLog::GetErrorDescription() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set the internal description of the last error.
// Type: Method.
// Args: (R) String containing a description of the last error.
@@ -333,7 +319,6 @@ void CMICmnLog::SetErrorDescription(const CMIUtilString &vrTxt) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Clear the last error.
// Type: None.
// Args: None.
diff --git a/lldb/tools/lldb-mi/MICmnLogMediumFile.cpp b/lldb/tools/lldb-mi/MICmnLogMediumFile.cpp
index 20449cf6e22..7fbe28f3fe0 100644
--- a/lldb/tools/lldb-mi/MICmnLogMediumFile.cpp
+++ b/lldb/tools/lldb-mi/MICmnLogMediumFile.cpp
@@ -11,7 +11,6 @@
#include "MICmnResources.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLogMediumFile constructor.
// Type: Method.
// Args: None.
@@ -29,7 +28,6 @@ CMICmnLogMediumFile::CMICmnLogMediumFile()
m_fileHeaderTxt(MIRSRC(IDS_MEDIUMFILE_ERR_FILE_HEADER)) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnLogMediumFile destructor.
// Type: Overridden.
// Args: None.
@@ -39,7 +37,6 @@ CMICmnLogMediumFile::CMICmnLogMediumFile()
CMICmnLogMediumFile::~CMICmnLogMediumFile() {}
//++
-//------------------------------------------------------------------------------------
// Details: Get the singleton instance of *this class.
// Type: Static.
// Args: None.
@@ -53,7 +50,6 @@ CMICmnLogMediumFile &CMICmnLogMediumFile::Instance() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Initialize setup *this medium ready for use.
// Type: Overridden.
// Args: None.
@@ -67,7 +63,6 @@ bool CMICmnLogMediumFile::Initialize() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Unbind detach or release resources used by *this medium.
// Type: Method.
// Args: None.
@@ -83,7 +78,6 @@ bool CMICmnLogMediumFile::Shutdown() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the name of *this medium.
// Type: Overridden.
// Args: None.
@@ -95,7 +89,6 @@ const CMIUtilString &CMICmnLogMediumFile::GetName() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: The callee client calls the write function on the Logger. The data
// to be
// written is given out to all the mediums registered. The verbosity
@@ -132,7 +125,6 @@ bool CMICmnLogMediumFile::Write(const CMIUtilString &vData,
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve *this medium's last error condition.
// Type: Method.
// Args: None.
@@ -144,7 +136,6 @@ const CMIUtilString &CMICmnLogMediumFile::GetError() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set the verbosity mode for this medium.
// Type: Method.
// Args: veType - (R) Mask value.
@@ -158,7 +149,6 @@ bool CMICmnLogMediumFile::SetVerbosity(const MIuint veType) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Get the verbosity mode for this medium.
// Type: Method.
// Args: veType - (R) Mask value.
@@ -168,7 +158,6 @@ bool CMICmnLogMediumFile::SetVerbosity(const MIuint veType) {
MIuint CMICmnLogMediumFile::GetVerbosity() const { return m_eVerbosityType; }
//++
-//------------------------------------------------------------------------------------
// Details: Write data to a file English font.
// Type: Method.
// Args: vData - (R) The data to write to the logger.
@@ -180,7 +169,6 @@ bool CMICmnLogMediumFile::FileWriteEnglish(const CMIUtilString &vData) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Determine and form the medium file's directory path and name.
// Type: Method.
// Args: None.
@@ -210,7 +198,6 @@ bool CMICmnLogMediumFile::FileFormFileNamePath() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the medium file's directory path and name.
// Type: Method.
// Args: None.
@@ -222,7 +209,6 @@ const CMIUtilString &CMICmnLogMediumFile::GetFileNamePath() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the medium file's name.
// Type: Method.
// Args: None.
@@ -234,7 +220,6 @@ const CMIUtilString &CMICmnLogMediumFile::GetFileName() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Massage the data to behave correct when submitted to file. Insert
// extra log
// specific text. The veType is there to allow in the future to parse
@@ -272,7 +257,6 @@ CMICmnLogMediumFile::MassagedData(const CMIUtilString &vData,
}
//++
-//------------------------------------------------------------------------------------
// Details: Convert the Log's verbosity type number into a single char
// character.
// Type: Method.
@@ -299,7 +283,6 @@ char CMICmnLogMediumFile::ConvertLogVerbosityTypeToId(
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve state of whether the file medium is ok.
// Type: Method.
// Args: None.
@@ -310,7 +293,6 @@ char CMICmnLogMediumFile::ConvertLogVerbosityTypeToId(
bool CMICmnLogMediumFile::IsOk() const { return m_file.IsOk(); }
//++
-//------------------------------------------------------------------------------------
// Details: Status on the file log medium existing already.
// Type: Method.
// Args: None.
@@ -323,7 +305,6 @@ bool CMICmnLogMediumFile::IsFileExist() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Write the header text the logger file.
// Type: Method.
// Args: vText - (R) Text.
@@ -336,7 +317,6 @@ bool CMICmnLogMediumFile::FileWriteHeader() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Convert any carriage line returns to be compatible with the platform
// the
// Log file is being written to.
@@ -365,7 +345,6 @@ CMIUtilString CMICmnLogMediumFile::ConvertCr(const CMIUtilString &vData) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set the header text that is written to the logger file at the
// beginning.
// Type: Method.
@@ -381,7 +360,6 @@ bool CMICmnLogMediumFile::SetHeaderTxt(const CMIUtilString &vText) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the file current carriage line return characters used.
// Type: Method.
// Args: None.
@@ -393,7 +371,6 @@ const CMIUtilString &CMICmnLogMediumFile::GetLineReturn() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set the directory to place the log file.
// Type: Method.
// Args: vPath - (R) Path to log.
diff --git a/lldb/tools/lldb-mi/MICmnMIOutOfBandRecord.cpp b/lldb/tools/lldb-mi/MICmnMIOutOfBandRecord.cpp
index 778043aeb82..6cef2835128 100644
--- a/lldb/tools/lldb-mi/MICmnMIOutOfBandRecord.cpp
+++ b/lldb/tools/lldb-mi/MICmnMIOutOfBandRecord.cpp
@@ -99,7 +99,6 @@ MapOutOfBandToToken(CMICmnMIOutOfBandRecord::OutOfBand_e veType) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Build the Out-of-band record's mandatory data part. The part up to
// the first
// (additional) result i.e. async-record ==> "*" type.
@@ -116,7 +115,6 @@ BuildAsyncRecord(CMICmnMIOutOfBandRecord::OutOfBand_e veType) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIOutOfBandRecord constructor.
// Type: Method.
// Args: None.
@@ -127,7 +125,6 @@ CMICmnMIOutOfBandRecord::CMICmnMIOutOfBandRecord()
: m_strAsyncRecord(MIRSRC(IDS_CMD_ERR_EVENT_HANDLED_BUT_NO_ACTION)) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIOutOfBandRecord constructor.
// Type: Method.
// Args: veType - (R) A MI Out-of-Bound enumeration.
@@ -138,7 +135,6 @@ CMICmnMIOutOfBandRecord::CMICmnMIOutOfBandRecord(OutOfBand_e veType)
: m_strAsyncRecord(BuildAsyncRecord(veType)) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIOutOfBandRecord constructor.
// Type: Method.
// Args: veType - (R) A MI Out-of-Bound enumeration.
@@ -153,7 +149,6 @@ CMICmnMIOutOfBandRecord::CMICmnMIOutOfBandRecord(
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIOutOfBandRecord constructor.
// Type: Method.
// Args: veType - (R) A MI Out-of-Bound enumeration.
@@ -168,7 +163,6 @@ CMICmnMIOutOfBandRecord::CMICmnMIOutOfBandRecord(
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIOutOfBandRecord destructor.
// Type: Overrideable.
// Args: None.
@@ -178,7 +172,6 @@ CMICmnMIOutOfBandRecord::CMICmnMIOutOfBandRecord(
CMICmnMIOutOfBandRecord::~CMICmnMIOutOfBandRecord() {}
//++
-//------------------------------------------------------------------------------------
// Details: Return the MI Out-of-band record as a string. The string is a direct
// result of
// work done on *this Out-of-band record so if not enough data is added
@@ -197,7 +190,6 @@ const CMIUtilString &CMICmnMIOutOfBandRecord::GetString() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Add to *this Out-of-band record additional information.
// Type: Method.
// Args: vResult - (R) A MI result object.
diff --git a/lldb/tools/lldb-mi/MICmnMIResultRecord.cpp b/lldb/tools/lldb-mi/MICmnMIResultRecord.cpp
index b56c3ad84c1..00d1ce13d34 100644
--- a/lldb/tools/lldb-mi/MICmnMIResultRecord.cpp
+++ b/lldb/tools/lldb-mi/MICmnMIResultRecord.cpp
@@ -14,7 +14,6 @@
#include "MICmnResources.h"
//++
-//------------------------------------------------------------------------------------
// Details: Map a result class to the corresponding string.
// Args: veType - (R) A MI result class enumeration.
// Return: const char* - The string corresponding to the result class.
@@ -39,7 +38,6 @@ MapResultClassToResultClassText(CMICmnMIResultRecord::ResultClass_e veType) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Build the result record's mandatory data part. The part up to the
// first
// (additional) result i.e. result-record ==> [ token ] "^"
@@ -58,7 +56,6 @@ BuildResultRecord(const CMIUtilString &vrToken,
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIResultRecord constructor.
// Type: Method.
// Args: None.
@@ -69,7 +66,6 @@ CMICmnMIResultRecord::CMICmnMIResultRecord()
: m_strResultRecord(MIRSRC(IDS_CMD_ERR_CMD_RUN_BUT_NO_ACTION)) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIResultRecord constructor.
// Type: Method.
// Args: vrToken - (R) The command's transaction ID or token.
@@ -82,7 +78,6 @@ CMICmnMIResultRecord::CMICmnMIResultRecord(const CMIUtilString &vrToken,
: m_strResultRecord(BuildResultRecord(vrToken, veType)) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIResultRecord constructor.
// Type: Method.
// Args: vrToken - (R) The command's transaction ID or token.
@@ -99,7 +94,6 @@ CMICmnMIResultRecord::CMICmnMIResultRecord(const CMIUtilString &vrToken,
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIResultRecord destructor.
// Type: Overrideable.
// Args: None.
@@ -109,7 +103,6 @@ CMICmnMIResultRecord::CMICmnMIResultRecord(const CMIUtilString &vrToken,
CMICmnMIResultRecord::~CMICmnMIResultRecord() {}
//++
-//------------------------------------------------------------------------------------
// Details: Return the MI result record as a string. The string is a direct
// result of
// work done on *this result record so if not enough data is added then
@@ -128,7 +121,6 @@ const CMIUtilString &CMICmnMIResultRecord::GetString() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Add to *this result record additional information.
// Type: Method.
// Args: vMIValue - (R) A MI value derived object.
diff --git a/lldb/tools/lldb-mi/MICmnMIValue.cpp b/lldb/tools/lldb-mi/MICmnMIValue.cpp
index 7f3f759817a..05ed71e584e 100644
--- a/lldb/tools/lldb-mi/MICmnMIValue.cpp
+++ b/lldb/tools/lldb-mi/MICmnMIValue.cpp
@@ -11,7 +11,6 @@
#include "MICmnResources.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIValue constructor.
// Type: Method.
// Args: None.
@@ -22,7 +21,6 @@ CMICmnMIValue::CMICmnMIValue()
: m_strValue(MIRSRC(IDS_WORD_INVALIDBRKTS)), m_bJustConstructed(true) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIValue destructor.
// Type: Overrideable.
// Args: None.
@@ -32,7 +30,6 @@ CMICmnMIValue::CMICmnMIValue()
CMICmnMIValue::~CMICmnMIValue() {}
//++
-//------------------------------------------------------------------------------------
// Details: Return the MI value as a string. The string is a direct result of
// work done on *this value so if not enough data is added then it is
// possible to return a malformed value. If nothing has been set or
diff --git a/lldb/tools/lldb-mi/MICmnMIValueConst.cpp b/lldb/tools/lldb-mi/MICmnMIValueConst.cpp
index 5f3b134ee2b..1cdbc6487b2 100644
--- a/lldb/tools/lldb-mi/MICmnMIValueConst.cpp
+++ b/lldb/tools/lldb-mi/MICmnMIValueConst.cpp
@@ -13,7 +13,6 @@
const CMIUtilString CMICmnMIValueConst::ms_constStrDblQuote("\"");
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIValueConst constructor.
// Type: Method.
// Args: vString - (R) MI Const c-string value.
@@ -26,7 +25,6 @@ CMICmnMIValueConst::CMICmnMIValueConst(const CMIUtilString &vString)
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIValueConst constructor.
// Type: Method.
// Args: vString - (R) MI Const c-string value.
@@ -42,7 +40,6 @@ CMICmnMIValueConst::CMICmnMIValueConst(const CMIUtilString &vString,
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIValueConst destructor.
// Type: Overrideable.
// Args: None.
@@ -52,7 +49,6 @@ CMICmnMIValueConst::CMICmnMIValueConst(const CMIUtilString &vString,
CMICmnMIValueConst::~CMICmnMIValueConst() {}
//++
-//------------------------------------------------------------------------------------
// Details: Build the Value Const data.
// Type: Method.
// Args: None.
diff --git a/lldb/tools/lldb-mi/MICmnMIValueList.cpp b/lldb/tools/lldb-mi/MICmnMIValueList.cpp
index 3bda4a47474..038d3ae36f0 100644
--- a/lldb/tools/lldb-mi/MICmnMIValueList.cpp
+++ b/lldb/tools/lldb-mi/MICmnMIValueList.cpp
@@ -11,7 +11,6 @@
#include "MICmnResources.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIValueList constructor.
// Type: Method.
// Args: vbValueTypeList - (R) True = yes value type list, false = result
@@ -24,7 +23,6 @@ CMICmnMIValueList::CMICmnMIValueList(const bool vbValueTypeList) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIValueList constructor.
// Construct a results only list.
// return MIstatus::failure.
@@ -40,7 +38,6 @@ CMICmnMIValueList::CMICmnMIValueList(const CMICmnMIValueResult &vResult) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIValueList constructor.
// Construct a value only list.
// Type: Method.
@@ -55,7 +52,6 @@ CMICmnMIValueList::CMICmnMIValueList(const CMICmnMIValue &vValue) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIValueList destructor.
// Type: Overrideable.
// Args: None.
@@ -65,7 +61,6 @@ CMICmnMIValueList::CMICmnMIValueList(const CMICmnMIValue &vValue) {
CMICmnMIValueList::~CMICmnMIValueList() {}
//++
-//------------------------------------------------------------------------------------
// Details: Build the result value's mandatory data part, one tuple
// Type: Method.
// Args: None.
@@ -78,7 +73,6 @@ void CMICmnMIValueList::BuildList() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Add another MI result object to the value list's of list is
// results.
// Only result objects can be added to a list of result otherwise this
@@ -94,7 +88,6 @@ void CMICmnMIValueList::Add(const CMICmnMIValueResult &vResult) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Add another MI value object to the value list's of list is values.
// Only values objects can be added to a list of values otherwise this
// function
@@ -107,7 +100,6 @@ void CMICmnMIValueList::Add(const CMICmnMIValueResult &vResult) {
void CMICmnMIValueList::Add(const CMICmnMIValue &vValue) { BuildList(vValue); }
//++
-//------------------------------------------------------------------------------------
// Details: Add another MI result object to the value list's of list is
// results.
// Only result objects can be added to a list of result otherwise this
@@ -134,7 +126,6 @@ void CMICmnMIValueList::BuildList(const CMICmnMIValueResult &vResult) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Add another MI value object to the value list's of list is values.
// Only values objects can be added to a list of values otherwise this
// function
@@ -164,7 +155,6 @@ void CMICmnMIValueList::BuildList(const CMICmnMIValue &vValue) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the contents of *this value object but without the outer
// most
// brackets.
diff --git a/lldb/tools/lldb-mi/MICmnMIValueResult.cpp b/lldb/tools/lldb-mi/MICmnMIValueResult.cpp
index 27b83105b1c..5ef60741342 100644
--- a/lldb/tools/lldb-mi/MICmnMIValueResult.cpp
+++ b/lldb/tools/lldb-mi/MICmnMIValueResult.cpp
@@ -14,7 +14,6 @@
const CMIUtilString CMICmnMIValueResult::ms_constStrEqual("=");
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIValueResult constructor.
// Type: Method.
// Args: None.
@@ -24,7 +23,6 @@ const CMIUtilString CMICmnMIValueResult::ms_constStrEqual("=");
CMICmnMIValueResult::CMICmnMIValueResult() : m_bEmptyConstruction(true) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIValueResult constructor.
// Type: Method.
// Args: vrVariable - (R) MI value's name.
@@ -40,7 +38,6 @@ CMICmnMIValueResult::CMICmnMIValueResult(const CMIUtilString &vrVariable,
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIValueResult constructor.
// Type: Method.
// Args: vrVariable - (R) MI value's name.
@@ -59,7 +56,6 @@ CMICmnMIValueResult::CMICmnMIValueResult(const CMIUtilString &vrVariable,
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIValueResult destructor.
// Type: Overrideable.
// Args: None.
@@ -69,7 +65,6 @@ CMICmnMIValueResult::CMICmnMIValueResult(const CMIUtilString &vrVariable,
CMICmnMIValueResult::~CMICmnMIValueResult() {}
//++
-//------------------------------------------------------------------------------------
// Details: Build the MI value result string.
// Type: Method.
// Args: None.
@@ -84,7 +79,6 @@ void CMICmnMIValueResult::BuildResult() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Build the MI value result string.
// Type: Method.
// Args: vrVariable - (R) MI value's name.
@@ -101,7 +95,6 @@ void CMICmnMIValueResult::BuildResult(const CMIUtilString &vVariable,
}
//++
-//------------------------------------------------------------------------------------
// Details: Append another MI value object to *this MI value result.
// Type: Method.
// Args: vrVariable - (R) MI value's name.
diff --git a/lldb/tools/lldb-mi/MICmnMIValueTuple.cpp b/lldb/tools/lldb-mi/MICmnMIValueTuple.cpp
index fc93c33dac8..2f05d219d4f 100644
--- a/lldb/tools/lldb-mi/MICmnMIValueTuple.cpp
+++ b/lldb/tools/lldb-mi/MICmnMIValueTuple.cpp
@@ -10,7 +10,6 @@
#include "MICmnMIValueTuple.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIValueTuple constructor.
// Type: Method.
// Args: None.
@@ -22,7 +21,6 @@ CMICmnMIValueTuple::CMICmnMIValueTuple() : m_bSpaceAfterComma(false) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIValueTuple constructor.
// Type: Method.
// Args: vResult - (R) MI result object.
@@ -37,7 +35,6 @@ CMICmnMIValueTuple::CMICmnMIValueTuple(const CMICmnMIValueResult &vResult)
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIValueTuple constructor.
// Type: Method.
// Args: vResult - (R) MI result object.
@@ -55,7 +52,6 @@ CMICmnMIValueTuple::CMICmnMIValueTuple(const CMICmnMIValueResult &vResult,
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnMIValueTuple destructor.
// Type: Overrideable.
// Args: None.
@@ -65,7 +61,6 @@ CMICmnMIValueTuple::CMICmnMIValueTuple(const CMICmnMIValueResult &vResult,
CMICmnMIValueTuple::~CMICmnMIValueTuple() {}
//++
-//------------------------------------------------------------------------------------
// Details: Build the result value's mandatory data part, one tuple
// Type: Method.
// Args: None.
@@ -78,7 +73,6 @@ void CMICmnMIValueTuple::BuildTuple() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Add another MI result object to the value's list of tuples.
// Type: Method.
// Args: vResult - (R) The MI result object.
@@ -107,7 +101,6 @@ void CMICmnMIValueTuple::BuildTuple(const CMICmnMIValueResult &vResult) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Add string value to the value's list of tuples.
// Type: Method.
// Args: vValue - (R) The string object.
@@ -129,7 +122,6 @@ void CMICmnMIValueTuple::BuildTuple(const CMIUtilString &vValue) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Add another MI value object to the value list's of list is values.
// Only values objects can be added to a list of values otherwise this
// function
@@ -144,7 +136,6 @@ void CMICmnMIValueTuple::Add(const CMICmnMIValueResult &vResult) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Add another MI value object to the value list's of list is values.
// Only values objects can be added to a list of values otherwise this
// function
@@ -163,7 +154,6 @@ void CMICmnMIValueTuple::Add(const CMICmnMIValueResult &vResult,
}
//++
-//------------------------------------------------------------------------------------
// Details: Add another MI value object to the value list's of list is values.
// Only values objects can be added to a list of values otherwise this
// function
@@ -182,7 +172,6 @@ void CMICmnMIValueTuple::Add(const CMICmnMIValueConst &vValue,
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the contents of *this value object but without the outer
// most
// brackets.
diff --git a/lldb/tools/lldb-mi/MICmnResources.cpp b/lldb/tools/lldb-mi/MICmnResources.cpp
index 3866dec63aa..3925f0b01dc 100644
--- a/lldb/tools/lldb-mi/MICmnResources.cpp
+++ b/lldb/tools/lldb-mi/MICmnResources.cpp
@@ -461,7 +461,6 @@ const CMICmnResources::SRsrcTextData
"Command '%s'. Must specify either a PID or a Name"}};
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnResources constructor.
// Type: Method.
// Args: None.
@@ -473,7 +472,6 @@ CMICmnResources::CMICmnResources() : m_nResourceId2TextDataSize(0) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnResources destructor.
// Type: Overridden.
// Args: None.
@@ -485,7 +483,6 @@ CMICmnResources::~CMICmnResources() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Initialize the resources and set locality for the server.
// Type: Method.
// Args: None.
@@ -505,7 +502,6 @@ bool CMICmnResources::Initialize() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release resources for *this object.
// Type: Method.
// Args: None.
@@ -529,7 +525,6 @@ bool CMICmnResources::Shutdown() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Initialize the resources and set locality for the server.
// Type: Method.
// Args: None.
@@ -550,7 +545,6 @@ bool CMICmnResources::ReadResourceStringData() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the corresponding text assigned to the resource ID.
// Type: Method.
// Args: vResourceId - (R) MI resource ID.
@@ -567,7 +561,6 @@ CMIUtilString CMICmnResources::GetString(const MIuint vResourceId) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Determine the MI resource ID existings.
// Type: Method.
// Args: vResourceId - (R) MI resource ID.
@@ -581,7 +574,6 @@ bool CMICmnResources::HasString(const MIuint vResourceId) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the resource text data for the given resource ID. If a
// resource ID
// cannot be found and error is given returning the ID of the resource
diff --git a/lldb/tools/lldb-mi/MICmnStreamStderr.cpp b/lldb/tools/lldb-mi/MICmnStreamStderr.cpp
index 09d9cf8ac86..f4f6a3ab8fe 100644
--- a/lldb/tools/lldb-mi/MICmnStreamStderr.cpp
+++ b/lldb/tools/lldb-mi/MICmnStreamStderr.cpp
@@ -14,7 +14,6 @@
#include "MIDriver.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnStreamStderr constructor.
// Type: Method.
// Args: None.
@@ -24,7 +23,6 @@
CMICmnStreamStderr::CMICmnStreamStderr() {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnStreamStderr destructor.
// Type: Overridable.
// Args: None.
@@ -34,7 +32,6 @@ CMICmnStreamStderr::CMICmnStreamStderr() {}
CMICmnStreamStderr::~CMICmnStreamStderr() { Shutdown(); }
//++
-//------------------------------------------------------------------------------------
// Details: Initialize resources for *this stderr stream.
// Type: Method.
// Args: None.
@@ -64,7 +61,6 @@ bool CMICmnStreamStderr::Initialize() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release resources for *this stderr stream.
// Type: Method.
// Args: None.
@@ -87,7 +83,6 @@ bool CMICmnStreamStderr::Shutdown() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Write text data to stderr. Prefix the message with "MI:". The text
// data does
// not need to include a carriage line return as this is added to the
@@ -114,7 +109,6 @@ bool CMICmnStreamStderr::Write(const CMIUtilString &vText,
}
//++
-//------------------------------------------------------------------------------------
// Details: Write an LLDB text message to stderr.
// The text data does not need to include a carriage line return as
// this is added
@@ -141,7 +135,6 @@ bool CMICmnStreamStderr::WriteLLDBMsg(const CMIUtilString &vText,
}
//++
-//------------------------------------------------------------------------------------
// Details: Write text data to stderr. The text data does not need to
// include a carriage line return as this is added to the text. The
// function also
@@ -188,7 +181,6 @@ bool CMICmnStreamStderr::WritePriv(const CMIUtilString &vText,
}
//++
-//------------------------------------------------------------------------------------
// Details: Lock the availability of the stream stderr. Other users of *this
// stream will
// be stalled until it is available (Unlock()).
@@ -204,7 +196,6 @@ bool CMICmnStreamStderr::Lock() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release a previously locked stderr.
// Type: Method.
// Args: None.
@@ -218,7 +209,6 @@ bool CMICmnStreamStderr::Unlock() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Take MI Driver text message and send to the stderr stream. Also
// output to the
// MI Log file.
@@ -237,7 +227,6 @@ bool CMICmnStreamStderr::TextToStderr(const CMIUtilString &vrTxt) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Take an LLDB message and send to the stderr stream. The message is
// not always
// an error message. The user has typed a command in to the Eclipse
diff --git a/lldb/tools/lldb-mi/MICmnStreamStdin.cpp b/lldb/tools/lldb-mi/MICmnStreamStdin.cpp
index 7b48bf3eef5..4084b36a891 100644
--- a/lldb/tools/lldb-mi/MICmnStreamStdin.cpp
+++ b/lldb/tools/lldb-mi/MICmnStreamStdin.cpp
@@ -21,7 +21,6 @@
#include "MIUtilSingletonHelper.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnStreamStdin constructor.
// Type: Method.
// Args: None.
@@ -32,7 +31,6 @@ CMICmnStreamStdin::CMICmnStreamStdin()
: m_strPromptCurrent("(gdb)"), m_bShowPrompt(true), m_pCmdBuffer(nullptr) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnStreamStdin destructor.
// Type: Overridable.
// Args: None.
@@ -42,7 +40,6 @@ CMICmnStreamStdin::CMICmnStreamStdin()
CMICmnStreamStdin::~CMICmnStreamStdin() { Shutdown(); }
//++
-//------------------------------------------------------------------------------------
// Details: Initialize resources for *this Stdin stream.
// Type: Method.
// Args: None.
@@ -79,7 +76,6 @@ bool CMICmnStreamStdin::Initialize() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release resources for *this Stdin stream.
// Type: Method.
// Args: None.
@@ -117,7 +113,6 @@ bool CMICmnStreamStdin::Shutdown() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Validate and set the text that forms the prompt on the command line.
// Type: Method.
// Args: vNewPrompt - (R) Text description.
@@ -139,7 +134,6 @@ bool CMICmnStreamStdin::SetPrompt(const CMIUtilString &vNewPrompt) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the command line prompt text currently being used.
// Type: Method.
// Args: None.
@@ -151,7 +145,6 @@ const CMIUtilString &CMICmnStreamStdin::GetPrompt() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set whether to display optional command line prompt. The prompt is
// output to
// stdout. Disable it when this may interfere with the client reading
@@ -169,7 +162,6 @@ void CMICmnStreamStdin::SetEnablePrompt(const bool vbYes) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Get whether to display optional command line prompt. The prompt is
// output to
// stdout. Disable it when this may interfere with the client reading
@@ -184,7 +176,6 @@ void CMICmnStreamStdin::SetEnablePrompt(const bool vbYes) {
bool CMICmnStreamStdin::GetEnablePrompt() const { return m_bShowPrompt; }
//++
-//------------------------------------------------------------------------------------
// Details: Wait on new line of data from stdin stream (completed by '\n' or
// '\r').
// Type: Method.
diff --git a/lldb/tools/lldb-mi/MICmnStreamStdout.cpp b/lldb/tools/lldb-mi/MICmnStreamStdout.cpp
index 88b7235506a..4a0e2d16adc 100644
--- a/lldb/tools/lldb-mi/MICmnStreamStdout.cpp
+++ b/lldb/tools/lldb-mi/MICmnStreamStdout.cpp
@@ -13,7 +13,6 @@
#include "MIDriver.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnStreamStdout constructor.
// Type: Method.
// Args: None.
@@ -23,7 +22,6 @@
CMICmnStreamStdout::CMICmnStreamStdout() {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnStreamStdout destructor.
// Type: Overridable.
// Args: None.
@@ -33,7 +31,6 @@ CMICmnStreamStdout::CMICmnStreamStdout() {}
CMICmnStreamStdout::~CMICmnStreamStdout() { Shutdown(); }
//++
-//------------------------------------------------------------------------------------
// Details: Initialize resources for *this Stdout stream.
// Type: Method.
// Args: None.
@@ -63,7 +60,6 @@ bool CMICmnStreamStdout::Initialize() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release resources for *this Stdout stream.
// Type: Method.
// Args: None.
@@ -86,7 +82,6 @@ bool CMICmnStreamStdout::Shutdown() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Write an MI format type response to stdout. The text data does not
// need to
// include a carriage line return as this is added to the text. The
@@ -106,7 +101,6 @@ bool CMICmnStreamStdout::WriteMIResponse(const CMIUtilString &vText,
}
//++
-//------------------------------------------------------------------------------------
// Details: Write text data to stdout. The text data does not need to
// include a carriage line return as this is added to the text. The
// function also
@@ -132,7 +126,6 @@ bool CMICmnStreamStdout::Write(const CMIUtilString &vText,
}
//++
-//------------------------------------------------------------------------------------
// Details: Write text data to stdout. The text data does not need to
// include a carriage line return as this is added to the text. The
// function also
@@ -179,7 +172,6 @@ bool CMICmnStreamStdout::WritePriv(const CMIUtilString &vText,
}
//++
-//------------------------------------------------------------------------------------
// Details: Lock the availability of the stream stdout. Other users of *this
// stream will
// be stalled until it is available (Unlock()).
@@ -195,7 +187,6 @@ bool CMICmnStreamStdout::Lock() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release a previously locked stdout.
// Type: Method.
// Args: None.
@@ -209,7 +200,6 @@ bool CMICmnStreamStdout::Unlock() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Take a text data and send to the stdout stream. Also output to the
// MI Log
// file.
@@ -225,7 +215,6 @@ bool CMICmnStreamStdout::TextToStdout(const CMIUtilString &vrTxt) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Write prompt to stdout if it's enabled.
// Type: Static method.
// Args: None.
diff --git a/lldb/tools/lldb-mi/MICmnThreadMgrStd.cpp b/lldb/tools/lldb-mi/MICmnThreadMgrStd.cpp
index 14ad5b52604..25afbbcb5d1 100644
--- a/lldb/tools/lldb-mi/MICmnThreadMgrStd.cpp
+++ b/lldb/tools/lldb-mi/MICmnThreadMgrStd.cpp
@@ -13,7 +13,6 @@
#include "MIUtilSingletonHelper.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnThreadMgr constructor.
// Type: Method.
// Args: None.
@@ -23,7 +22,6 @@
CMICmnThreadMgrStd::CMICmnThreadMgrStd() {}
//++
-//------------------------------------------------------------------------------------
// Details: CMICmnThreadMgr destructor.
// Type: Method.
// Args: None.
@@ -33,7 +31,6 @@ CMICmnThreadMgrStd::CMICmnThreadMgrStd() {}
CMICmnThreadMgrStd::~CMICmnThreadMgrStd() { Shutdown(); }
//++
-//------------------------------------------------------------------------------------
// Details: Initialise resources for *this thread manager.
// Type: Method.
// Args: None.
@@ -70,7 +67,6 @@ bool CMICmnThreadMgrStd::Initialize() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release resources for *this thread manager.
// Type: Method.
// Args: None.
@@ -107,7 +103,6 @@ bool CMICmnThreadMgrStd::Shutdown() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Ask the thread manager to kill all threads and wait until they have
// died
// Type: Method.
@@ -134,7 +129,6 @@ bool CMICmnThreadMgrStd::ThreadAllTerminate() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Add a thread object to *this manager's list of thread objects. The
// list to
// used to manage thread objects centrally.
diff --git a/lldb/tools/lldb-mi/MICmnThreadMgrStd.h b/lldb/tools/lldb-mi/MICmnThreadMgrStd.h
index bd8f791c1cb..ce8dd70525f 100644
--- a/lldb/tools/lldb-mi/MICmnThreadMgrStd.h
+++ b/lldb/tools/lldb-mi/MICmnThreadMgrStd.h
@@ -64,7 +64,6 @@ private:
};
//++
-//------------------------------------------------------------------------------------
// Details: Given a thread object start its (worker) thread to do work. The
// object is
// added to the *this manager for housekeeping and deletion of all
diff --git a/lldb/tools/lldb-mi/MIDataTypes.h b/lldb/tools/lldb-mi/MIDataTypes.h
index 51e890377c9..c1ed764e46c 100644
--- a/lldb/tools/lldb-mi/MIDataTypes.h
+++ b/lldb/tools/lldb-mi/MIDataTypes.h
@@ -14,7 +14,6 @@
#pragma once
-//--------------------------------------------------------------------------------------
// Windows headers:
#ifdef _WIN32
@@ -25,7 +24,6 @@
#endif // _WIN32
-//--------------------------------------------------------------------------------------
// Common definitions:
// Function return status
@@ -55,7 +53,6 @@ typedef unsigned int MIuint;
#endif // _WIN32
#endif // _WIN64
-//--------------------------------------------------------------------------------------
// Common types:
// Fundamentals:
diff --git a/lldb/tools/lldb-mi/MIDriver.cpp b/lldb/tools/lldb-mi/MIDriver.cpp
index 3cf30d69231..02361f4ccb9 100644
--- a/lldb/tools/lldb-mi/MIDriver.cpp
+++ b/lldb/tools/lldb-mi/MIDriver.cpp
@@ -43,7 +43,6 @@ const CMIUtilString
const CMIUtilString CMIDriver::ms_constAppNameLong(MIRSRC(IDS_MI_APPNAME_LONG));
//++
-//------------------------------------------------------------------------------------
// Details: CMIDriver constructor.
// Type: Method.
// Args: None.
@@ -61,7 +60,6 @@ CMIDriver::CMIDriver()
m_bHaveCommandFileNamePathOnCmdLine(false) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMIDriver destructor.
// Type: Overridden.
// Args: None.
@@ -71,7 +69,6 @@ CMIDriver::CMIDriver()
CMIDriver::~CMIDriver() {}
//++
-//------------------------------------------------------------------------------------
// Details: Set whether *this driver (the parent) is enabled to pass a command
// to its
// fall through (child) driver to interpret the command and do work
@@ -90,7 +87,6 @@ bool CMIDriver::SetEnableFallThru(const bool vbYes) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Get whether *this driver (the parent) is enabled to pass a command
// to its
// fall through (child) driver to interpret the command and do work
@@ -106,7 +102,6 @@ bool CMIDriver::GetEnableFallThru() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve MI's application name of itself.
// Type: Method.
// Args: None.
@@ -118,7 +113,6 @@ const CMIUtilString &CMIDriver::GetAppNameShort() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve MI's application name of itself.
// Type: Method.
// Args: None.
@@ -130,7 +124,6 @@ const CMIUtilString &CMIDriver::GetAppNameLong() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve MI's version description of itself.
// Type: Method.
// Args: None.
@@ -142,7 +135,6 @@ const CMIUtilString &CMIDriver::GetVersionDescription() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Initialize setup *this driver ready for use.
// Type: Method.
// Args: None.
@@ -191,7 +183,6 @@ bool CMIDriver::Initialize() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Unbind detach or release resources used by *this driver.
// Type: Method.
// Args: None.
@@ -238,7 +229,6 @@ bool CMIDriver::Shutdown() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Work function. Client (the driver's user) is able to append their
// own message
// in to the MI's Log trace file.
@@ -255,7 +245,6 @@ bool CMIDriver::WriteMessageToLog(const CMIUtilString &vMessage) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CDriverMgr calls *this driver initialize setup ready for use.
// Type: Overridden.
// Args: None.
@@ -266,7 +255,6 @@ bool CMIDriver::WriteMessageToLog(const CMIUtilString &vMessage) {
bool CMIDriver::DoInitialize() { return CMIDriver::Instance().Initialize(); }
//++
-//------------------------------------------------------------------------------------
// Details: CDriverMgr calls *this driver to unbind detach or release resources
// used by
// *this driver.
@@ -279,7 +267,6 @@ bool CMIDriver::DoInitialize() { return CMIDriver::Instance().Initialize(); }
bool CMIDriver::DoShutdown() { return CMIDriver::Instance().Shutdown(); }
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the name for *this driver.
// Type: Overridden.
// Args: None.
@@ -296,7 +283,6 @@ const CMIUtilString &CMIDriver::GetName() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve *this driver's last error condition.
// Type: Overridden.
// Args: None.
@@ -306,7 +292,6 @@ const CMIUtilString &CMIDriver::GetName() const {
CMIUtilString CMIDriver::GetError() const { return GetErrorDescription(); }
//++
-//------------------------------------------------------------------------------------
// Details: Call *this driver to return it's debugger.
// Type: Overridden.
// Args: None.
@@ -318,7 +303,6 @@ lldb::SBDebugger &CMIDriver::GetTheDebugger() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Specify another driver *this driver can call should this driver not
// be able
// to handle the client data input. DoFallThruToAnotherDriver() makes
@@ -336,7 +320,6 @@ bool CMIDriver::SetDriverToFallThruTo(const CMIDriverBase &vrOtherDriver) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Proxy function CMIDriverMgr IDriver interface implementation. *this
// driver's
// implementation called from here to match the existing function name
@@ -373,7 +356,6 @@ lldb::SBError CMIDriver::DoParseArgs(const int argc, const char *argv[],
}
//++
-//------------------------------------------------------------------------------------
// Details: Check the arguments that were passed to this program to make sure
// they are
// valid and to get their argument values (if any). The following are
@@ -483,7 +465,6 @@ lldb::SBError CMIDriver::ParseArgs(const int argc, const char *argv[],
}
//++
-//------------------------------------------------------------------------------------
// Details: A client can ask if *this driver is GDB/MI compatible.
// Type: Overridden.
// Args: None.
@@ -494,7 +475,6 @@ lldb::SBError CMIDriver::ParseArgs(const int argc, const char *argv[],
bool CMIDriver::GetDriverIsGDBMICompatibleDriver() const { return true; }
//++
-//------------------------------------------------------------------------------------
// Details: Start worker threads for the driver.
// Type: Method.
// Args: None.
@@ -521,7 +501,6 @@ bool CMIDriver::StartWorkerThreads() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Stop worker threads for the driver.
// Type: Method.
// Args: None.
@@ -535,7 +514,6 @@ bool CMIDriver::StopWorkerThreads() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Call this function puts *this driver to work.
// This function is used by the application's main thread.
// Type: Overridden.
@@ -610,7 +588,6 @@ bool CMIDriver::DoMainLoop() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set things in motion, set state etc that brings *this driver (and
// the
// application) to a tidy shutdown.
@@ -634,7 +611,6 @@ bool CMIDriver::DoAppQuit() {
}
//++
-//------------------------------------------------------------------------------------
// Details: *this driver passes text commands to a fall through driver is it
// does not
// understand them (the LLDB driver).
@@ -686,7 +662,6 @@ bool CMIDriver::InterpretCommandFallThruDriver(const CMIUtilString &vTextLine,
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the name for *this driver.
// Type: Overridden.
// Args: None.
@@ -696,7 +671,6 @@ bool CMIDriver::InterpretCommandFallThruDriver(const CMIUtilString &vTextLine,
const CMIUtilString &CMIDriver::GetDriverName() const { return GetName(); }
//++
-//------------------------------------------------------------------------------------
// Details: Get the unique ID for *this driver.
// Type: Overridden.
// Args: None.
@@ -706,7 +680,6 @@ const CMIUtilString &CMIDriver::GetDriverName() const { return GetName(); }
const CMIUtilString &CMIDriver::GetDriverId() const { return GetId(); }
//++
-//------------------------------------------------------------------------------------
// Details: This function allows *this driver to call on another driver to
// perform work
// should this driver not be able to handle the client data input.
@@ -731,7 +704,6 @@ bool CMIDriver::DoFallThruToAnotherDriver(const CMIUtilString &vCmd,
}
//++
-//------------------------------------------------------------------------------------
// Details: *this driver provides a file stream to other drivers on which *this
// driver
// write's out to and they read as expected input. *this driver is
@@ -752,7 +724,6 @@ FILE *CMIDriver::GetStdin() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: *this driver provides a file stream to other pass through assigned
// drivers
// so they know what to write to.
@@ -770,7 +741,6 @@ FILE *CMIDriver::GetStdout() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: *this driver provides a error file stream to other pass through
// assigned drivers
// so they know what to write to.
@@ -789,7 +759,6 @@ FILE *CMIDriver::GetStderr() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set a unique ID for *this driver. It cannot be empty.
// Type: Overridden.
// Args: vId - (R) Text description.
@@ -809,7 +778,6 @@ bool CMIDriver::SetId(const CMIUtilString &vId) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Get the unique ID for *this driver.
// Type: Overridden.
// Args: None.
@@ -819,7 +787,6 @@ bool CMIDriver::SetId(const CMIUtilString &vId) {
const CMIUtilString &CMIDriver::GetId() const { return m_strDriverId; }
//++
-//------------------------------------------------------------------------------------
// Details: Interpret the text data and match against current commands to see if
// there
// is a match. If a match then the command is issued and actioned on.
@@ -849,7 +816,6 @@ bool CMIDriver::InterpretCommand(const CMIUtilString &vTextLine) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Helper function for CMIDriver::InterpretCommandThisDriver.
// Convert a CLI command to MI command (just wrap any CLI command
// into "<tokens>-interpreter-exec command \"<CLI command>\"").
@@ -925,7 +891,6 @@ CMIDriver::WrapCLICommandIntoMICommand(const CMIUtilString &vTextLine) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Interpret the text data and match against current commands to see if
// there
// is a match. If a match then the command is issued and actioned on.
@@ -998,7 +963,6 @@ bool CMIDriver::InterpretCommandThisDriver(const CMIUtilString &vTextLine,
}
//++
-//------------------------------------------------------------------------------------
// Details: Having previously had the potential command validated and found
// valid now
// get the command executed.
@@ -1015,7 +979,6 @@ bool CMIDriver::ExecuteCommand(const SMICmdData &vCmdData) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set the MI Driver's exit application flag. The application checks
// this flag
// after every stdin line is read so the exit may not be instantaneous.
@@ -1048,7 +1011,6 @@ void CMIDriver::SetExitApplicationFlag(const bool vbForceExit) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Get the MI Driver's exit exit application flag.
// This is related to the running state of the MI driver.
// Type: Method.
@@ -1060,7 +1022,6 @@ void CMIDriver::SetExitApplicationFlag(const bool vbForceExit) {
bool CMIDriver::GetExitApplicationFlag() const { return m_bExitApp; }
//++
-//------------------------------------------------------------------------------------
// Details: Get the current running state of the MI Driver.
// Type: Method.
// Args: None.
@@ -1072,7 +1033,6 @@ CMIDriver::DriverState_e CMIDriver::GetCurrentDriverState() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set the current running state of the MI Driver to running and
// currently not in
// a debug session.
@@ -1119,7 +1079,6 @@ bool CMIDriver::SetDriverStateRunningNotDebugging() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set the current running state of the MI Driver to running and
// currently not in
// a debug session. The driver's state must in the state running and in
@@ -1168,7 +1127,6 @@ bool CMIDriver::SetDriverStateRunningDebugging() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Prepare the client IDE so it will start working/communicating with
// *this MI
// driver.
@@ -1184,7 +1142,6 @@ bool CMIDriver::InitClientIDEToMIDriver() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: The IDE Eclipse when debugging locally expects "(gdb)\n" character
// sequence otherwise it refuses to communicate and times out. This
// should be
@@ -1200,7 +1157,6 @@ bool CMIDriver::InitClientIDEEclipse() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Ask *this driver whether it found an executable in the MI Driver's
// list of
// arguments which to open and debug. If so instigate commands to set
@@ -1219,7 +1175,6 @@ bool CMIDriver::HaveExecutableFileNamePathOnCmdLine() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve from *this driver executable file name path to start a
// debug session
// with (if present see HaveExecutableFileNamePathOnCmdLine()).
@@ -1233,7 +1188,6 @@ const CMIUtilString &CMIDriver::GetExecutableFileNamePathOnCmdLine() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Execute commands (by injecting them into the stdin line queue
// container) and
// other code to set up the MI Driver such that is can take the
@@ -1256,7 +1210,6 @@ bool CMIDriver::LocalDebugSessionStartupExecuteCommands() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set the MI Driver into "its debugging an executable passed as an
// argument"
// mode as against running via a client like Eclipse.
@@ -1270,7 +1223,6 @@ void CMIDriver::SetDriverDebuggingArgExecutable() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the MI Driver state indicating if it is operating in "its
// debugging
// an executable passed as an argument" mode as against running via a
@@ -1286,7 +1238,6 @@ bool CMIDriver::IsDriverDebuggingArgExecutable() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Execute commands from command source file in specified mode, and
// set exit-flag if needed.
// Type: Method.
@@ -1352,7 +1303,6 @@ bool CMIDriver::ExecuteCommandFile(const bool vbAsyncMode) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Gets called when lldb-mi gets a signal. Stops the process if it was
// SIGINT.
//
diff --git a/lldb/tools/lldb-mi/MIDriverBase.cpp b/lldb/tools/lldb-mi/MIDriverBase.cpp
index 04bc7d2a4ec..9958770ff42 100644
--- a/lldb/tools/lldb-mi/MIDriverBase.cpp
+++ b/lldb/tools/lldb-mi/MIDriverBase.cpp
@@ -14,7 +14,6 @@
#include "MIDriverBase.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMIDriverBase constructor.
// Type: Method.
// Args: None.
@@ -25,7 +24,6 @@ CMIDriverBase::CMIDriverBase()
: m_pDriverFallThru(nullptr), m_pDriverParent(nullptr), m_bExitApp(false) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMIDriverBase destructor.
// Type: Overrideable.
// Args: None.
@@ -35,7 +33,6 @@ CMIDriverBase::CMIDriverBase()
CMIDriverBase::~CMIDriverBase() { m_pDriverFallThru = NULL; }
//++
-//------------------------------------------------------------------------------------
// Details: This function allows *this driver to call on another driver to
// perform work
// should this driver not be able to handle the client data input.
@@ -55,7 +52,6 @@ bool CMIDriverBase::DoFallThruToAnotherDriver(const CMIUtilString &vCmd,
}
//++
-//------------------------------------------------------------------------------------
// Details: This function allows *this driver to call on another driver to
// perform work
// should this driver not be able to handle the client data input.
@@ -74,7 +70,6 @@ bool CMIDriverBase::SetDriverToFallThruTo(const CMIDriverBase &vrOtherDriver) {
}
//++
-//------------------------------------------------------------------------------------
// Details: This function allows *this driver to call functionality on the
// parent driver
// ask for information for example.
@@ -93,7 +88,6 @@ bool CMIDriverBase::SetDriverParent(const CMIDriverBase &vrOtherDriver) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the parent driver to *this driver if one assigned. If
// assigned *this
// is the pass through driver that the parent driver passes work to.
@@ -108,7 +102,6 @@ CMIDriverBase *CMIDriverBase::GetDriversParent() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the pointer to the other fall through driver *this driver
// is using
// (or not using).
@@ -123,7 +116,6 @@ CMIDriverBase *CMIDriverBase::GetDriverToFallThruTo() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: *this driver provides a file stream to other drivers on which *this
// driver
// write's out to and they read as expected input. *this driver is
@@ -140,7 +132,6 @@ FILE *CMIDriverBase::GetStdin() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: *this driver provides a file stream to other pass through assigned
// drivers
// so they know what to write to.
@@ -155,7 +146,6 @@ FILE *CMIDriverBase::GetStdout() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: *this driver provides a error file stream to other pass through
// assigned drivers
// so they know what to write to.
@@ -170,7 +160,6 @@ FILE *CMIDriverBase::GetStderr() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set the MI Driver's exit application flag. The application checks
// this flag
// after every stdin line is read so the exit may not be instantaneous.
diff --git a/lldb/tools/lldb-mi/MIDriverMain.cpp b/lldb/tools/lldb-mi/MIDriverMain.cpp
index eac14127a16..8bc4571a458 100644
--- a/lldb/tools/lldb-mi/MIDriverMain.cpp
+++ b/lldb/tools/lldb-mi/MIDriverMain.cpp
@@ -51,7 +51,6 @@
// CODETAG_IOR_SIGNALS
//++
-//------------------------------------------------------------------------------------
// Details: The SIGINT signal is sent to a process by its controlling terminal
// when a
// user wishes to interrupt the process. This is typically initiated by
@@ -85,7 +84,6 @@ void sigint_handler(int vSigno) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Init the MI driver system. Initialize the whole driver system which
// includes
// both the original LLDB driver and the MI driver.
@@ -111,7 +109,6 @@ bool DriverSystemInit() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Shutdown the debugger system. Release / terminate resources external
// to
// specifically the MI driver.
@@ -131,7 +128,6 @@ bool DriverSystemShutdown(const bool vbAppExitOk) {
}
//++
-//------------------------------------------------------------------------------------
// Details: MI's application start point of execution. The application runs in
// two modes.
// An LLDB native driver mode where it acts no different from the LLDB
diff --git a/lldb/tools/lldb-mi/MIDriverMgr.cpp b/lldb/tools/lldb-mi/MIDriverMgr.cpp
index 8dc1c648929..26c4add8e3f 100644
--- a/lldb/tools/lldb-mi/MIDriverMgr.cpp
+++ b/lldb/tools/lldb-mi/MIDriverMgr.cpp
@@ -19,7 +19,6 @@
#include "MIUtilSingletonHelper.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMIDriverMgr constructor.
// Type: Method.
// Args: None.
@@ -29,7 +28,6 @@
CMIDriverMgr::CMIDriverMgr() : m_pDriverCurrent(nullptr), m_bInMi2Mode(false) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMIDriverMgr destructor.
// Type: Overridden.
// Args: None.
@@ -39,7 +37,6 @@ CMIDriverMgr::CMIDriverMgr() : m_pDriverCurrent(nullptr), m_bInMi2Mode(false) {}
CMIDriverMgr::~CMIDriverMgr() { Shutdown(); }
//++
-//------------------------------------------------------------------------------------
// Details: Initialize *this manager.
// Type: Method.
// Args: None.
@@ -76,7 +73,6 @@ bool CMIDriverMgr::Initialize() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Unbind detach or release resources used by this server in general
// common
// functionality shared between versions of any server interfaces
@@ -119,7 +115,6 @@ bool CMIDriverMgr::Shutdown() {
return bOk;
}
//++
-//------------------------------------------------------------------------------------
// Details: Unregister all the Driver registered with *this manager. The manager
// also
// deletes
@@ -146,7 +141,6 @@ bool CMIDriverMgr::UnregisterDriverAll() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Register a driver with *this Driver Manager. Call
// SetUseThisDriverToDoWork()
// inform the manager which driver is the one to the work. The manager
@@ -183,7 +177,6 @@ bool CMIDriverMgr::RegisterDriver(const IDriver &vrDriver,
}
//++
-//------------------------------------------------------------------------------------
// Details: Query the Driver Manager to see if *this manager has the driver
// already
// registered.
@@ -208,7 +201,6 @@ bool CMIDriverMgr::HaveDriverAlready(const IDriver &vrDriver) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Unregister a driver from the Driver Manager. Call the
// SetUseThisDriverToDoWork()
// function to define another driver to do work if the one being
@@ -240,7 +232,6 @@ bool CMIDriverMgr::UnregisterDriver(const IDriver &vrDriver) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Specify the driver to do work. The Driver Manager drives this
// driver. Any
// previous driver doing work is not called anymore (so be sure the
@@ -266,7 +257,6 @@ bool CMIDriverMgr::SetUseThisDriverToDoWork(const IDriver &vrADriver) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Ask *this manager which driver is currently doing the work.
// Type: Method.
// Args: None.
@@ -279,7 +269,6 @@ CMIDriverMgr::IDriver *CMIDriverMgr::GetUseThisDriverToDoWork() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Call this function puts *this driver to work.
// Type: Method.
// Args: None.
@@ -306,7 +295,6 @@ bool CMIDriverMgr::DriverMainLoop() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Get the current driver to validate executable command line
// arguments.
// Type: Method.
@@ -356,7 +344,6 @@ bool CMIDriverMgr::DriverParseArgs(const int argc, const char *argv[],
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the current driver's last error condition.
// Type: Method.
// Args: None.
@@ -375,7 +362,6 @@ CMIUtilString CMIDriverMgr::DriverGetError() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the current driver's name.
// Type: Method.
// Args: None.
@@ -395,7 +381,6 @@ CMIUtilString CMIDriverMgr::DriverGetName() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the current driver's debugger object.
// Type: Method.
// Args: None.
@@ -416,7 +401,6 @@ lldb::SBDebugger *CMIDriverMgr::DriverGetTheDebugger() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Check the arguments given on the command line. The main purpose of
// this
// function is to check for the presence of the --interpreter option.
@@ -605,7 +589,6 @@ bool CMIDriverMgr::ParseArgs(const int argc, const char *argv[],
}
//++
-//------------------------------------------------------------------------------------
// Details: Return formatted application version and name information.
// Type: Method.
// Args: None.
@@ -623,7 +606,6 @@ CMIUtilString CMIDriverMgr::GetAppVersion() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Return formatted help information on all the MI command line
// options.
// Type: Method.
@@ -655,7 +637,6 @@ CMIUtilString CMIDriverMgr::GetHelpOnCmdLineArgOptions() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Search the registered drivers and return the first driver which says
// it is
// GDB/MI compatible i.e. the CMIDriver class.
@@ -684,7 +665,6 @@ CMIDriverMgr::IDriver *CMIDriverMgr::GetFirstMIDriver() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Search the registered drivers and return the first driver which says
// it is
// not GDB/MI compatible i.e. the LLDB Driver class.
@@ -713,7 +693,6 @@ CMIDriverMgr::IDriver *CMIDriverMgr::GetFirstNonMIDriver() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Search the registered drivers and return driver with the specified
// ID.
// Type: Method.
@@ -734,7 +713,6 @@ CMIDriverMgr::GetDriver(const CMIUtilString &vrDriverId) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Gets called when lldb-mi gets a signal. Passed signal to current
// driver.
//
diff --git a/lldb/tools/lldb-mi/MIUtilDateTimeStd.cpp b/lldb/tools/lldb-mi/MIUtilDateTimeStd.cpp
index 0688c850b27..e92250a4f2d 100644
--- a/lldb/tools/lldb-mi/MIUtilDateTimeStd.cpp
+++ b/lldb/tools/lldb-mi/MIUtilDateTimeStd.cpp
@@ -11,7 +11,6 @@
#include "MICmnResources.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilDateTimeStd constructor.
// Type: Method.
// Args: None.
@@ -21,7 +20,6 @@
CMIUtilDateTimeStd::CMIUtilDateTimeStd() {}
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilDateTimeStd destructor.
// Type: Method.
// Args: None.
@@ -31,7 +29,6 @@ CMIUtilDateTimeStd::CMIUtilDateTimeStd() {}
CMIUtilDateTimeStd::~CMIUtilDateTimeStd() {}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve system local current date. Format is MM/DD/YYYY.
// Type: Method.
// Args: None.
@@ -50,7 +47,6 @@ CMIUtilString CMIUtilDateTimeStd::GetDate() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve system local current time. Format is HH:MM:SS 24 hour
// clock.
// Type: Method.
@@ -70,7 +66,6 @@ CMIUtilString CMIUtilDateTimeStd::GetTime() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve system local current date and time in yyyy-MM-dd--HH-mm-ss
// format for log file names.
// Type: Method.
diff --git a/lldb/tools/lldb-mi/MIUtilDebug.cpp b/lldb/tools/lldb-mi/MIUtilDebug.cpp
index 46b2702357a..4b418f390ca 100644
--- a/lldb/tools/lldb-mi/MIUtilDebug.cpp
+++ b/lldb/tools/lldb-mi/MIUtilDebug.cpp
@@ -17,7 +17,6 @@
#include "MIUtilDebug.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilDebug constructor.
// Type: Method.
// Args: None.
@@ -27,7 +26,6 @@
CMIUtilDebug::CMIUtilDebug() {}
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilDebug destructor.
// Type: Method.
// Args: None.
@@ -37,7 +35,6 @@ CMIUtilDebug::CMIUtilDebug() {}
CMIUtilDebug::~CMIUtilDebug() {}
//++
-//------------------------------------------------------------------------------------
// Details: Temporarily stall the process/application to give the programmer the
// opportunity to attach a debugger. How to use: Put a break in the
// programmer
@@ -61,16 +58,12 @@ void CMIUtilDebug::WaitForDbgAttachInfinteLoop() {
}
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
// Instantiations:
CMICmnLog &CMIUtilDebugFnTrace::ms_rLog = CMICmnLog::Instance();
MIuint CMIUtilDebugFnTrace::ms_fnDepthCnt = 0;
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilDebugFnTrace constructor.
// Type: Method.
// Args: vFnName - (R) The text to insert into the log.
@@ -85,7 +78,6 @@ CMIUtilDebugFnTrace::CMIUtilDebugFnTrace(const CMIUtilString &vFnName)
}
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilDebugFnTrace destructor.
// Type: Method.
// Args: None.
diff --git a/lldb/tools/lldb-mi/MIUtilFileStd.cpp b/lldb/tools/lldb-mi/MIUtilFileStd.cpp
index 1af9a5871d6..2d8a05985e5 100644
--- a/lldb/tools/lldb-mi/MIUtilFileStd.cpp
+++ b/lldb/tools/lldb-mi/MIUtilFileStd.cpp
@@ -21,7 +21,6 @@
#include "llvm/Support/Errno.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilFileStd constructor.
// Type: Method.
// Args: None.
@@ -42,7 +41,6 @@ CMIUtilFileStd::CMIUtilFileStd()
}
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilFileStd destructor.
// Type: Method.
// Args: None.
@@ -52,7 +50,6 @@ CMIUtilFileStd::CMIUtilFileStd()
CMIUtilFileStd::~CMIUtilFileStd() { Close(); }
//++
-//------------------------------------------------------------------------------------
// Details: Open file for writing. On the first call to this function after
// *this object
// is created the file is either created or replace, from then on open
@@ -111,7 +108,6 @@ bool CMIUtilFileStd::CreateWrite(const CMIUtilString &vFileNamePath,
}
//++
-//------------------------------------------------------------------------------------
// Details: Write data to existing opened file.
// Type: Method.
// Args: vData - (R) Text data.
@@ -149,7 +145,6 @@ bool CMIUtilFileStd::Write(const CMIUtilString &vData) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Write data to existing opened file.
// Type: Method.
// Args: vData - (R) Text data.
@@ -186,7 +181,6 @@ bool CMIUtilFileStd::Write(const char *vpData, const MIuint vCharCnt) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Close existing opened file. Note Close() must must an open!
// Type: Method.
// Args: None.
@@ -204,7 +198,6 @@ void CMIUtilFileStd::Close() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve state of whether the file is ok.
// Type: Method.
// Args: None.
@@ -215,7 +208,6 @@ void CMIUtilFileStd::Close() {
bool CMIUtilFileStd::IsOk() const { return !m_bFileError; }
//++
-//------------------------------------------------------------------------------------
// Details: Status on a file existing already.
// Type: Method.
// Args: vFileNamePath.
@@ -239,7 +231,6 @@ bool CMIUtilFileStd::IsFileExist(const CMIUtilString &vFileNamePath) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the file current carriage line return characters used.
// Type: Method.
// Args: None.
@@ -251,7 +242,6 @@ const CMIUtilString &CMIUtilFileStd::GetLineReturn() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Given a file name directory path, strip off the filename and return
// the path.
// It look for either backslash or forward slash.
@@ -275,7 +265,6 @@ CMIUtilFileStd::StripOffFileName(const CMIUtilString &vDirectoryPath) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Return either backslash or forward slash appropriate to the OS this
// application
// is running on.
diff --git a/lldb/tools/lldb-mi/MIUtilMapIdToVariant.cpp b/lldb/tools/lldb-mi/MIUtilMapIdToVariant.cpp
index 2e88f12ccbe..9361cedab3e 100644
--- a/lldb/tools/lldb-mi/MIUtilMapIdToVariant.cpp
+++ b/lldb/tools/lldb-mi/MIUtilMapIdToVariant.cpp
@@ -10,7 +10,6 @@
#include "MIUtilMapIdToVariant.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilMapIdToVariant constructor.
// Type: Method.
// Args: None.
@@ -20,7 +19,6 @@
CMIUtilMapIdToVariant::CMIUtilMapIdToVariant() {}
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilMapIdToVariant destructor.
// Type: Method.
// Args: None.
@@ -30,7 +28,6 @@ CMIUtilMapIdToVariant::CMIUtilMapIdToVariant() {}
CMIUtilMapIdToVariant::~CMIUtilMapIdToVariant() {}
//++
-//------------------------------------------------------------------------------------
// Details: Remove at the data from *this container.
// Type: Method.
// Args: None.
@@ -40,7 +37,6 @@ CMIUtilMapIdToVariant::~CMIUtilMapIdToVariant() {}
void CMIUtilMapIdToVariant::Clear() { m_mapKeyToVariantValue.clear(); }
//++
-//------------------------------------------------------------------------------------
// Details: Check an ID is present already in *this container.
// Type: Method.
// Args: vId - (R) Unique ID i.e. GUID.
@@ -55,7 +51,6 @@ bool CMIUtilMapIdToVariant::HaveAlready(const CMIUtilString &vId) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Determine if *this container is currently holding any data.
// Type: Method.
// Args: None.
@@ -67,7 +62,6 @@ bool CMIUtilMapIdToVariant::IsEmpty() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Check the ID is valid to be registered.
// Type: Method.
// Args: vId - (R) Unique ID i.e. GUID.
@@ -85,7 +79,6 @@ bool CMIUtilMapIdToVariant::IsValid(const CMIUtilString &vId) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Remove from *this contain a data object specified by ID. The data
// object
// when removed also calls its destructor should it have one.
diff --git a/lldb/tools/lldb-mi/MIUtilMapIdToVariant.h b/lldb/tools/lldb-mi/MIUtilMapIdToVariant.h
index 8e684b3e9c6..ba3e176e0c4 100644
--- a/lldb/tools/lldb-mi/MIUtilMapIdToVariant.h
+++ b/lldb/tools/lldb-mi/MIUtilMapIdToVariant.h
@@ -55,7 +55,6 @@ private:
};
//++
-//------------------------------------------------------------------------------------
// Details: Add to *this container a data object of general type identified by
// an ID.
// If the data with that ID already exists in the container it is
@@ -89,7 +88,6 @@ bool CMIUtilMapIdToVariant::Add(const CMIUtilString &vId, const T &vData) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve a data object from *this container identified by the
// specified ID.
// Type: Method.
diff --git a/lldb/tools/lldb-mi/MIUtilString.cpp b/lldb/tools/lldb-mi/MIUtilString.cpp
index 27a39da1f06..986de963450 100644
--- a/lldb/tools/lldb-mi/MIUtilString.cpp
+++ b/lldb/tools/lldb-mi/MIUtilString.cpp
@@ -20,7 +20,6 @@
#include "MIUtilString.h"
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilString constructor.
// Type: Method.
// Args: None.
@@ -30,7 +29,6 @@
CMIUtilString::CMIUtilString() : std::string() {}
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilString constructor.
// Type: Method.
// Args: vpData - Pointer to UTF8 text data.
@@ -41,7 +39,6 @@ CMIUtilString::CMIUtilString(const char *vpData)
: std::string(WithNullAsEmpty(vpData)) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilString constructor.
// Type: Method.
// Args: vpStr - Text data.
@@ -51,7 +48,6 @@ CMIUtilString::CMIUtilString(const char *vpData)
CMIUtilString::CMIUtilString(const std::string &vrStr) : std::string(vrStr) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilString assignment operator.
// Type: Method.
// Args: vpRhs - Pointer to UTF8 text data.
@@ -64,7 +60,6 @@ CMIUtilString &CMIUtilString::operator=(const char *vpRhs) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilString assignment operator.
// Type: Method.
// Args: vrRhs - The other string to copy from.
@@ -77,7 +72,6 @@ CMIUtilString &CMIUtilString::operator=(const std::string &vrRhs) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilString destructor.
// Type: Method.
// Args: None.
@@ -87,7 +81,6 @@ CMIUtilString &CMIUtilString::operator=(const std::string &vrRhs) {
CMIUtilString::~CMIUtilString() {}
//++
-//------------------------------------------------------------------------------------
// Details: Perform a snprintf format style on a string data. A new string
// object is
// created and returned.
@@ -146,7 +139,6 @@ CMIUtilString CMIUtilString::FormatPriv(const CMIUtilString &vrFormat,
}
//++
-//------------------------------------------------------------------------------------
// Details: Perform a snprintf format style on a string data. A new string
// object is
// created and returned.
@@ -167,7 +159,6 @@ CMIUtilString CMIUtilString::Format(const char *vFormating, ...) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Perform a snprintf format style on a string data. A new string
// object is
// created and returned.
@@ -183,7 +174,6 @@ CMIUtilString CMIUtilString::FormatValist(const CMIUtilString &vrFormating,
}
//++
-//------------------------------------------------------------------------------------
// Details: Splits string into array of strings using delimiter. If multiple
// delimiter
// are found in sequence then they are not added to the list of splits.
@@ -227,7 +217,6 @@ size_t CMIUtilString::Split(const CMIUtilString &vDelimiter,
}
//++
-//------------------------------------------------------------------------------------
// Details: Splits string into array of strings using delimiter. However the
// string is
// also considered for text surrounded by quotes. Text with quotes
@@ -286,7 +275,6 @@ size_t CMIUtilString::SplitConsiderQuotes(const CMIUtilString &vDelimiter,
}
//++
-//------------------------------------------------------------------------------------
// Details: Split string into lines using \n and return an array of strings.
// Type: Method.
// Args: vwVecSplits - (W) Container of splits found in string data.
@@ -298,7 +286,6 @@ size_t CMIUtilString::SplitLines(VecString_t &vwVecSplits) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Remove '\n' from the end of string if found. It does not alter
// *this string.
// Type: Method.
@@ -317,7 +304,6 @@ CMIUtilString CMIUtilString::StripCREndOfLine() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Remove all '\n' from the string and replace with a space. It does
// not alter
// *this string.
@@ -331,7 +317,6 @@ CMIUtilString CMIUtilString::StripCRAll() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Find and replace all matches of a sub string with another string. It
// does not
// alter *this string.
@@ -362,7 +347,6 @@ CMIUtilString::FindAndReplace(const CMIUtilString &vFind,
}
//++
-//------------------------------------------------------------------------------------
// Details: Check if *this string is a decimal number.
// Type: Method.
// Args: None.
@@ -381,7 +365,6 @@ bool CMIUtilString::IsNumber() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Check if *this string is a hexadecimal number.
// Type: Method.
// Args: None.
@@ -399,7 +382,6 @@ bool CMIUtilString::IsHexadecimalNumber() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Extract the number from the string. The number can be either a
// hexadecimal or
// natural number. It cannot contain other non-numeric characters.
@@ -422,7 +404,6 @@ bool CMIUtilString::ExtractNumber(MIint64 &vwrNumber) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Extract the number from the hexadecimal string..
// Type: Method.
// Args: vwrNumber - (W) Number extracted from the string.
@@ -447,7 +428,6 @@ bool CMIUtilString::ExtractNumberFromHexadecimal(MIint64 &vwrNumber) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Determine if the text is all valid alpha numeric characters. Letters
// can be
// either upper or lower case.
@@ -471,7 +451,6 @@ bool CMIUtilString::IsAllValidAlphaAndNumeric(const char *vpText) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Check if two strings share equal contents.
// Type: Method.
// Args: vrLhs - (R) String A.
@@ -489,7 +468,6 @@ bool CMIUtilString::Compare(const CMIUtilString &vrLhs,
}
//++
-//------------------------------------------------------------------------------------
// Details: Remove from either end of *this string the following: " \t\n\v\f\r".
// Type: Method.
// Args: None.
@@ -512,7 +490,6 @@ CMIUtilString CMIUtilString::Trim() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Remove from either end of *this string the specified character.
// Type: Method.
// Args: None.
@@ -531,7 +508,6 @@ CMIUtilString CMIUtilString::Trim(const char vChar) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Do a printf equivalent for printing a number in binary i.e. "b%llB".
// Type: Static method.
// Args: vnDecimal - (R) The number to represent in binary.
@@ -564,7 +540,6 @@ CMIUtilString CMIUtilString::FormatBinary(const MIuint64 vnDecimal) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Remove from a string doubled up characters so only one set left.
// Characters
// are only removed if the previous character is already a same
@@ -580,7 +555,6 @@ CMIUtilString CMIUtilString::RemoveRepeatedCharacters(const char vChar) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Recursively remove from a string doubled up characters so only one
// set left.
// Characters are only removed if the previous character is already a
@@ -615,7 +589,6 @@ CMIUtilString CMIUtilString::RemoveRepeatedCharacters(size_t vnPos,
}
//++
-//------------------------------------------------------------------------------------
// Details: Is the text in *this string surrounded by quotes.
// Type: Method.
// Args: None.
@@ -633,7 +606,6 @@ bool CMIUtilString::IsQuoted() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Find first occurrence in *this string which matches the pattern.
// Type: Method.
// Args: vrPattern - (R) The pattern to search for.
@@ -648,7 +620,6 @@ size_t CMIUtilString::FindFirst(const CMIUtilString &vrPattern,
}
//++
-//------------------------------------------------------------------------------------
// Details: Find first occurrence in *this string which matches the pattern and
// isn't surrounded by quotes.
// Type: Method.
@@ -697,7 +668,6 @@ size_t CMIUtilString::FindFirst(const CMIUtilString &vrPattern,
}
//++
-//------------------------------------------------------------------------------------
// Details: Find first occurrence in *this string which doesn't match the
// pattern.
// Type: Method.
@@ -724,7 +694,6 @@ size_t CMIUtilString::FindFirstNot(const CMIUtilString &vrPattern,
}
//++
-//------------------------------------------------------------------------------------
// Details: Find first occurrence of not escaped quotation mark in *this string.
// Type: Method.
// Args: vnPos - Position of the first character in the string to be
@@ -755,7 +724,6 @@ size_t CMIUtilString::FindFirstQuote(size_t vnPos) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Get escaped string from *this string.
// Type: Method.
// Args: None.
@@ -777,7 +745,6 @@ CMIUtilString CMIUtilString::Escape(bool vbEscapeQuotes /* = false */) const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Get string with backslashes in front of double quote '"' and
// backslash '\\'
// characters.
@@ -813,7 +780,6 @@ CMIUtilString CMIUtilString::AddSlashes() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Remove backslashes added by CMIUtilString::AddSlashes.
// Type: Method.
// Args: None.
diff --git a/lldb/tools/lldb-mi/MIUtilThreadBaseStd.cpp b/lldb/tools/lldb-mi/MIUtilThreadBaseStd.cpp
index 30d129ebbe0..72cf1474a78 100644
--- a/lldb/tools/lldb-mi/MIUtilThreadBaseStd.cpp
+++ b/lldb/tools/lldb-mi/MIUtilThreadBaseStd.cpp
@@ -14,7 +14,6 @@
#include "MIUtilThreadBaseStd.h"
//++
-//------------------------------------------------------------------------------------
// Details: Constructor.
// Type: None.
// Args: None.
@@ -25,7 +24,6 @@ CMIUtilThreadActiveObjBase::CMIUtilThreadActiveObjBase()
: m_references(0), m_bHasBeenKilled(false) {}
//++
-//------------------------------------------------------------------------------------
// Details: Destructor.
// Type: None.
// Args: None.
@@ -38,7 +36,6 @@ CMIUtilThreadActiveObjBase::~CMIUtilThreadActiveObjBase() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Check if an object is already running.
// Type: Method.
// Args: None.
@@ -52,7 +49,6 @@ bool CMIUtilThreadActiveObjBase::ThreadIsActive() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set up *this thread.
// Type: Method.
// Args: None.
@@ -66,7 +62,6 @@ bool CMIUtilThreadActiveObjBase::ThreadExecute() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Acquire a reference to CMIUtilThreadActiveObjBase.
// Type: Method.
// Args: None.
@@ -85,7 +80,6 @@ bool CMIUtilThreadActiveObjBase::Acquire() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release a reference to CMIUtilThreadActiveObjBase.
// Type: Method.
// Args: None.
@@ -104,7 +98,6 @@ bool CMIUtilThreadActiveObjBase::Release() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Force this thread to stop, regardless of references
// Type: Method.
// Args: None.
@@ -123,7 +116,6 @@ bool CMIUtilThreadActiveObjBase::ThreadKill() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Proxy to thread join.
// Type: Method.
// Args: None.
@@ -134,7 +126,6 @@ bool CMIUtilThreadActiveObjBase::ThreadKill() {
bool CMIUtilThreadActiveObjBase::ThreadJoin() { return m_thread.Join(); }
//++
-//------------------------------------------------------------------------------------
// Details: This function is the entry point of this object thread.
// It is a trampoline to an instances operation manager.
// Type: Static method.
@@ -158,7 +149,6 @@ MIuint CMIUtilThreadActiveObjBase::ThreadEntry(void *vpThisClass) {
}
//++
-//------------------------------------------------------------------------------------
// Details: This function forms a small management routine, to handle the
// thread's running.
// Type: Method.
@@ -196,15 +186,11 @@ void CMIUtilThreadActiveObjBase::ThreadManage() {
m_thread.Finish();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//
CMIUtilThread::CMIUtilThread() : m_pThread(nullptr), m_bIsActive(false) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilThread destructor.
// Type: Method.
// Args: None.
@@ -214,7 +200,6 @@ CMIUtilThread::CMIUtilThread() : m_pThread(nullptr), m_bIsActive(false) {}
CMIUtilThread::~CMIUtilThread() { Join(); }
//++
-//------------------------------------------------------------------------------------
// Details: Wait for thread to stop.
// Type: Method.
// Args: None.
@@ -239,7 +224,6 @@ bool CMIUtilThread::Join() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Is the thread doing work.
// Type: Method.
// Args: None.
@@ -253,7 +237,6 @@ bool CMIUtilThread::IsActive() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Finish this thread
// Type: Method.
// Args: None.
@@ -267,7 +250,6 @@ void CMIUtilThread::Finish() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Set up *this thread.
// Type: Method.
// Args: vpFn (R) - Function pointer to thread's main function.
@@ -290,12 +272,8 @@ bool CMIUtilThread::Start(FnThreadProc vpFn, void *vpArg) {
return MIstatus::success;
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: Take resource.
// Type: Method.
// Args: None.
@@ -305,7 +283,6 @@ bool CMIUtilThread::Start(FnThreadProc vpFn, void *vpArg) {
void CMIUtilThreadMutex::Lock() { m_mutex.lock(); }
//++
-//------------------------------------------------------------------------------------
// Details: Release resource.
// Type: Method.
// Args: None.
@@ -315,7 +292,6 @@ void CMIUtilThreadMutex::Lock() { m_mutex.lock(); }
void CMIUtilThreadMutex::Unlock() { m_mutex.unlock(); }
//++
-//------------------------------------------------------------------------------------
// Details: Take resource if available. Immediately return in either case.
// Type: Method.
// Args: None.
diff --git a/lldb/tools/lldb-mi/MIUtilVariant.cpp b/lldb/tools/lldb-mi/MIUtilVariant.cpp
index bdf7b37205d..062dce80c4b 100644
--- a/lldb/tools/lldb-mi/MIUtilVariant.cpp
+++ b/lldb/tools/lldb-mi/MIUtilVariant.cpp
@@ -10,7 +10,6 @@
#include "MIUtilVariant.h"
//++
-//------------------------------------------------------------------------------------
// Details: CDataObjectBase constructor.
// Type: Method.
// Args: None.
@@ -20,7 +19,6 @@
CMIUtilVariant::CDataObjectBase::CDataObjectBase() {}
//++
-//------------------------------------------------------------------------------------
// Details: CDataObjectBase copy constructor.
// Type: Method.
// Args: vrOther - (R) The other object.
@@ -33,7 +31,6 @@ CMIUtilVariant::CDataObjectBase::CDataObjectBase(
}
//++
-//------------------------------------------------------------------------------------
// Details: CDataObjectBase copy constructor.
// Type: Method.
// Args: vrOther - (R) The other object.
@@ -45,7 +42,6 @@ CMIUtilVariant::CDataObjectBase::CDataObjectBase(CDataObjectBase &vrOther) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CDataObjectBase move constructor.
// Type: Method.
// Args: vrwOther - (R) The other object.
@@ -57,7 +53,6 @@ CMIUtilVariant::CDataObjectBase::CDataObjectBase(CDataObjectBase &&vrwOther) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CDataObjectBase destructor.
// Type: Overrideable.
// Args: None.
@@ -67,7 +62,6 @@ CMIUtilVariant::CDataObjectBase::CDataObjectBase(CDataObjectBase &&vrwOther) {
CMIUtilVariant::CDataObjectBase::~CDataObjectBase() { Destroy(); }
//++
-//------------------------------------------------------------------------------------
// Details: CDataObjectBase copy assignment.
// Type: Method.
// Args: vrOther - (R) The other object.
@@ -81,7 +75,6 @@ operator=(const CDataObjectBase &vrOther) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CDataObjectBase move assignment.
// Type: Method.
// Args: vrwOther - (R) The other object.
@@ -96,7 +89,6 @@ operator=(CDataObjectBase &&vrwOther) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Create a new copy of *this class.
// Type: Overrideable.
// Args: None.
@@ -110,7 +102,6 @@ CMIUtilVariant::CDataObjectBase::CreateCopyOfSelf() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Determine if *this object is a derived from CDataObjectBase.
// Type: Overrideable.
// Args: None.
@@ -124,7 +115,6 @@ bool CMIUtilVariant::CDataObjectBase::GetIsDerivedClass() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Perform a bitwise copy of *this object.
// Type: Overrideable.
// Args: vrOther - (R) The other object.
@@ -137,7 +127,6 @@ void CMIUtilVariant::CDataObjectBase::Copy(const CDataObjectBase &vrOther) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release any resources used by *this object.
// Type: Overrideable.
// Args: None.
@@ -148,12 +137,8 @@ void CMIUtilVariant::CDataObjectBase::Destroy() {
// Do nothing - override to implement
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CDataObject copy constructor.
// Type: Method.
// Args: T - The object's type.
@@ -169,7 +154,6 @@ CMIUtilVariant::CDataObject<T>::CDataObject(const CDataObject &vrOther) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CDataObject copy constructor.
// Type: Method.
// Args: T - The object's type.
@@ -185,7 +169,6 @@ CMIUtilVariant::CDataObject<T>::CDataObject(CDataObject &vrOther) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CDataObject move constructor.
// Type: Method.
// Args: T - The object's type.
@@ -202,7 +185,6 @@ CMIUtilVariant::CDataObject<T>::CDataObject(CDataObject &&vrwOther) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CDataObject copy assignment.
// Type: Method.
// Args: T - The object's type.
@@ -220,7 +202,6 @@ operator=(const CDataObject &vrOther) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CDataObject move assignment.
// Type: Method.
// Args: T - The object's type.
@@ -238,12 +219,8 @@ operator=(CDataObject &&vrwOther) {
return *this;
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilVariant constructor.
// Type: Method.
// Args: None.
@@ -253,7 +230,6 @@ operator=(CDataObject &&vrwOther) {
CMIUtilVariant::CMIUtilVariant() : m_pDataObject(nullptr) {}
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilVariant copy constructor.
// Type: Method.
// Args: vrOther - (R) The other object.
@@ -269,7 +245,6 @@ CMIUtilVariant::CMIUtilVariant(const CMIUtilVariant &vrOther)
}
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilVariant copy constructor.
// Type: Method.
// Args: vrOther - (R) The other object.
@@ -285,7 +260,6 @@ CMIUtilVariant::CMIUtilVariant(CMIUtilVariant &vrOther)
}
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilVariant move constructor.
// Type: Method.
// Args: vrwOther - (R) The other object.
@@ -302,7 +276,6 @@ CMIUtilVariant::CMIUtilVariant(CMIUtilVariant &&vrwOther)
}
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilVariant destructor.
// Type: Method.
// Args: None.
@@ -312,7 +285,6 @@ CMIUtilVariant::CMIUtilVariant(CMIUtilVariant &&vrwOther)
CMIUtilVariant::~CMIUtilVariant() { Destroy(); }
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilVariant copy assignment.
// Type: Method.
// Args: vrOther - (R) The other object.
@@ -328,7 +300,6 @@ CMIUtilVariant &CMIUtilVariant::operator=(const CMIUtilVariant &vrOther) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CMIUtilVariant move assignment.
// Type: Method.
// Args: vrwOther - (R) The other object.
@@ -345,7 +316,6 @@ CMIUtilVariant &CMIUtilVariant::operator=(CMIUtilVariant &&vrwOther) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release the resources used by *this object.
// Type: Method.
// Args: None.
@@ -359,7 +329,6 @@ void CMIUtilVariant::Destroy() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Bitwise copy another data object to *this variant object.
// Type: Method.
// Args: vrOther - (R) The other object.
diff --git a/lldb/tools/lldb-mi/MIUtilVariant.h b/lldb/tools/lldb-mi/MIUtilVariant.h
index 4adc7019411..4c9db33021b 100644
--- a/lldb/tools/lldb-mi/MIUtilVariant.h
+++ b/lldb/tools/lldb-mi/MIUtilVariant.h
@@ -116,12 +116,8 @@ private:
CDataObjectBase *m_pDataObject;
};
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: CDataObject constructor.
// Type: Method.
// Args: T - The object's type.
@@ -131,7 +127,6 @@ private:
template <typename T> CMIUtilVariant::CDataObject<T>::CDataObject() {}
//++
-//------------------------------------------------------------------------------------
// Details: CDataObject constructor.
// Type: Method.
// Args: T - The object's type.
@@ -145,7 +140,6 @@ CMIUtilVariant::CDataObject<T>::CDataObject(const T &vArg) {
}
//++
-//------------------------------------------------------------------------------------
// Details: CDataObject destructor.
// Type: Overridden.
// Args: T - The object's type.
@@ -157,7 +151,6 @@ template <typename T> CMIUtilVariant::CDataObject<T>::~CDataObject() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the data object hold by *this object wrapper.
// Type: Method.
// Args: T - The object's type.
@@ -169,7 +162,6 @@ template <typename T> T &CMIUtilVariant::CDataObject<T>::GetDataObject() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Create a new copy of *this class.
// Type: Overridden.
// Args: T - The object's type.
@@ -185,7 +177,6 @@ CMIUtilVariant::CDataObject<T>::CreateCopyOfSelf() {
}
//++
-//------------------------------------------------------------------------------------
// Details: Determine if *this object is a derived from CDataObjectBase.
// Type: Overridden.
// Args: T - The object's type.
@@ -199,7 +190,6 @@ bool CMIUtilVariant::CDataObject<T>::GetIsDerivedClass() const {
}
//++
-//------------------------------------------------------------------------------------
// Details: Perform a bitwise copy of *this object.
// Type: Overrideable.
// Args: T - The object's type.
@@ -214,7 +204,6 @@ void CMIUtilVariant::CDataObject<T>::Duplicate(const CDataObject &vrOther) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Release any resources used by *this object.
// Type: Overridden.
// Args: None.
@@ -225,12 +214,8 @@ template <typename T> void CMIUtilVariant::CDataObject<T>::Destroy() {
CDataObjectBase::Destroy();
}
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
-//---------------------------------------------------------------------------------------
//++
-//------------------------------------------------------------------------------------
// Details: Assign to the variant an object of a specified type.
// Type: Template method.
// Args: T - The object's type.
@@ -243,7 +228,6 @@ template <typename T> void CMIUtilVariant::Set(const T &vArg) {
}
//++
-//------------------------------------------------------------------------------------
// Details: Retrieve the data object from *this variant.
// Type: Template method.
// Args: T - The object's type.
diff --git a/lldb/tools/lldb-server/lldb-gdbserver.cpp b/lldb/tools/lldb-server/lldb-gdbserver.cpp
index 6222dd3bcf7..afa4487ce8b 100644
--- a/lldb/tools/lldb-server/lldb-gdbserver.cpp
+++ b/lldb/tools/lldb-server/lldb-gdbserver.cpp
@@ -79,9 +79,7 @@ public:
#endif
}
-//----------------------------------------------------------------------
// option descriptors for getopt_long_only()
-//----------------------------------------------------------------------
static int g_debug = 0;
static int g_verbose = 0;
@@ -106,9 +104,7 @@ static struct option g_long_options[] = {
{"fd", required_argument, NULL, 'F'},
{NULL, 0, NULL, 0}};
-//----------------------------------------------------------------------
// Watch for signals
-//----------------------------------------------------------------------
static int g_sighup_received_count = 0;
#ifndef _WIN32
@@ -356,9 +352,7 @@ void ConnectToRemote(MainLoop &mainloop,
printf("Connection established.\n");
}
-//----------------------------------------------------------------------
// main
-//----------------------------------------------------------------------
int main_gdbserver(int argc, char *argv[]) {
Status error;
MainLoop mainloop;
diff --git a/lldb/tools/lldb-server/lldb-platform.cpp b/lldb/tools/lldb-server/lldb-platform.cpp
index 4f0abc45d37..595a0e82da2 100644
--- a/lldb/tools/lldb-server/lldb-platform.cpp
+++ b/lldb/tools/lldb-server/lldb-platform.cpp
@@ -39,9 +39,7 @@ using namespace lldb_private::lldb_server;
using namespace lldb_private::process_gdb_remote;
using namespace llvm;
-//----------------------------------------------------------------------
// option descriptors for getopt_long_only()
-//----------------------------------------------------------------------
static int g_debug = 0;
static int g_verbose = 0;
@@ -69,9 +67,7 @@ static struct option g_long_options[] = {
#define HIGH_PORT (49151u)
#endif
-//----------------------------------------------------------------------
// Watch for signals
-//----------------------------------------------------------------------
static void signal_handler(int signo) {
switch (signo) {
case SIGHUP:
@@ -129,9 +125,7 @@ static Status save_socket_id_to_file(const std::string &socket_id,
return Status();
}
-//----------------------------------------------------------------------
// main
-//----------------------------------------------------------------------
int main_platform(int argc, char *argv[]) {
const char *progname = argv[0];
const char *subcommand = argv[1];
diff --git a/lldb/tools/lldb-server/lldb-server.cpp b/lldb/tools/lldb-server/lldb-server.cpp
index 03258bdff0a..5f0aab12a5a 100644
--- a/lldb/tools/lldb-server/lldb-server.cpp
+++ b/lldb/tools/lldb-server/lldb-server.cpp
@@ -46,9 +46,7 @@ static void initialize() {
static void terminate() { g_debugger_lifetime->Terminate(); }
} // namespace llgs
-//----------------------------------------------------------------------
// main
-//----------------------------------------------------------------------
int main(int argc, char *argv[]) {
llvm::StringRef ToolName = argv[0];
llvm::sys::PrintStackTraceOnErrorSignal(ToolName);
diff --git a/lldb/tools/lldb-test/SystemInitializerTest.cpp b/lldb/tools/lldb-test/SystemInitializerTest.cpp
index 9d535deb2a9..44b960cca10 100644
--- a/lldb/tools/lldb-test/SystemInitializerTest.cpp
+++ b/lldb/tools/lldb-test/SystemInitializerTest.cpp
@@ -213,9 +213,7 @@ llvm::Error SystemInitializerTest::Initialize() {
// It shouldn't be limited to __APPLE__.
StructuredDataDarwinLog::Initialize();
- //----------------------------------------------------------------------
// Platform agnostic plugins
- //----------------------------------------------------------------------
platform_gdb_server::PlatformRemoteGDBServer::Initialize();
process_gdb_remote::ProcessGDBRemote::Initialize();
diff --git a/lldb/tools/lldb-test/SystemInitializerTest.h b/lldb/tools/lldb-test/SystemInitializerTest.h
index 4134c53d038..4f58d2a64a6 100644
--- a/lldb/tools/lldb-test/SystemInitializerTest.h
+++ b/lldb/tools/lldb-test/SystemInitializerTest.h
@@ -12,14 +12,12 @@
#include "lldb/Initialization/SystemInitializerCommon.h"
namespace lldb_private {
-//------------------------------------------------------------------
/// Initializes lldb.
///
/// This class is responsible for initializing all of lldb system
/// services needed to use the full LLDB application. This class is
/// not intended to be used externally, but is instead used
/// internally by SBDebugger to initialize the system.
-//------------------------------------------------------------------
class SystemInitializerTest : public SystemInitializerCommon {
public:
SystemInitializerTest();
diff --git a/lldb/tools/lldb-vscode/JSONUtils.cpp b/lldb/tools/lldb-vscode/JSONUtils.cpp
index f7c7a2527e7..b83f56445e2 100644
--- a/lldb/tools/lldb-vscode/JSONUtils.cpp
+++ b/lldb/tools/lldb-vscode/JSONUtils.cpp
@@ -164,7 +164,6 @@ void FillResponse(const llvm::json::Object &request,
response.try_emplace("success", true);
}
-//----------------------------------------------------------------------
// "Scope": {
// "type": "object",
// "description": "A Scope is a named container for variables. Optionally
@@ -223,7 +222,6 @@ void FillResponse(const llvm::json::Object &request,
// },
// "required": [ "name", "variablesReference", "expensive" ]
// }
-//----------------------------------------------------------------------
llvm::json::Value CreateScope(const llvm::StringRef name,
int64_t variablesReference,
int64_t namedVariables, bool expensive) {
@@ -235,7 +233,6 @@ llvm::json::Value CreateScope(const llvm::StringRef name,
return llvm::json::Value(std::move(object));
}
-//----------------------------------------------------------------------
// "Breakpoint": {
// "type": "object",
// "description": "Information about a Breakpoint created in setBreakpoints
@@ -284,7 +281,6 @@ llvm::json::Value CreateScope(const llvm::StringRef name,
// },
// "required": [ "verified" ]
// }
-//----------------------------------------------------------------------
llvm::json::Value CreateBreakpoint(lldb::SBBreakpointLocation &bp_loc) {
// Each breakpoint location is treated as a separate breakpoint for VS code.
// They don't have the notion of a single breakpoint with multiple locations.
@@ -318,7 +314,6 @@ void AppendBreakpoint(lldb::SBBreakpoint &bp, llvm::json::Array &breakpoints) {
}
}
-//----------------------------------------------------------------------
// "Event": {
// "allOf": [ { "$ref": "#/definitions/ProtocolMessage" }, {
// "type": "object",
@@ -357,7 +352,6 @@ void AppendBreakpoint(lldb::SBBreakpoint &bp, llvm::json::Array &breakpoints) {
// },
// "required": [ "seq", "type" ]
// }
-//----------------------------------------------------------------------
llvm::json::Object CreateEventObject(const llvm::StringRef event_name) {
llvm::json::Object event;
event.try_emplace("seq", 0);
@@ -366,7 +360,6 @@ llvm::json::Object CreateEventObject(const llvm::StringRef event_name) {
return event;
}
-//----------------------------------------------------------------------
// "ExceptionBreakpointsFilter": {
// "type": "object",
// "description": "An ExceptionBreakpointsFilter is shown in the UI as an
@@ -389,7 +382,6 @@ llvm::json::Object CreateEventObject(const llvm::StringRef event_name) {
// },
// "required": [ "filter", "label" ]
// }
-//----------------------------------------------------------------------
llvm::json::Value
CreateExceptionBreakpointFilter(const ExceptionBreakpoint &bp) {
llvm::json::Object object;
@@ -399,7 +391,6 @@ CreateExceptionBreakpointFilter(const ExceptionBreakpoint &bp) {
return llvm::json::Value(std::move(object));
}
-//----------------------------------------------------------------------
// "Source": {
// "type": "object",
// "description": "A Source is a descriptor for source code. It is returned
@@ -465,7 +456,6 @@ CreateExceptionBreakpointFilter(const ExceptionBreakpoint &bp) {
// }
// }
// }
-//----------------------------------------------------------------------
llvm::json::Value CreateSource(lldb::SBLineEntry &line_entry) {
llvm::json::Object object;
lldb::SBFileSpec file = line_entry.GetFileSpec();
@@ -569,7 +559,6 @@ llvm::json::Value CreateSource(lldb::SBFrame &frame, int64_t &disasm_line) {
return llvm::json::Value(std::move(object));
}
-//----------------------------------------------------------------------
// "StackFrame": {
// "type": "object",
// "description": "A Stackframe contains the source location.",
@@ -626,7 +615,6 @@ llvm::json::Value CreateSource(lldb::SBFrame &frame, int64_t &disasm_line) {
// },
// "required": [ "id", "name", "line", "column" ]
// }
-//----------------------------------------------------------------------
llvm::json::Value CreateStackFrame(lldb::SBFrame &frame) {
llvm::json::Object object;
int64_t frame_id = MakeVSCodeFrameID(frame);
@@ -648,7 +636,6 @@ llvm::json::Value CreateStackFrame(lldb::SBFrame &frame) {
return llvm::json::Value(std::move(object));
}
-//----------------------------------------------------------------------
// "Thread": {
// "type": "object",
// "description": "A Thread",
@@ -664,7 +651,6 @@ llvm::json::Value CreateStackFrame(lldb::SBFrame &frame) {
// },
// "required": [ "id", "name" ]
// }
-//----------------------------------------------------------------------
llvm::json::Value CreateThread(lldb::SBThread &thread) {
llvm::json::Object object;
object.try_emplace("id", (int64_t)thread.GetThreadID());
@@ -682,7 +668,6 @@ llvm::json::Value CreateThread(lldb::SBThread &thread) {
return llvm::json::Value(std::move(object));
}
-//----------------------------------------------------------------------
// "StoppedEvent": {
// "allOf": [ { "$ref": "#/definitions/Event" }, {
// "type": "object",
@@ -740,7 +725,6 @@ llvm::json::Value CreateThread(lldb::SBThread &thread) {
// "required": [ "event", "body" ]
// }]
// }
-//----------------------------------------------------------------------
llvm::json::Value CreateThreadStopped(lldb::SBThread &thread,
uint32_t stop_id) {
llvm::json::Object event(CreateEventObject("stopped"));
@@ -799,7 +783,6 @@ llvm::json::Value CreateThreadStopped(lldb::SBThread &thread,
return llvm::json::Value(std::move(event));
}
-//----------------------------------------------------------------------
// "Variable": {
// "type": "object",
// "description": "A Variable is a name/value pair. Optionally a variable
@@ -862,7 +845,6 @@ llvm::json::Value CreateThreadStopped(lldb::SBThread &thread,
// },
// "required": [ "name", "value", "variablesReference" ]
// }
-//----------------------------------------------------------------------
llvm::json::Value CreateVariable(lldb::SBValue v, int64_t variablesReference,
int64_t varID, bool format_hex) {
llvm::json::Object object;
diff --git a/lldb/tools/lldb-vscode/JSONUtils.h b/lldb/tools/lldb-vscode/JSONUtils.h
index 20e2184b765..2391ac32b5c 100644
--- a/lldb/tools/lldb-vscode/JSONUtils.h
+++ b/lldb/tools/lldb-vscode/JSONUtils.h
@@ -16,7 +16,6 @@
namespace lldb_vscode {
-//------------------------------------------------------------------
/// Emplace a StringRef in a json::Object after enusring that the
/// string is valid UTF8. If not, first call llvm::json::fixUTF8
/// before emplacing.
@@ -29,11 +28,9 @@ namespace lldb_vscode {
///
/// \param[in] str
/// The string to emplace
-//------------------------------------------------------------------
void EmplaceSafeString(llvm::json::Object &obj, llvm::StringRef key,
llvm::StringRef str);
-//------------------------------------------------------------------
/// Extract simple values as a string.
///
/// \param[in] value
@@ -42,10 +39,8 @@ void EmplaceSafeString(llvm::json::Object &obj, llvm::StringRef key,
/// \return
/// A llvm::StringRef that contains the string value, or an empty
/// string if \a value isn't a string.
-//------------------------------------------------------------------
llvm::StringRef GetAsString(const llvm::json::Value &value);
-//------------------------------------------------------------------
/// Extract the string value for the specified key from the
/// specified object.
///
@@ -59,11 +54,9 @@ llvm::StringRef GetAsString(const llvm::json::Value &value);
/// A llvm::StringRef that contains the string value for the
/// specified \a key, or an empty string if there is no key that
/// matches or if the value is not a string.
-//------------------------------------------------------------------
llvm::StringRef GetString(const llvm::json::Object &obj, llvm::StringRef key);
llvm::StringRef GetString(const llvm::json::Object *obj, llvm::StringRef key);
-//------------------------------------------------------------------
/// Extract the unsigned integer value for the specified key from
/// the specified object.
///
@@ -77,13 +70,11 @@ llvm::StringRef GetString(const llvm::json::Object *obj, llvm::StringRef key);
/// The unsigned integer value for the specified \a key, or
/// \a fail_value if there is no key that matches or if the
/// value is not an integer.
-//------------------------------------------------------------------
uint64_t GetUnsigned(const llvm::json::Object &obj, llvm::StringRef key,
uint64_t fail_value);
uint64_t GetUnsigned(const llvm::json::Object *obj, llvm::StringRef key,
uint64_t fail_value);
-//------------------------------------------------------------------
/// Extract the boolean value for the specified key from the
/// specified object.
///
@@ -97,13 +88,11 @@ uint64_t GetUnsigned(const llvm::json::Object *obj, llvm::StringRef key,
/// The boolean value for the specified \a key, or \a fail_value
/// if there is no key that matches or if the value is not a
/// boolean value of an integer.
-//------------------------------------------------------------------
bool GetBoolean(const llvm::json::Object &obj, llvm::StringRef key,
bool fail_value);
bool GetBoolean(const llvm::json::Object *obj, llvm::StringRef key,
bool fail_value);
-//------------------------------------------------------------------
/// Extract the signed integer for the specified key from the
/// specified object.
///
@@ -117,13 +106,11 @@ bool GetBoolean(const llvm::json::Object *obj, llvm::StringRef key,
/// The signed integer value for the specified \a key, or
/// \a fail_value if there is no key that matches or if the
/// value is not an integer.
-//------------------------------------------------------------------
int64_t GetSigned(const llvm::json::Object &obj, llvm::StringRef key,
int64_t fail_value);
int64_t GetSigned(const llvm::json::Object *obj, llvm::StringRef key,
int64_t fail_value);
-//------------------------------------------------------------------
/// Check if the specified key exists in the specified object.
///
/// \param[in] obj
@@ -134,10 +121,8 @@ int64_t GetSigned(const llvm::json::Object *obj, llvm::StringRef key,
///
/// \return
/// \b True if the key exists in the \a obj, \b False otherwise.
-//------------------------------------------------------------------
bool ObjectContainsKey(const llvm::json::Object &obj, llvm::StringRef key);
-//------------------------------------------------------------------
/// Extract an array of strings for the specified key from an object.
///
/// String values in the array will be extracted without any quotes
@@ -156,11 +141,9 @@ bool ObjectContainsKey(const llvm::json::Object &obj, llvm::StringRef key);
/// \a fail_value if there is no key that matches or if the
/// value is not an array or all items in the array are not
/// strings, numbers or booleans.
-//------------------------------------------------------------------
std::vector<std::string> GetStrings(const llvm::json::Object *obj,
llvm::StringRef key);
-//------------------------------------------------------------------
/// Fill a response object given the request object.
///
/// The \a response object will get its "type" set to "response",
@@ -174,11 +157,9 @@ std::vector<std::string> GetStrings(const llvm::json::Object *obj,
/// \param[in,out] response
/// An empty llvm::json::Object object that will be filled
/// in as noted in description.
-//------------------------------------------------------------------
void FillResponse(const llvm::json::Object &request,
llvm::json::Object &response);
-//----------------------------------------------------------------------
/// Emplace the string value from an SBValue into the supplied object
/// using \a key as the key that will contain the value.
///
@@ -200,11 +181,9 @@ void FillResponse(const llvm::json::Object &request,
///
/// \param[in] key
/// The key name to use when inserting the value object we create
-//----------------------------------------------------------------------
void SetValueForKey(lldb::SBValue &v, llvm::json::Object &object,
llvm::StringRef key);
-//----------------------------------------------------------------------
/// Converts \a bp to a JSON value and appends all locations to the
/// \a breakpoints array.
///
@@ -215,10 +194,8 @@ void SetValueForKey(lldb::SBValue &v, llvm::json::Object &object,
/// \param[in] breakpoints
/// A JSON array that will get a llvm::json::Value for \a bp
/// appended to it.
-//----------------------------------------------------------------------
void AppendBreakpoint(lldb::SBBreakpoint &bp, llvm::json::Array &breakpoints);
-//----------------------------------------------------------------------
/// Converts breakpoint location to a Visual Studio Code "Breakpoint"
/// JSON object and appends it to the \a breakpoints array.
///
@@ -228,10 +205,8 @@ void AppendBreakpoint(lldb::SBBreakpoint &bp, llvm::json::Array &breakpoints);
/// \return
/// A "Breakpoint" JSON object with that follows the formal JSON
/// definition outlined by Microsoft.
-//----------------------------------------------------------------------
llvm::json::Value CreateBreakpoint(lldb::SBBreakpointLocation &bp_loc);
-//----------------------------------------------------------------------
/// Create a "Event" JSON object using \a event_name as the event name
///
/// \param[in] event_name
@@ -240,10 +215,8 @@ llvm::json::Value CreateBreakpoint(lldb::SBBreakpointLocation &bp_loc);
/// \return
/// A "Event" JSON object with that follows the formal JSON
/// definition outlined by Microsoft.
-//----------------------------------------------------------------------
llvm::json::Object CreateEventObject(const llvm::StringRef event_name);
-//----------------------------------------------------------------------
/// Create a "ExceptionBreakpointsFilter" JSON object as described in
/// the Visual Studio Code debug adaptor definition.
///
@@ -253,11 +226,9 @@ llvm::json::Object CreateEventObject(const llvm::StringRef event_name);
/// \return
/// A "ExceptionBreakpointsFilter" JSON object with that follows
/// the formal JSON definition outlined by Microsoft.
-//----------------------------------------------------------------------
llvm::json::Value
CreateExceptionBreakpointFilter(const ExceptionBreakpoint &bp);
-//----------------------------------------------------------------------
/// Create a "Scope" JSON object as described in the Visual Studio Code
/// debug adaptor definition.
///
@@ -276,12 +247,10 @@ CreateExceptionBreakpointFilter(const ExceptionBreakpoint &bp);
/// \return
/// A "Scope" JSON object with that follows the formal JSON
/// definition outlined by Microsoft.
-//----------------------------------------------------------------------
llvm::json::Value CreateScope(const llvm::StringRef name,
int64_t variablesReference,
int64_t namedVariables, bool expensive);
-//----------------------------------------------------------------------
/// Create a "Source" JSON object as described in the Visual Studio Code
/// debug adaptor definition.
///
@@ -292,10 +261,8 @@ llvm::json::Value CreateScope(const llvm::StringRef name,
/// \return
/// A "Source" JSON object with that follows the formal JSON
/// definition outlined by Microsoft.
-//----------------------------------------------------------------------
llvm::json::Value CreateSource(lldb::SBLineEntry &line_entry);
-//----------------------------------------------------------------------
/// Create a "Source" object for a given frame.
///
/// When there is no source file information for a stack frame, we will
@@ -319,10 +286,8 @@ llvm::json::Value CreateSource(lldb::SBLineEntry &line_entry);
/// \return
/// A "Source" JSON object with that follows the formal JSON
/// definition outlined by Microsoft.
-//----------------------------------------------------------------------
llvm::json::Value CreateSource(lldb::SBFrame &frame, int64_t &disasm_line);
-//----------------------------------------------------------------------
/// Create a "StackFrame" object for a LLDB frame object.
///
/// This function will fill in the following keys in the returned
@@ -340,10 +305,8 @@ llvm::json::Value CreateSource(lldb::SBFrame &frame, int64_t &disasm_line);
/// \return
/// A "StackFrame" JSON object with that follows the formal JSON
/// definition outlined by Microsoft.
-//----------------------------------------------------------------------
llvm::json::Value CreateStackFrame(lldb::SBFrame &frame);
-//----------------------------------------------------------------------
/// Create a "Thread" object for a LLDB thread object.
///
/// This function will fill in the following keys in the returned
@@ -360,10 +323,8 @@ llvm::json::Value CreateStackFrame(lldb::SBFrame &frame);
/// \return
/// A "Thread" JSON object with that follows the formal JSON
/// definition outlined by Microsoft.
-//----------------------------------------------------------------------
llvm::json::Value CreateThread(lldb::SBThread &thread);
-//----------------------------------------------------------------------
/// Create a "StoppedEvent" object for a LLDB thread object.
///
/// This function will fill in the following keys in the returned
@@ -385,10 +346,8 @@ llvm::json::Value CreateThread(lldb::SBThread &thread);
/// \return
/// A "StoppedEvent" JSON object with that follows the formal JSON
/// definition outlined by Microsoft.
-//----------------------------------------------------------------------
llvm::json::Value CreateThreadStopped(lldb::SBThread &thread, uint32_t stop_id);
-//----------------------------------------------------------------------
/// Create a "Variable" object for a LLDB thread object.
///
/// This function will fill in the following keys in the returned
@@ -428,7 +387,6 @@ llvm::json::Value CreateThreadStopped(lldb::SBThread &thread, uint32_t stop_id);
/// \return
/// A "Variable" JSON object with that follows the formal JSON
/// definition outlined by Microsoft.
-//----------------------------------------------------------------------
llvm::json::Value CreateVariable(lldb::SBValue v, int64_t variablesReference,
int64_t varID, bool format_hex);
diff --git a/lldb/tools/lldb-vscode/LLDBUtils.h b/lldb/tools/lldb-vscode/LLDBUtils.h
index 2d7c07f7737..4e0da17d97b 100644
--- a/lldb/tools/lldb-vscode/LLDBUtils.h
+++ b/lldb/tools/lldb-vscode/LLDBUtils.h
@@ -18,7 +18,6 @@
namespace lldb_vscode {
-///----------------------------------------------------------------------
/// Run a list of LLDB commands in the LLDB command interpreter.
///
/// All output from every command, including the prompt + the command
@@ -34,12 +33,10 @@ namespace lldb_vscode {
/// \param[in] strm
/// The stream that will receive the prefix, prompt + command and
/// all command output.
-//----------------------------------------------------------------------
void RunLLDBCommands(llvm::StringRef prefix,
const llvm::ArrayRef<std::string> &commands,
llvm::raw_ostream &strm);
-///----------------------------------------------------------------------
/// Run a list of LLDB commands in the LLDB command interpreter.
///
/// All output from every command, including the prompt + the command
@@ -55,11 +52,9 @@ void RunLLDBCommands(llvm::StringRef prefix,
/// \return
/// A std::string that contains the prefix and all commands and
/// command output
-//----------------------------------------------------------------------
std::string RunLLDBCommands(llvm::StringRef prefix,
const llvm::ArrayRef<std::string> &commands);
-///----------------------------------------------------------------------
/// Check if a thread has a stop reason.
///
/// \param[in] thread
@@ -68,10 +63,8 @@ std::string RunLLDBCommands(llvm::StringRef prefix,
/// \return
/// \b True if the thread has a valid stop reason, \b false
/// otherwise.
-//----------------------------------------------------------------------
bool ThreadHasStopReason(lldb::SBThread &thread);
-///----------------------------------------------------------------------
/// Given a LLDB frame, make a frame ID that is unique to a specific
/// thread and frame.
///
@@ -85,10 +78,8 @@ bool ThreadHasStopReason(lldb::SBThread &thread);
/// \return
/// A unique integer that allows us to easily find the right
/// stack frame within a thread on subsequent VS code requests.
-//----------------------------------------------------------------------
int64_t MakeVSCodeFrameID(lldb::SBFrame &frame);
-///----------------------------------------------------------------------
/// Given a VSCode frame ID, convert to a LLDB thread index id.
///
/// VSCode requires a Stackframe "id" to be unique, so we use the frame
@@ -100,10 +91,8 @@ int64_t MakeVSCodeFrameID(lldb::SBFrame &frame);
///
/// \return
/// The LLDB thread index ID.
-//----------------------------------------------------------------------
uint32_t GetLLDBThreadIndexID(uint64_t dap_frame_id);
-///----------------------------------------------------------------------
/// Given a VSCode frame ID, convert to a LLDB frame ID.
///
/// VSCode requires a Stackframe "id" to be unique, so we use the frame
@@ -115,10 +104,8 @@ uint32_t GetLLDBThreadIndexID(uint64_t dap_frame_id);
///
/// \return
/// The LLDB frame index ID.
-//----------------------------------------------------------------------
uint32_t GetLLDBFrameID(uint64_t dap_frame_id);
-///----------------------------------------------------------------------
/// Given a LLDB breakpoint, make a breakpoint ID that is unique to a
/// specific breakpoint and breakpoint location.
///
@@ -132,10 +119,8 @@ uint32_t GetLLDBFrameID(uint64_t dap_frame_id);
/// \return
/// A unique integer that allows us to easily find the right
/// stack frame within a thread on subsequent VS code requests.
-//----------------------------------------------------------------------
int64_t MakeVSCodeBreakpointID(lldb::SBBreakpointLocation &bp_loc);
-///----------------------------------------------------------------------
/// Given a VSCode breakpoint ID, convert to a LLDB breakpoint ID.
///
/// VSCode requires a Breakpoint "id" to be unique, so we use the
@@ -147,10 +132,8 @@ int64_t MakeVSCodeBreakpointID(lldb::SBBreakpointLocation &bp_loc);
///
/// \return
/// The LLDB breakpoint ID.
-//----------------------------------------------------------------------
uint32_t GetLLDBBreakpointID(uint64_t dap_breakpoint_id);
-///----------------------------------------------------------------------
/// Given a VSCode breakpoint ID, convert to a LLDB breakpoint location ID.
///
/// VSCode requires a Breakpoint "id" to be unique, so we use the
@@ -162,7 +145,6 @@ uint32_t GetLLDBBreakpointID(uint64_t dap_breakpoint_id);
///
/// \return
/// The LLDB breakpoint location ID.
-//----------------------------------------------------------------------
uint32_t GetLLDBBreakpointLocationID(uint64_t dap_breakpoint_id);
} // namespace lldb_vscode
diff --git a/lldb/tools/lldb-vscode/VSCode.cpp b/lldb/tools/lldb-vscode/VSCode.cpp
index 9022feb0ccb..3b314a26000 100644
--- a/lldb/tools/lldb-vscode/VSCode.cpp
+++ b/lldb/tools/lldb-vscode/VSCode.cpp
@@ -78,11 +78,9 @@ VSCode::GetExceptionBreakpoint(const lldb::break_id_t bp_id) {
return nullptr;
}
-//----------------------------------------------------------------------
// Send the JSON in "json_str" to the "out" stream. Correctly send the
// "Content-Length:" field followed by the length, followed by the raw
// JSON bytes.
-//----------------------------------------------------------------------
void VSCode::SendJSON(const std::string &json_str) {
output.write_full("Content-Length: ");
output.write_full(llvm::utostr(json_str.size()));
@@ -96,10 +94,8 @@ void VSCode::SendJSON(const std::string &json_str) {
}
}
-//----------------------------------------------------------------------
// Serialize the JSON value into a string and send the JSON packet to
// the "out" stream.
-//----------------------------------------------------------------------
void VSCode::SendJSON(const llvm::json::Value &json) {
std::string s;
llvm::raw_string_ostream strm(s);
@@ -109,9 +105,7 @@ void VSCode::SendJSON(const llvm::json::Value &json) {
SendJSON(strm.str());
}
-//----------------------------------------------------------------------
// Read a JSON packet from the "in" stream.
-//----------------------------------------------------------------------
std::string VSCode::ReadJSON() {
std::string length_str;
std::string json_str;
@@ -135,7 +129,6 @@ std::string VSCode::ReadJSON() {
return json_str;
}
-//----------------------------------------------------------------------
// "OutputEvent": {
// "allOf": [ { "$ref": "#/definitions/Event" }, {
// "type": "object",
@@ -196,7 +189,6 @@ std::string VSCode::ReadJSON() {
// "required": [ "event", "body" ]
// }]
// }
-//----------------------------------------------------------------------
void VSCode::SendOutput(OutputType o, const llvm::StringRef output) {
if (output.empty())
return;
diff --git a/lldb/tools/lldb-vscode/VSCode.h b/lldb/tools/lldb-vscode/VSCode.h
index bb05e78c3a3..be8b22806a4 100644
--- a/lldb/tools/lldb-vscode/VSCode.h
+++ b/lldb/tools/lldb-vscode/VSCode.h
@@ -99,17 +99,13 @@ struct VSCode {
int64_t GetLineForPC(int64_t sourceReference, lldb::addr_t pc) const;
ExceptionBreakpoint *GetExceptionBreakpoint(const std::string &filter);
ExceptionBreakpoint *GetExceptionBreakpoint(const lldb::break_id_t bp_id);
- //----------------------------------------------------------------------
// Send the JSON in "json_str" to the "out" stream. Correctly send the
// "Content-Length:" field followed by the length, followed by the raw
// JSON bytes.
- //----------------------------------------------------------------------
void SendJSON(const std::string &json_str);
- //----------------------------------------------------------------------
// Serialize the JSON value into a string and send the JSON packet to
// the "out" stream.
- //----------------------------------------------------------------------
void SendJSON(const llvm::json::Value &json);
std::string ReadJSON();
diff --git a/lldb/tools/lldb-vscode/lldb-vscode.cpp b/lldb/tools/lldb-vscode/lldb-vscode.cpp
index 2cad12f8d5c..d5b512389ad 100644
--- a/lldb/tools/lldb-vscode/lldb-vscode.cpp
+++ b/lldb/tools/lldb-vscode/lldb-vscode.cpp
@@ -119,9 +119,7 @@ std::vector<const char *> MakeArgv(const llvm::ArrayRef<std::string> &strs) {
return argv;
}
-//----------------------------------------------------------------------
// Send a "exited" event to indicate the process has exited.
-//----------------------------------------------------------------------
void SendProcessExitedEvent(lldb::SBProcess &process) {
llvm::json::Object event(CreateEventObject("exited"));
llvm::json::Object body;
@@ -139,10 +137,8 @@ void SendThreadExitedEvent(lldb::tid_t tid) {
g_vsc.SendJSON(llvm::json::Value(std::move(event)));
}
-//----------------------------------------------------------------------
// Send a "terminated" event to indicate the process is done being
// debugged.
-//----------------------------------------------------------------------
void SendTerminatedEvent() {
if (!g_vsc.sent_terminated_event) {
g_vsc.sent_terminated_event = true;
@@ -152,10 +148,8 @@ void SendTerminatedEvent() {
}
}
-//----------------------------------------------------------------------
// Send a thread stopped event for all threads as long as the process
// is stopped.
-//----------------------------------------------------------------------
void SendThreadStoppedEvent() {
lldb::SBProcess process = g_vsc.target.GetProcess();
if (process.IsValid()) {
@@ -228,7 +222,6 @@ void SendThreadStoppedEvent() {
g_vsc.RunStopCommands();
}
-//----------------------------------------------------------------------
// "ProcessEvent": {
// "allOf": [
// { "$ref": "#/definitions/Event" },
@@ -283,7 +276,6 @@ void SendThreadStoppedEvent() {
// }
// ]
// }
-//----------------------------------------------------------------------
void SendProcessEvent(LaunchMethod launch_method) {
lldb::SBFileSpec exe_fspec = g_vsc.target.GetExecutable();
char exe_path[PATH_MAX];
@@ -311,10 +303,8 @@ void SendProcessEvent(LaunchMethod launch_method) {
g_vsc.SendJSON(llvm::json::Value(std::move(event)));
}
-//----------------------------------------------------------------------
// Grab any STDOUT and STDERR from the process and send it up to VS Code
// via an "output" event to the "stdout" and "stderr" categories.
-//----------------------------------------------------------------------
void SendStdOutStdErr(lldb::SBProcess &process) {
char buffer[1024];
size_t count;
@@ -324,13 +314,11 @@ void SendStdOutStdErr(lldb::SBProcess &process) {
g_vsc.SendOutput(OutputType::Stderr, llvm::StringRef(buffer, count));
}
-//----------------------------------------------------------------------
// All events from the debugger, target, process, thread and frames are
// received in this function that runs in its own thread. We are using a
// "FILE *" to output packets back to VS Code and they have mutexes in them
// them prevent multiple threads from writing simultaneously so no locking
// is required.
-//----------------------------------------------------------------------
void EventThreadFunction() {
lldb::SBEvent event;
lldb::SBListener listener = g_vsc.debugger.GetListener();
@@ -420,10 +408,8 @@ void EventThreadFunction() {
}
}
-//----------------------------------------------------------------------
// Both attach and launch take a either a sourcePath or sourceMap
// argument (or neither), from which we need to set the target.source-map.
-//----------------------------------------------------------------------
void SetSourceMapFromArguments(const llvm::json::Object &arguments) {
const char *sourceMapHelp =
"source must be be an array of two-element arrays, "
@@ -465,7 +451,6 @@ void SetSourceMapFromArguments(const llvm::json::Object &arguments) {
}
}
-//----------------------------------------------------------------------
// "AttachRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -494,7 +479,6 @@ void SetSourceMapFromArguments(const llvm::json::Object &arguments) {
// acknowledgement, so no body field is required."
// }]
// }
-//----------------------------------------------------------------------
void request_attach(const llvm::json::Object &request) {
llvm::json::Object response;
lldb::SBError error;
@@ -602,7 +586,6 @@ void request_attach(const llvm::json::Object &request) {
}
}
-//----------------------------------------------------------------------
// "ContinueRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -657,7 +640,6 @@ void request_attach(const llvm::json::Object &request) {
// "required": [ "body" ]
// }]
// }
-//----------------------------------------------------------------------
void request_continue(const llvm::json::Object &request) {
llvm::json::Object response;
FillResponse(request, response);
@@ -673,7 +655,6 @@ void request_continue(const llvm::json::Object &request) {
g_vsc.SendJSON(llvm::json::Value(std::move(response)));
}
-//----------------------------------------------------------------------
// "ConfigurationDoneRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -705,7 +686,6 @@ void request_continue(const llvm::json::Object &request) {
// just an acknowledgement, so no body field is required."
// }]
// },
-//----------------------------------------------------------------------
void request_configurationDone(const llvm::json::Object &request) {
llvm::json::Object response;
FillResponse(request, response);
@@ -716,7 +696,6 @@ void request_configurationDone(const llvm::json::Object &request) {
g_vsc.target.GetProcess().Continue();
}
-//----------------------------------------------------------------------
// "DisconnectRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -761,7 +740,6 @@ void request_configurationDone(const llvm::json::Object &request) {
// acknowledgement, so no body field is required."
// }]
// }
-//----------------------------------------------------------------------
void request_disconnect(const llvm::json::Object &request) {
llvm::json::Object response;
FillResponse(request, response);
@@ -840,7 +818,6 @@ void request_exceptionInfo(const llvm::json::Object &request) {
g_vsc.SendJSON(llvm::json::Value(std::move(response)));
}
-//----------------------------------------------------------------------
// "EvaluateRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -942,7 +919,6 @@ void request_exceptionInfo(const llvm::json::Object &request) {
// "required": [ "body" ]
// }]
// }
-//----------------------------------------------------------------------
void request_evaluate(const llvm::json::Object &request) {
llvm::json::Object response;
FillResponse(request, response);
@@ -992,7 +968,6 @@ void request_evaluate(const llvm::json::Object &request) {
g_vsc.SendJSON(llvm::json::Value(std::move(response)));
}
-//----------------------------------------------------------------------
// "InitializeRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -1069,7 +1044,6 @@ void request_evaluate(const llvm::json::Object &request) {
// }
// }]
// }
-//----------------------------------------------------------------------
void request_initialize(const llvm::json::Object &request) {
g_vsc.debugger = lldb::SBDebugger::Create(true /*source_init_files*/);
// Create an empty target right away since we might get breakpoint requests
@@ -1163,7 +1137,6 @@ void request_initialize(const llvm::json::Object &request) {
g_vsc.SendJSON(llvm::json::Value(std::move(response)));
}
-//----------------------------------------------------------------------
// "LaunchRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -1198,7 +1171,6 @@ void request_initialize(const llvm::json::Object &request) {
// acknowledgement, so no body field is required."
// }]
// }
-//----------------------------------------------------------------------
void request_launch(const llvm::json::Object &request) {
llvm::json::Object response;
lldb::SBError error;
@@ -1297,7 +1269,6 @@ void request_launch(const llvm::json::Object &request) {
g_vsc.debugger.SetAsync(true);
}
-//----------------------------------------------------------------------
// "NextRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -1336,7 +1307,6 @@ void request_launch(const llvm::json::Object &request) {
// acknowledgement, so no body field is required."
// }]
// }
-//----------------------------------------------------------------------
void request_next(const llvm::json::Object &request) {
llvm::json::Object response;
FillResponse(request, response);
@@ -1353,7 +1323,6 @@ void request_next(const llvm::json::Object &request) {
g_vsc.SendJSON(llvm::json::Value(std::move(response)));
}
-//----------------------------------------------------------------------
// "PauseRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -1390,7 +1359,6 @@ void request_next(const llvm::json::Object &request) {
// acknowledgement, so no body field is required."
// }]
// }
-//----------------------------------------------------------------------
void request_pause(const llvm::json::Object &request) {
llvm::json::Object response;
FillResponse(request, response);
@@ -1399,7 +1367,6 @@ void request_pause(const llvm::json::Object &request) {
g_vsc.SendJSON(llvm::json::Value(std::move(response)));
}
-//----------------------------------------------------------------------
// "ScopesRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -1451,7 +1418,6 @@ void request_pause(const llvm::json::Object &request) {
// "required": [ "body" ]
// }]
// }
-//----------------------------------------------------------------------
void request_scopes(const llvm::json::Object &request) {
llvm::json::Object response;
FillResponse(request, response);
@@ -1477,7 +1443,6 @@ void request_scopes(const llvm::json::Object &request) {
g_vsc.SendJSON(llvm::json::Value(std::move(response)));
}
-//----------------------------------------------------------------------
// "SetBreakpointsRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -1588,7 +1553,6 @@ void request_scopes(const llvm::json::Object &request) {
// },
// "required": [ "line" ]
// }
-//----------------------------------------------------------------------
void request_setBreakpoints(const llvm::json::Object &request) {
llvm::json::Object response;
lldb::SBError error;
@@ -1670,7 +1634,6 @@ void request_setBreakpoints(const llvm::json::Object &request) {
g_vsc.SendJSON(llvm::json::Value(std::move(response)));
}
-//----------------------------------------------------------------------
// "SetExceptionBreakpointsRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -1718,7 +1681,6 @@ void request_setBreakpoints(const llvm::json::Object &request) {
// just an acknowledgement, so no body field is required."
// }]
// }
-//----------------------------------------------------------------------
void request_setExceptionBreakpoints(const llvm::json::Object &request) {
llvm::json::Object response;
lldb::SBError error;
@@ -1747,7 +1709,6 @@ void request_setExceptionBreakpoints(const llvm::json::Object &request) {
g_vsc.SendJSON(llvm::json::Value(std::move(response)));
}
-//----------------------------------------------------------------------
// "SetFunctionBreakpointsRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -1826,7 +1787,6 @@ void request_setExceptionBreakpoints(const llvm::json::Object &request) {
// "required": [ "body" ]
// }]
// }
-//----------------------------------------------------------------------
void request_setFunctionBreakpoints(const llvm::json::Object &request) {
llvm::json::Object response;
lldb::SBError error;
@@ -1883,7 +1843,6 @@ void request_setFunctionBreakpoints(const llvm::json::Object &request) {
g_vsc.SendJSON(llvm::json::Value(std::move(response)));
}
-//----------------------------------------------------------------------
// "SourceRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -1942,7 +1901,6 @@ void request_setFunctionBreakpoints(const llvm::json::Object &request) {
// "required": [ "body" ]
// }]
// }
-//----------------------------------------------------------------------
void request_source(const llvm::json::Object &request) {
llvm::json::Object response;
FillResponse(request, response);
@@ -1961,7 +1919,6 @@ void request_source(const llvm::json::Object &request) {
g_vsc.SendJSON(llvm::json::Value(std::move(response)));
}
-//----------------------------------------------------------------------
// "StackTraceRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -2032,7 +1989,6 @@ void request_source(const llvm::json::Object &request) {
// "required": [ "body" ]
// }]
// }
-//----------------------------------------------------------------------
void request_stackTrace(const llvm::json::Object &request) {
llvm::json::Object response;
FillResponse(request, response);
@@ -2058,7 +2014,6 @@ void request_stackTrace(const llvm::json::Object &request) {
g_vsc.SendJSON(llvm::json::Value(std::move(response)));
}
-//----------------------------------------------------------------------
// "StepInRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -2104,7 +2059,6 @@ void request_stackTrace(const llvm::json::Object &request) {
// acknowledgement, so no body field is required."
// }]
// }
-//----------------------------------------------------------------------
void request_stepIn(const llvm::json::Object &request) {
llvm::json::Object response;
FillResponse(request, response);
@@ -2121,7 +2075,6 @@ void request_stepIn(const llvm::json::Object &request) {
g_vsc.SendJSON(llvm::json::Value(std::move(response)));
}
-//----------------------------------------------------------------------
// "StepOutRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -2158,7 +2111,6 @@ void request_stepIn(const llvm::json::Object &request) {
// acknowledgement, so no body field is required."
// }]
// }
-//----------------------------------------------------------------------
void request_stepOut(const llvm::json::Object &request) {
llvm::json::Object response;
FillResponse(request, response);
@@ -2175,7 +2127,6 @@ void request_stepOut(const llvm::json::Object &request) {
g_vsc.SendJSON(llvm::json::Value(std::move(response)));
}
-//----------------------------------------------------------------------
// "ThreadsRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -2211,7 +2162,6 @@ void request_stepOut(const llvm::json::Object &request) {
// "required": [ "body" ]
// }]
// }
-//----------------------------------------------------------------------
void request_threads(const llvm::json::Object &request) {
lldb::SBProcess process = g_vsc.target.GetProcess();
@@ -2233,7 +2183,6 @@ void request_threads(const llvm::json::Object &request) {
g_vsc.SendJSON(llvm::json::Value(std::move(response)));
}
-//----------------------------------------------------------------------
// "SetVariableRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -2316,7 +2265,6 @@ void request_threads(const llvm::json::Object &request) {
// "required": [ "body" ]
// }]
// }
-//----------------------------------------------------------------------
void request_setVariable(const llvm::json::Object &request) {
llvm::json::Object response;
FillResponse(request, response);
@@ -2426,7 +2374,6 @@ void request_setVariable(const llvm::json::Object &request) {
g_vsc.SendJSON(llvm::json::Value(std::move(response)));
}
-//----------------------------------------------------------------------
// "VariablesRequest": {
// "allOf": [ { "$ref": "#/definitions/Request" }, {
// "type": "object",
@@ -2500,7 +2447,6 @@ void request_setVariable(const llvm::json::Object &request) {
// "required": [ "body" ]
// }]
// }
-//----------------------------------------------------------------------
void request_variables(const llvm::json::Object &request) {
llvm::json::Object response;
FillResponse(request, response);
OpenPOWER on IntegriCloud