forked from OSchip/llvm-project
parent
05cbccc649
commit
ae4c026765
|
@ -28,7 +28,7 @@ class CMICmdArgValBase;
|
|||
// Argument objects added to *this container are owned by this container
|
||||
// and are deleted when this container goes out of scope. Allocate argument
|
||||
// objects on the heap.
|
||||
// It is assummed the arguments to be parsed are read from left to right in
|
||||
// It is assumed the arguments to be parsed are read from left to right in
|
||||
// order. The order added to *this container is the order they will parsed.
|
||||
// Gotchas: None.
|
||||
// Authors: Illya Rudkin 14/04/2014.
|
||||
|
|
|
@ -69,7 +69,7 @@ CMICmdBase::GetErrorDescription(void) const
|
|||
// options description string.
|
||||
// Type: Overridden.
|
||||
// Args: None.
|
||||
// Return: CMIUtilString & - Command decription.
|
||||
// Return: CMIUtilString & - Command description.
|
||||
// Throws: None.
|
||||
//--
|
||||
const CMIUtilString &
|
||||
|
@ -141,7 +141,7 @@ CMICmdBase::GetMIResultRecord(void) const
|
|||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Retrieve from the command additional MI result to its 1 line response.
|
||||
// Because of using LLDB addtional 'fake'/hack output is sometimes required to
|
||||
// Because of using LLDB additional 'fake'/hack output is sometimes required to
|
||||
// help the driver client operate i.e. Eclipse.
|
||||
// Type: Overridden.
|
||||
// Args: None.
|
||||
|
@ -156,7 +156,7 @@ CMICmdBase::GetMIResultRecordExtra(void) const
|
|||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Hss *this command got additional MI result to its 1 line response.
|
||||
// Because of using LLDB addtional 'fake'/hack output is sometimes required to
|
||||
// Because of using LLDB additional 'fake'/hack output is sometimes required to
|
||||
// help the driver client operate i.e. Eclipse.
|
||||
// Type: Overridden.
|
||||
// Args: None.
|
||||
|
|
|
@ -25,7 +25,7 @@ class CMICmnLLDBDebugSessionInfo;
|
|||
//++ ============================================================================
|
||||
// Details: MI command base class. MI commands derive from this base class.
|
||||
// The Command Factory creates command objects and passes them to the
|
||||
// Command Invoker. The Invoker takes ownersip of any commands created
|
||||
// Command Invoker. The Invoker takes ownership of any commands created
|
||||
// which means it is the only object to delete them when a command is
|
||||
// finished working. Commands do not delete themselves.
|
||||
// There are two types of command implicitly defined by the state of
|
||||
|
|
|
@ -1009,7 +1009,7 @@ CMICmdCmdBreakCondition::CreateSelf(void)
|
|||
// a single string i.e. '2' -> ok.
|
||||
// a quoted string i.e. "a > 100" -> ok
|
||||
// a non quoted string i.e. 'a > 100' -> not ok
|
||||
// CMICmdArgValString only extracts the first space seperated string, the "a".
|
||||
// CMICmdArgValString only extracts the first space separated string, the "a".
|
||||
// This function using the optional argument type CMICmdArgValListOfN collects
|
||||
// the rest of the expression so that is may be added to the 'a' part to form a
|
||||
// complete expression string i.e. "a > 100".
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
// Details: MI command class. MI commands derived from the command base class.
|
||||
// *this class implements MI command "file-exec-and-symbols".
|
||||
// This command does not follow the MI documentation exactly.
|
||||
// Gotchas: This command has additonal flags that were not available in GDB MI.
|
||||
// Gotchas: This command has additional flags that were not available in GDB MI.
|
||||
// See MIextensions.txt for details.
|
||||
// Authors: Illya Rudkin 25/02/2014.
|
||||
// Changes: None.
|
||||
|
|
|
@ -184,7 +184,7 @@ CMICmdCmdListThreadGroups::ParseArgs(void)
|
|||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: The invoker requires this function. The command does work in this function.
|
||||
// The command is likely to communicate with the LLDB SBDebugger in here.
|
||||
// Synopis: -list-thread-groups [ --available ] [ --recurse 1 ] [ group ... ]
|
||||
// Synopsis: -list-thread-groups [ --available ] [ --recurse 1 ] [ group ... ]
|
||||
// This command does not follow the MI documentation exactly. Has an extra
|
||||
// argument "i1" to handle.
|
||||
// Ref:
|
||||
|
|
|
@ -85,7 +85,7 @@ CMICmdFactory::Shutdown(void)
|
|||
}
|
||||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Register a command's creator function with the command identitier the MI
|
||||
// Details: Register a command's creator function with the command identifier the MI
|
||||
// command name i.e. 'file-exec-and-symbols'.
|
||||
// Type: Method.
|
||||
// Args: vMiCmd - (R) Command's name, the MI command.
|
||||
|
|
|
@ -176,7 +176,7 @@ CMICmdInvoker::CmdAdd(const CMICmdBase &vCmd)
|
|||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Having previously had the potential command validated and found valid now
|
||||
// get the command executed.
|
||||
// If the Functionalityity returns MIstatus::failure call GetErrorDescription().
|
||||
// If the Functionality returns MIstatus::failure call GetErrorDescription().
|
||||
// This function is used by the application's main thread.
|
||||
// Type: Method.
|
||||
// Args: vCmd - (RW) Command object.
|
||||
|
@ -220,7 +220,7 @@ 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 asynchronoulsy
|
||||
// because the command executed was the type a non event type or asynchronously
|
||||
// via the command's callback (because of an SB Listener event). Needs to be called
|
||||
// so that *this invoker call do some house keeping and then proceed to call
|
||||
// the command's Acknowledge() function.
|
||||
|
|
|
@ -33,7 +33,7 @@ class CMICmnStreamStdout;
|
|||
// exceed a time limit which if it exceeds informs the command(s) to
|
||||
// stop work.
|
||||
// The work by the Invoker is carried out in the main thread.
|
||||
// The Invoker takes ownersip of any commands created which means it
|
||||
// The Invoker takes ownership of any commands created which means it
|
||||
// is the only object to delete them when a command is finished working.
|
||||
// A singleton class.
|
||||
// Gotchas: None.
|
||||
|
|
|
@ -170,7 +170,7 @@ CMICmdMgr::CmdInterpret(const CMIUtilString &vTextLine, bool &vwbYesValid, bool
|
|||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Having previously had the potential command validated and found valid now
|
||||
// get the command executed.
|
||||
// If the Functionalityity returns MIstatus::failure call GetErrorDescription().
|
||||
// If the Functionality returns MIstatus::failure call GetErrorDescription().
|
||||
// This function is used by the application's main thread.
|
||||
// Type: Method.
|
||||
// Args: vCmdData - (RW) Command meta data.
|
||||
|
|
|
@ -46,7 +46,7 @@ CMICmnBase::~CMICmnBase(void)
|
|||
// Details: Retrieve whether *this object has an error description set.
|
||||
// Type: Method.
|
||||
// Args: None.
|
||||
// Return: bool - True = Yes already defined, false = empty discription.
|
||||
// Return: bool - True = Yes already defined, false = empty description.
|
||||
// Throws: None.
|
||||
//--
|
||||
bool
|
||||
|
|
|
@ -35,7 +35,7 @@ CMICmnLLDBBroadcaster::~CMICmnLLDBBroadcaster(void)
|
|||
}
|
||||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Initialize resources for *this broardcaster object.
|
||||
// Details: Initialize resources for *this broadcaster object.
|
||||
// Type: Method.
|
||||
// Args: None.
|
||||
// Return: MIstatus::success - Functionality succeeded.
|
||||
|
@ -56,7 +56,7 @@ CMICmnLLDBBroadcaster::Initialize(void)
|
|||
}
|
||||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Release resources for *this broardcaster object.
|
||||
// Details: Release resources for *this broadcaster object.
|
||||
// Type: Method.
|
||||
// Args: None.
|
||||
// Return: MIstatus::success - Functionality succeeded.
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "MIUtilSingletonBase.h"
|
||||
|
||||
//++ ============================================================================
|
||||
// Details: MI derived class from LLDB SBBroardcaster API.
|
||||
// Details: MI derived class from LLDB SBBroadcaster API.
|
||||
//
|
||||
// *** This class (files) is a place holder until we know we need it or
|
||||
// *** not
|
||||
|
|
|
@ -383,7 +383,7 @@ CMICmnLLDBDebugSessionInfo::MIResponseFormThreadInfo(const SMICmdData &vCmdData,
|
|||
const char *pThreadName = rThread.GetName();
|
||||
const MIuint len = (pThreadName != nullptr) ? CMIUtilString(pThreadName).length() : 0;
|
||||
const bool bHaveName = ((pThreadName != nullptr) && (len > 0) && (len < 32) &&
|
||||
CMIUtilString::IsAllValidAlphaAndNumeric(pThreadName)); // 32 is arbitary number
|
||||
CMIUtilString::IsAllValidAlphaAndNumeric(pThreadName)); // 32 is arbitrary number
|
||||
const char *pThrdFmt = bHaveName ? "%s" : "Thread %d";
|
||||
CMIUtilString strThread;
|
||||
if (bHaveName)
|
||||
|
@ -523,7 +523,7 @@ CMICmnLLDBDebugSessionInfo::MIResponseForVariableInfoInternal(const VariableInfo
|
|||
// Args: vrValue - (R) LLDB value object.
|
||||
// vbInSimpleForm - (R) True = Get variable info in simple form (i.e. don't expand aggregates).
|
||||
// - False = Get variable info (and expand aggregates if any).
|
||||
// vwrStrValue t - (W) The string representatin of this value.
|
||||
// vwrStrValue t - (W) The string representation of this value.
|
||||
// Return: MIstatus::success - Functional succeeded.
|
||||
// MIstatus::failure - Functional failed.
|
||||
// Throws: None.
|
||||
|
|
|
@ -35,8 +35,8 @@ class CMICmnMIValueList;
|
|||
// Details: MI debug session object that holds debugging information between
|
||||
// instances of MI commands executing their work and producing MI
|
||||
// result records. Information/data is set by one or many commands then
|
||||
// retrieved by the same or other sebsequent commands.
|
||||
// It primarily to hold LLDB type objects.
|
||||
// retrieved by the same or other subsequent commands.
|
||||
// It primarily holds LLDB type objects.
|
||||
// A singleton class.
|
||||
// Gotchas: None.
|
||||
// Authors: Illya Rudkin 04/03/2014.
|
||||
|
|
|
@ -289,7 +289,7 @@ CMICmnLLDBDebugSessionInfoVarObj::GetValueStringFormatted(const lldb::SBValue &v
|
|||
}
|
||||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Return nuber formatted string according to the given value type.
|
||||
// Details: Return number formatted string according to the given value type.
|
||||
// Type: Static method.
|
||||
// Args: vnValue - (R) The number value to get formatted.
|
||||
// vpStrValueNatural - (R) The natural representation of the number value.
|
||||
|
@ -535,7 +535,7 @@ CMICmnLLDBDebugSessionInfoVarObj::GetValue(void) const
|
|||
}
|
||||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Set the var format type for *this object and upate the formatting.
|
||||
// Details: Set the var format type for *this object and update the formatting.
|
||||
// Type: Method.
|
||||
// Args: None.
|
||||
// Return: MIstatus::success - Functional succeeded.
|
||||
|
|
|
@ -120,7 +120,7 @@ class CMICmnLLDBDebugSessionInfoVarObj
|
|||
static MIuint ms_nVarUniqueId;
|
||||
static varFormat_e ms_eDefaultFormat; // overrides "natural" format
|
||||
//
|
||||
// *** Upate the copy move constructors and assignment operator ***
|
||||
// *** Update the copy move constructors and assignment operator ***
|
||||
varFormat_e m_eVarFormat;
|
||||
varType_e m_eVarType;
|
||||
CMIUtilString m_strName;
|
||||
|
@ -128,5 +128,5 @@ class CMICmnLLDBDebugSessionInfoVarObj
|
|||
CMIUtilString m_strNameReal;
|
||||
CMIUtilString m_strFormattedValue;
|
||||
CMIUtilString m_strVarObjParentName;
|
||||
// *** Upate the copy move constructors and assignment operator ***
|
||||
// *** Update the copy move constructors and assignment operator ***
|
||||
};
|
||||
|
|
|
@ -64,7 +64,7 @@ CMICmnLLDBDebuggerHandleEvents::~CMICmnLLDBDebuggerHandleEvents(void)
|
|||
}
|
||||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Initialize resources for *this broardcaster object.
|
||||
// Details: Initialize resources for *this broadcaster object.
|
||||
// Type: Method.
|
||||
// Args: None.
|
||||
// Return: MIstatus::success - Functionality succeeded.
|
||||
|
@ -90,7 +90,7 @@ CMICmnLLDBDebuggerHandleEvents::Initialize(void)
|
|||
}
|
||||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Release resources for *this broardcaster object.
|
||||
// Details: Release resources for *this broadcaster object.
|
||||
// Type: Method.
|
||||
// Args: None.
|
||||
// Return: MIstatus::success - Functionality succeeded.
|
||||
|
@ -112,7 +112,7 @@ CMICmnLLDBDebuggerHandleEvents::Shutdown(void)
|
|||
}
|
||||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Interpret the event object to asscertain the action to take or information to
|
||||
// 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 stdout.
|
||||
// Type: Method.
|
||||
// Args: vEvent - (R) An LLDB broadcast event.
|
||||
|
|
|
@ -36,7 +36,7 @@ CMICmnLLDBProxySBValue::GetValueAsUnsigned(const lldb::SBValue &vrValue, MIuint6
|
|||
MIuint64 nValue = rValue.GetValueAsUnsigned(nFailValue);
|
||||
if (nValue == nFailValue)
|
||||
{
|
||||
nFailValue = 5; // Some arbitary number
|
||||
nFailValue = 5; // Some arbitrary number
|
||||
nValue = rValue.GetValueAsUnsigned(nFailValue);
|
||||
if (nValue != nFailValue)
|
||||
{
|
||||
|
@ -72,7 +72,7 @@ CMICmnLLDBProxySBValue::GetValueAsSigned(const lldb::SBValue &vrValue, MIint64 &
|
|||
MIuint64 nValue = rValue.GetValueAsSigned(nFailValue);
|
||||
if (nValue == nFailValue)
|
||||
{
|
||||
nFailValue = 5; // Some arbitary number
|
||||
nFailValue = 5; // Some arbitrary number
|
||||
nValue = rValue.GetValueAsSigned(nFailValue);
|
||||
if (nValue != nFailValue)
|
||||
{
|
||||
|
|
|
@ -15,12 +15,12 @@
|
|||
// In-house headers:
|
||||
#include "MIDataTypes.h"
|
||||
|
||||
// Declerations:
|
||||
// Declarations:
|
||||
class CMIUtilString;
|
||||
|
||||
//++ ============================================================================
|
||||
// Details: MI proxy wrapper class to lldb::SBValue. The class provides functionality
|
||||
// to assist in the use of SBValue's parculiar function usage.
|
||||
// to assist in the use of SBValue's particular function usage.
|
||||
// Gotchas: None.
|
||||
// Authors: Illya Rudkin 03/04/2014.
|
||||
// Changes: None.
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: CMICmnLLDBUtilSBValue constructor.
|
||||
// Type: Method.
|
||||
// Args: vrValue - (R) The LLDb value object.
|
||||
// Args: vrValue - (R) The LLDB value object.
|
||||
// vbHandleCharType - (R) True = Yes return text molding to char type,
|
||||
// False = just return data.
|
||||
// Return: None.
|
||||
|
@ -579,7 +579,7 @@ CMICmnLLDBUtilSBValue::HasName(void) const
|
|||
}
|
||||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Determine if the value object' respresents a LLDB variable i.e. "$0".
|
||||
// Details: Determine if the value object' represents a LLDB variable i.e. "$0".
|
||||
// Type: Method.
|
||||
// Args: None.
|
||||
// Return: bool - True = Yes LLDB variable, false = no.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include "MIDataTypes.h"
|
||||
#include "MICmnMIValueTuple.h"
|
||||
|
||||
// Declerations:
|
||||
// Declarations:
|
||||
class CMIUtilString;
|
||||
|
||||
//++ ============================================================================
|
||||
|
|
|
@ -396,7 +396,7 @@ CMICmnLogMediumFile::ConvertCr(const CMIUtilString &vData) const
|
|||
}
|
||||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Set the header text that is written to the logger file at the begining.
|
||||
// Details: Set the header text that is written to the logger file at the beginning.
|
||||
// Type: Method.
|
||||
// Args: vText - (R) Text.
|
||||
// Return: MIstatus::success - Functional succeeded.
|
||||
|
@ -425,7 +425,7 @@ CMICmnLogMediumFile::GetLineReturn(void) const
|
|||
}
|
||||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Set the diretory to place the log file.
|
||||
// Details: Set the directory to place the log file.
|
||||
// Type: Method.
|
||||
// Args: vPath - (R) Path to log.
|
||||
// Return: MIstatus::success - Functional succeeded.
|
||||
|
|
|
@ -84,7 +84,7 @@ CMICmnMIValueList::BuildList(void)
|
|||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Add another MI result object to the value list's of list is results.
|
||||
// Only result obejcts can be added to a list of result otherwise this function
|
||||
// Only result objects can be added to a list of result otherwise this function
|
||||
// will return MIstatus::failure.
|
||||
// Type: Method.
|
||||
// Args: vResult - (R) The MI result object.
|
||||
|
@ -116,7 +116,7 @@ CMICmnMIValueList::Add(const CMICmnMIValue &vValue)
|
|||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Add another MI result object to the value list's of list is results.
|
||||
// Only result obejcts can be added to a list of result otherwise this function
|
||||
// Only result objects can be added to a list of result otherwise this function
|
||||
// will return MIstatus::failure.
|
||||
// Type: Method.
|
||||
// Args: vResult - (R) The MI result object.
|
||||
|
|
|
@ -129,7 +129,7 @@ const CMICmnResources::SRsrcTextData CMICmnResources::ms_pResourceId2TextData[]
|
|||
{IDS_LLDBDEBUGGER_ERR_INVALIDCLIENTNAME, "LLDB Debugger. Invalid client name '%s' "},
|
||||
{IDS_LLDBDEBUGGER_ERR_CLIENTNOTREGISTERED, "LLDB Debugger. Client name '%s' not registered for listening events"},
|
||||
{IDS_LLDBDEBUGGER_ERR_STOPLISTENER, "LLDB Debugger. Failure occurred stopping event for client '%s' SBBroadcaster '%s'"},
|
||||
{IDS_LLDBDEBUGGER_ERR_BROARDCASTER_NAME, "LLDB Debugger. Broardcaster's name '%s' is not valid"},
|
||||
{IDS_LLDBDEBUGGER_ERR_BROARDCASTER_NAME, "LLDB Debugger. Broadcaster's name '%s' is not valid"},
|
||||
{IDS_LLDBDEBUGGER_WRN_UNKNOWN_EVENT, "LLDB Debugger. Unhandled event '%s'"},
|
||||
{IDS_LLDBOUTOFBAND_ERR_UNKNOWN_EVENT, "LLDB Out-of-band. Handling event for '%s', an event enumeration '%d' not recognised"},
|
||||
{IDS_LLDBOUTOFBAND_ERR_PROCESS_INVALID, "LLDB Out-of-band. Invalid '%s' in '%s'"},
|
||||
|
|
|
@ -93,7 +93,7 @@ CMICmnStreamStderr::Shutdown(void)
|
|||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Write text data to stderr. Prefix the message with "MI:". The text data does
|
||||
// not need to include a carrage line return as this is added to the text. The
|
||||
// not need to include a carriage line return as this is added to the text. The
|
||||
// function also then passes the text data into the CMICmnLog logger.
|
||||
// Type: Method.
|
||||
// Args: vText - (R) Text data.
|
||||
|
@ -115,7 +115,7 @@ CMICmnStreamStderr::Write(const CMIUtilString &vText, const bool vbSendToLog /*
|
|||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Write an LLDB text message to stderr.
|
||||
// The text data does not need to include a carrage line return as this is added
|
||||
// The text data does not need to include a carriage line return as this is added
|
||||
// to the text. The function also then passes the text data into the CMICmnLog
|
||||
// logger.
|
||||
// Type: Method.
|
||||
|
@ -138,7 +138,7 @@ CMICmnStreamStderr::WriteLLDBMsg(const CMIUtilString &vText, const bool vbSendTo
|
|||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Write text data to stderr. The text data does not need to
|
||||
// include a carrage line return as this is added to the text. The function also
|
||||
// include a carriage line return as this is added to the text. The function also
|
||||
// then passes the text data into the CMICmnLog logger.
|
||||
// Type: Method.
|
||||
// Args: vText - (R) Text data. May be prefixed with MI app's short name.
|
||||
|
|
|
@ -93,7 +93,7 @@ CMICmnStreamStdout::Shutdown(void)
|
|||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Write an MI format type response to stdout. The text data does not need to
|
||||
// include a carrage line return as this is added to the text. The function also
|
||||
// include a carriage line return as this is added to the text. The function also
|
||||
// then passes the text data into the CMICmnLog logger.
|
||||
// Type: Method.
|
||||
// Args: vText - (R) MI formatted text.
|
||||
|
@ -110,7 +110,7 @@ CMICmnStreamStdout::WriteMIResponse(const CMIUtilString &vText, const bool vbSen
|
|||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Write text data to stdout. The text data does not need to
|
||||
// include a carrage line return as this is added to the text. The function also
|
||||
// include a carriage line return as this is added to the text. The function also
|
||||
// then passes the text data into the CMICmnLog logger.
|
||||
// Type: Method.
|
||||
// Args: vText - (R) Text data.
|
||||
|
@ -132,7 +132,7 @@ CMICmnStreamStdout::Write(const CMIUtilString &vText, const bool vbSendToLog /*
|
|||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Write text data to stdout. The text data does not need to
|
||||
// include a carrage line return as this is added to the text. The function also
|
||||
// include a carriage line return as this is added to the text. The function also
|
||||
// then passes the text data into the CMICmnLog logger.
|
||||
// Type: Method.
|
||||
// Args: vText - (R) Text data prefixed with MI app's short name.
|
||||
|
|
|
@ -343,7 +343,7 @@ 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 of the
|
||||
// original LLDb driver class (the extra indirection is not necessarily required).
|
||||
// original LLDB driver class (the extra indirection is not necessarily required).
|
||||
// Check the arguments that were passed to this program to make sure they are
|
||||
// valid and to get their argument values (if any).
|
||||
// Type: Overridden.
|
||||
|
|
|
@ -175,7 +175,7 @@ CMIDriverBase::GetStderr(void) 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 instantious.
|
||||
// after every stdin line is read so the exit may not be instantaneous.
|
||||
// If vbForceExit is false the MI Driver queries its state and determines if is
|
||||
// should exit or continue operating depending on that running state.
|
||||
// Type: Overrideable.
|
||||
|
|
|
@ -124,7 +124,7 @@ DriverSystemShutdown(const bool vbAppExitOk)
|
|||
}
|
||||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: MI's application start point of execution. The applicaton runs in two modes.
|
||||
// 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 driver.
|
||||
// The other mode is the MI when it finds on the command line
|
||||
// the --interpreter option. Command line argument --help on its own will give
|
||||
|
@ -140,7 +140,7 @@ DriverSystemShutdown(const bool vbAppExitOk)
|
|||
// >0 = Program success with status i.e. Control-C signal status
|
||||
// <0 = Program failed.
|
||||
// -1 = Program failed reason not specified here, see MI log file.
|
||||
// -1000 = Program failed did not initailize successfully.
|
||||
// -1000 = Program failed did not initialize successfully.
|
||||
// Throws: None.
|
||||
//--
|
||||
int
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
//++ ============================================================================
|
||||
// Details: MI common code utility class. Map type container that hold general
|
||||
// object types (by being wrappin an variant wrapper)
|
||||
// object types (by being a variant wrapper)
|
||||
// objects by ID.
|
||||
// Gotchas: None.
|
||||
// Authors: Illya Rudkin 19/06/2014.
|
||||
|
@ -44,7 +44,7 @@ class CMIUtilMapIdToVariant : public CMICmnBase
|
|||
// From CMICmnBase
|
||||
/* dtor */ ~CMIUtilMapIdToVariant(void) override;
|
||||
|
||||
// Typdefs:
|
||||
// Typedefs:
|
||||
private:
|
||||
typedef std::map<CMIUtilString, CMIUtilVariant> MapKeyToVariantValue_t;
|
||||
typedef std::pair<CMIUtilString, CMIUtilVariant> MapPairKeyToVariantValue_t;
|
||||
|
@ -65,8 +65,8 @@ class CMIUtilMapIdToVariant : public CMICmnBase
|
|||
// Args: T - The data object's variable type.
|
||||
// vId - (R) Unique ID i.e. GUID.
|
||||
// vData - (R) The general data object to be stored of some type.
|
||||
// Return: MIstatus::success - Functional succeeded.
|
||||
// MIstatus::failure - Functional failed.
|
||||
// Return: MIstatus::success - Function succeeded.
|
||||
// MIstatus::failure - Function failed.
|
||||
// Throws: None.
|
||||
//--
|
||||
template <typename T>
|
||||
|
@ -98,8 +98,8 @@ CMIUtilMapIdToVariant::Add(const CMIUtilString &vId, const T &vData)
|
|||
// vId - (R) Unique ID i.e. GUID.
|
||||
// vrwData - (W) Copy of the data object held.
|
||||
// vrwbFound - (W) True = data found, false = data not found.
|
||||
// Return: MIstatus::success - Functional succeeded.
|
||||
// MIstatus::failure - Functional failed.
|
||||
// Return: MIstatus::success - Function succeeded.
|
||||
// MIstatus::failure - Function failed.
|
||||
// Throws: None.
|
||||
//--
|
||||
template <typename T>
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace MI
|
|||
// MI components (singletons) required by a client module.
|
||||
// Type: Template method.
|
||||
// Args: vErrorResrcId - (R) The string resource ID error message identifier to place in errMsg.
|
||||
// vwrbOk - (RW) On input True = Try to initalise MI driver module.
|
||||
// vwrbOk - (RW) On input True = Try to initialize MI driver module.
|
||||
// On output True = MI driver module initialise successfully.
|
||||
// vwrErrMsg - (W) MI driver module initialise error description on failure.
|
||||
// Return: MIstatus::success - Functional succeeded.
|
||||
|
@ -46,7 +46,7 @@ ModuleInit(const MIint vErrorResrcId, bool &vwrbOk, CMIUtilString &vwrErrMsg)
|
|||
}
|
||||
|
||||
//++ ============================================================================
|
||||
// Details: Short cut helper function to simplify repeated shutodown of
|
||||
// Details: Short cut helper function to simplify repeated shutdown of
|
||||
// MI components (singletons) required by a client module.
|
||||
// Type: Template method.
|
||||
// Args: vErrorResrcId - (R) The string resource ID error message identifier
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
//--
|
||||
class CMIUtilString : public std::string
|
||||
{
|
||||
// Typdefs:
|
||||
// Typedefs:
|
||||
public:
|
||||
typedef std::vector<CMIUtilString> VecString_t;
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ CMIUtilSystemLinux::GetOSLastError(void) const
|
|||
// Details: Retrieves the fully qualified path for the this application. If the function
|
||||
// fails the string is filled with the error message.
|
||||
// Type: Method.
|
||||
// Args: vrwFileNamePath - (W) The excutable's name and path or last error description.
|
||||
// Args: vrwFileNamePath - (W) The executable's name and path or last error description.
|
||||
// Return: MIstatus::success - Functional succeeded.
|
||||
// MIstatus::failure - Functional failed.
|
||||
// Throws: None.
|
||||
|
|
|
@ -78,7 +78,7 @@ CMIUtilSystemOsx::GetOSLastError(void) const
|
|||
// Details: Retrieves the fully qualified path for the this application. If the function
|
||||
// fails the string is filled with the error message.
|
||||
// Type: Method.
|
||||
// Args: vrwFileNamePath - (W) The excutable's name and path or last error description.
|
||||
// Args: vrwFileNamePath - (W) The executable's name and path or last error description.
|
||||
// Return: MIstatus::success - Functional succeeded.
|
||||
// MIstatus::failure - Functional failed.
|
||||
// Throws: None.
|
||||
|
|
|
@ -100,7 +100,7 @@ CMIUtilSystemWindows::GetOSLastError(void) const
|
|||
// Details: Retrieves the fully qualified path for the this application. If the function
|
||||
// fails the string is filled with the error message.
|
||||
// Type: Method.
|
||||
// Args: vrwFileNamePath - (W) The excutable's name and path or last error description.
|
||||
// Args: vrwFileNamePath - (W) The executable's name and path or last error description.
|
||||
// Return: MIstatus::success - Functional succeeded.
|
||||
// MIstatus::failure - Functional failed.
|
||||
// Throws: None.
|
||||
|
|
|
@ -59,7 +59,7 @@ CMIUtilThreadActiveObjBase::ThreadIsActive(void)
|
|||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Set up *this thread.
|
||||
// Type: Mrthod.
|
||||
// Type: Method.
|
||||
// Args: None.
|
||||
// Return: MIstatus::success - Functional succeeded.
|
||||
// MIstatus::failure - Functional failed.
|
||||
|
@ -73,7 +73,7 @@ CMIUtilThreadActiveObjBase::ThreadExecute(void)
|
|||
}
|
||||
|
||||
//++ ------------------------------------------------------------------------------------
|
||||
// Details: Aquire a reference to CMIUtilThreadActiveObjBase.
|
||||
// Details: Acquire a reference to CMIUtilThreadActiveObjBase.
|
||||
// Type: Method.
|
||||
// Args: None.
|
||||
// Return: MIstatus::success - Functional succeeded.
|
||||
|
|
Loading…
Reference in New Issue