forked from qt-creator/qt-creator
Debugger: Standardize on all-lowercase for protocol options
CamelCase might be more Qt-ish, but the backends tend to use lowercase only. Change-Id: I04b9b7305b54226f27b70151115050c4816f911f Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -253,12 +253,12 @@ class Dumper(DumperBase):
|
|||||||
self.useDynamicType = int(args.get("dyntype", "0"))
|
self.useDynamicType = int(args.get("dyntype", "0"))
|
||||||
self.useFancy = int(args.get("fancy", "0"))
|
self.useFancy = int(args.get("fancy", "0"))
|
||||||
self.forceQtNamespace = int(args.get("forcens", "0"))
|
self.forceQtNamespace = int(args.get("forcens", "0"))
|
||||||
self.passExceptions = int(args.get("passexeptions", "0"))
|
self.passExceptions = int(args.get("passexceptions", "0"))
|
||||||
self.nativeMixed = int(args.get("nativemixed", "0"))
|
self.nativeMixed = int(args.get("nativemixed", "0"))
|
||||||
self.autoDerefPointers = int(args.get("autoderef", "0"))
|
self.autoDerefPointers = int(args.get("autoderef", "0"))
|
||||||
self.partialUpdate = int(args.get("partial", "0"))
|
self.partialUpdate = int(args.get("partial", "0"))
|
||||||
self.fallbackQtVersion = 0x50200
|
self.fallbackQtVersion = 0x50200
|
||||||
self.sortStructMembers = bool(args.get("sortStructMembers", True))
|
self.sortStructMembers = bool(args.get("sortstructs", True))
|
||||||
|
|
||||||
#warn("NAMESPACE: '%s'" % self.qtNamespace())
|
#warn("NAMESPACE: '%s'" % self.qtNamespace())
|
||||||
#warn("EXPANDED INAMES: %s" % self.expandedINames)
|
#warn("EXPANDED INAMES: %s" % self.expandedINames)
|
||||||
@@ -355,7 +355,7 @@ class Dumper(DumperBase):
|
|||||||
|
|
||||||
def fetchVariables(self, args):
|
def fetchVariables(self, args):
|
||||||
self.prepare(args)
|
self.prepare(args)
|
||||||
partialVariable = args.get("partialVariable", "")
|
partialVariable = args.get("partialvar", "")
|
||||||
isPartial = len(partialVariable) > 0
|
isPartial = len(partialVariable) > 0
|
||||||
|
|
||||||
(ok, res) = self.tryFetchInterpreterVariables(args)
|
(ok, res) = self.tryFetchInterpreterVariables(args)
|
||||||
@@ -1763,7 +1763,7 @@ class CliDumper(Dumper):
|
|||||||
|
|
||||||
def fetchVariables(self, args):
|
def fetchVariables(self, args):
|
||||||
args['fancy'] = 1
|
args['fancy'] = 1
|
||||||
args['passException'] = 1
|
args['passexception'] = 1
|
||||||
args['autoderef'] = 1
|
args['autoderef'] = 1
|
||||||
name = args['varlist']
|
name = args['varlist']
|
||||||
self.prepare(args)
|
self.prepare(args)
|
||||||
|
|||||||
@@ -654,14 +654,14 @@ class Dumper(DumperBase):
|
|||||||
error = lldb.SBError()
|
error = lldb.SBError()
|
||||||
|
|
||||||
self.executable_ = args['executable']
|
self.executable_ = args['executable']
|
||||||
self.startMode_ = args.get('startMode', 1)
|
self.startMode_ = args.get('startmode', 1)
|
||||||
self.breakOnMain_ = args.get('breakOnMain', 0)
|
self.breakOnMain_ = args.get('breakonmain', 0)
|
||||||
self.useTerminal_ = args.get('useTerminal', 0)
|
self.useTerminal_ = args.get('useterminal', 0)
|
||||||
self.processArgs_ = args.get('processArgs', [])
|
self.processArgs_ = args.get('processargs', [])
|
||||||
self.processArgs_ = map(lambda x: self.hexdecode(x), self.processArgs_)
|
self.processArgs_ = map(lambda x: self.hexdecode(x), self.processArgs_)
|
||||||
self.attachPid_ = args.get('attachPid', 0)
|
self.attachPid_ = args.get('attachpid', 0)
|
||||||
self.sysRoot_ = args.get('sysRoot', '')
|
self.sysRoot_ = args.get('sysroot', '')
|
||||||
self.remoteChannel_ = args.get('remoteChannel', '')
|
self.remoteChannel_ = args.get('remotechannel', '')
|
||||||
self.platform_ = args.get('platform', '')
|
self.platform_ = args.get('platform', '')
|
||||||
self.nativeMixed = int(args.get('nativemixed', 0))
|
self.nativeMixed = int(args.get('nativemixed', 0))
|
||||||
|
|
||||||
@@ -1152,13 +1152,13 @@ class Dumper(DumperBase):
|
|||||||
|
|
||||||
self.expandedINames = set(args.get('expanded', []))
|
self.expandedINames = set(args.get('expanded', []))
|
||||||
self.autoDerefPointers = int(args.get('autoderef', '0'))
|
self.autoDerefPointers = int(args.get('autoderef', '0'))
|
||||||
self.sortStructMembers = bool(args.get('sortStructMembers', True));
|
self.sortStructMembers = bool(args.get('sortstructs', True));
|
||||||
self.useDynamicType = int(args.get('dyntype', '0'))
|
self.useDynamicType = int(args.get('dyntype', '0'))
|
||||||
self.useFancy = int(args.get('fancy', '0'))
|
self.useFancy = int(args.get('fancy', '0'))
|
||||||
self.passExceptions = int(args.get('passexceptions', '0'))
|
self.passExceptions = int(args.get('passexceptions', '0'))
|
||||||
self.currentWatchers = args.get('watchers', {})
|
self.currentWatchers = args.get('watchers', {})
|
||||||
self.typeformats = args.get("typeformats", {})
|
self.typeformats = args.get('typeformats', {})
|
||||||
self.formats = args.get("formats", {})
|
self.formats = args.get('formats', {})
|
||||||
|
|
||||||
frame = self.currentFrame()
|
frame = self.currentFrame()
|
||||||
if frame is None:
|
if frame is None:
|
||||||
@@ -1166,7 +1166,7 @@ class Dumper(DumperBase):
|
|||||||
return
|
return
|
||||||
|
|
||||||
self.output = ''
|
self.output = ''
|
||||||
partialVariable = args.get("partialVariable", "")
|
partialVariable = args.get('partialvar', "")
|
||||||
isPartial = len(partialVariable) > 0
|
isPartial = len(partialVariable) > 0
|
||||||
|
|
||||||
self.currentIName = 'local'
|
self.currentIName = 'local'
|
||||||
|
|||||||
@@ -4625,7 +4625,7 @@ void GdbEngine::doUpdateLocals(const UpdateParameters ¶ms)
|
|||||||
|
|
||||||
const static bool alwaysVerbose = !qgetenv("QTC_DEBUGGER_PYTHON_VERBOSE").isEmpty();
|
const static bool alwaysVerbose = !qgetenv("QTC_DEBUGGER_PYTHON_VERBOSE").isEmpty();
|
||||||
|
|
||||||
cmd.arg("passExceptions", alwaysVerbose);
|
cmd.arg("passexceptions", alwaysVerbose);
|
||||||
cmd.arg("fancy", boolSetting(UseDebuggingHelpers));
|
cmd.arg("fancy", boolSetting(UseDebuggingHelpers));
|
||||||
cmd.arg("autoderef", boolSetting(AutoDerefPointers));
|
cmd.arg("autoderef", boolSetting(AutoDerefPointers));
|
||||||
cmd.arg("dyntype", boolSetting(UseDynamicType));
|
cmd.arg("dyntype", boolSetting(UseDynamicType));
|
||||||
@@ -4635,12 +4635,12 @@ void GdbEngine::doUpdateLocals(const UpdateParameters ¶ms)
|
|||||||
cmd.arg("context", frame.context);
|
cmd.arg("context", frame.context);
|
||||||
|
|
||||||
cmd.arg("resultvarname", m_resultVarName);
|
cmd.arg("resultvarname", m_resultVarName);
|
||||||
cmd.arg("partialVariable", params.partialVariable);
|
cmd.arg("partialvar", params.partialVariable);
|
||||||
cmd.arg("sortStructMembers", boolSetting(SortStructMembers));
|
cmd.arg("sortstructs", boolSetting(SortStructMembers));
|
||||||
cmd.callback = CB(handleFetchVariables);
|
cmd.callback = CB(handleFetchVariables);
|
||||||
runCommand(cmd);
|
runCommand(cmd);
|
||||||
|
|
||||||
cmd.arg("passExceptions", true);
|
cmd.arg("passexceptions", true);
|
||||||
m_lastDebuggableCommand = cmd;
|
m_lastDebuggableCommand = cmd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -332,15 +332,15 @@ void LldbEngine::setupInferior()
|
|||||||
|
|
||||||
DebuggerCommand cmd2("setupInferior");
|
DebuggerCommand cmd2("setupInferior");
|
||||||
cmd2.arg("executable", executable);
|
cmd2.arg("executable", executable);
|
||||||
cmd2.arg("breakOnMain", rp.breakOnMain);
|
cmd2.arg("breakonmain", rp.breakOnMain);
|
||||||
cmd2.arg("useTerminal", rp.useTerminal);
|
cmd2.arg("useterminal", rp.useTerminal);
|
||||||
cmd2.arg("startMode", rp.startMode);
|
cmd2.arg("startmode", rp.startMode);
|
||||||
cmd2.arg("nativemixed", isNativeMixedActive());
|
cmd2.arg("nativemixed", isNativeMixedActive());
|
||||||
|
|
||||||
QJsonArray processArgs;
|
QJsonArray processArgs;
|
||||||
foreach (const QString &arg, args.toUnixArgs())
|
foreach (const QString &arg, args.toUnixArgs())
|
||||||
processArgs.append(QLatin1String(arg.toUtf8().toHex()));
|
processArgs.append(QLatin1String(arg.toUtf8().toHex()));
|
||||||
cmd2.arg("processArgs", processArgs);
|
cmd2.arg("processargs", processArgs);
|
||||||
|
|
||||||
if (rp.useTerminal) {
|
if (rp.useTerminal) {
|
||||||
QTC_ASSERT(state() == InferiorSetupRequested, qDebug() << state());
|
QTC_ASSERT(state() == InferiorSetupRequested, qDebug() << state());
|
||||||
@@ -350,18 +350,18 @@ void LldbEngine::setupInferior()
|
|||||||
? QString::fromLatin1("Attaching to %1 (%2)").arg(attachedPID).arg(attachedMainThreadID)
|
? QString::fromLatin1("Attaching to %1 (%2)").arg(attachedPID).arg(attachedMainThreadID)
|
||||||
: QString::fromLatin1("Attaching to %1").arg(attachedPID);
|
: QString::fromLatin1("Attaching to %1").arg(attachedPID);
|
||||||
showMessage(msg, LogMisc);
|
showMessage(msg, LogMisc);
|
||||||
cmd2.arg("attachPid", attachedPID);
|
cmd2.arg("attachpid", attachedPID);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
cmd2.arg("startMode", rp.startMode);
|
cmd2.arg("startmode", rp.startMode);
|
||||||
// it is better not to check the start mode on the python sid (as we would have to duplicate the
|
// it is better not to check the start mode on the python sid (as we would have to duplicate the
|
||||||
// enum values), and thus we assume that if the rp.attachPID is valid we really have to attach
|
// enum values), and thus we assume that if the rp.attachPID is valid we really have to attach
|
||||||
QTC_CHECK(rp.attachPID <= 0 || (rp.startMode == AttachCrashedExternal
|
QTC_CHECK(rp.attachPID <= 0 || (rp.startMode == AttachCrashedExternal
|
||||||
|| rp.startMode == AttachExternal));
|
|| rp.startMode == AttachExternal));
|
||||||
cmd2.arg("attachPid", rp.attachPID);
|
cmd2.arg("attachpid", rp.attachPID);
|
||||||
cmd2.arg("sysRoot", rp.deviceSymbolsRoot.isEmpty() ? rp.sysRoot : rp.deviceSymbolsRoot);
|
cmd2.arg("sysroot", rp.deviceSymbolsRoot.isEmpty() ? rp.sysRoot : rp.deviceSymbolsRoot);
|
||||||
cmd2.arg("remoteChannel", ((rp.startMode == AttachToRemoteProcess
|
cmd2.arg("remotechannel", ((rp.startMode == AttachToRemoteProcess
|
||||||
|| rp.startMode == AttachToRemoteServer)
|
|| rp.startMode == AttachToRemoteServer)
|
||||||
? rp.remoteChannel : QString()));
|
? rp.remoteChannel : QString()));
|
||||||
cmd2.arg("platform", rp.platform);
|
cmd2.arg("platform", rp.platform);
|
||||||
@@ -795,8 +795,8 @@ void LldbEngine::doUpdateLocals(const UpdateParameters ¶ms)
|
|||||||
cmd.arg("fancy", boolSetting(UseDebuggingHelpers));
|
cmd.arg("fancy", boolSetting(UseDebuggingHelpers));
|
||||||
cmd.arg("autoderef", boolSetting(AutoDerefPointers));
|
cmd.arg("autoderef", boolSetting(AutoDerefPointers));
|
||||||
cmd.arg("dyntype", boolSetting(UseDynamicType));
|
cmd.arg("dyntype", boolSetting(UseDynamicType));
|
||||||
cmd.arg("partialVariable", params.partialVariable);
|
cmd.arg("partialvar", params.partialVariable);
|
||||||
cmd.arg("sortStructMembers", boolSetting(SortStructMembers));
|
cmd.arg("sortstructs", boolSetting(SortStructMembers));
|
||||||
|
|
||||||
StackFrame frame = stackHandler()->currentFrame();
|
StackFrame frame = stackHandler()->currentFrame();
|
||||||
cmd.arg("context", frame.context);
|
cmd.arg("context", frame.context);
|
||||||
|
|||||||
@@ -1282,7 +1282,7 @@ void tst_Dumpers::dumper()
|
|||||||
"python theDumper.setupDumpers()\n"
|
"python theDumper.setupDumpers()\n"
|
||||||
"run " + nograb + "\n"
|
"run " + nograb + "\n"
|
||||||
"python theDumper.fetchVariables({'fancy':1,'forcens':1,"
|
"python theDumper.fetchVariables({'fancy':1,'forcens':1,"
|
||||||
"'autoderef':1,'dyntype':1,'passExceptions':1,"
|
"'autoderef':1,'dyntype':1,'passexceptions':1,"
|
||||||
"'expanded':[" + expandedq + "]})\n";
|
"'expanded':[" + expandedq + "]})\n";
|
||||||
|
|
||||||
cmds += "quit\n";
|
cmds += "quit\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user