1############################################################################ 2# 3# Copyright (C) 2016 The Qt Company Ltd. 4# Contact: https://www.qt.io/licensing/ 5# 6# This file is part of Qt Creator. 7# 8# Commercial License Usage 9# Licensees holding valid commercial Qt licenses may use this file in 10# accordance with the commercial license agreement provided with the 11# Software or, alternatively, in accordance with the terms contained in 12# a written agreement between you and The Qt Company. For licensing terms 13# and conditions see https://www.qt.io/terms-conditions. For further 14# information use the contact form at https://www.qt.io/contact-us. 15# 16# GNU General Public License Usage 17# Alternatively, this file may be used under the terms of the GNU 18# General Public License version 3 as published by the Free Software 19# Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT 20# included in the packaging of this file. Please review the following 21# information to ensure the GNU General Public License requirements will 22# be met: https://www.gnu.org/licenses/gpl-3.0.html. 23# 24############################################################################ 25 26# Debugger start modes. Keep in sync with DebuggerStartMode in debuggerconstants.h 27 28 29class DebuggerStartMode(): 30 ( 31 NoStartMode, 32 StartInternal, 33 StartExternal, 34 AttachExternal, 35 AttachCrashedExternal, 36 AttachCore, 37 AttachToRemoteServer, 38 AttachToRemoteProcess, 39 StartRemoteProcess, 40 ) = range(0, 9) 41 42 43# Known special formats. Keep in sync with DisplayFormat in debuggerprotocol.h 44class DisplayFormat(): 45 ( 46 Automatic, 47 Raw, 48 Simple, 49 Enhanced, 50 Separate, 51 Latin1String, 52 SeparateLatin1String, 53 Utf8String, 54 SeparateUtf8String, 55 Local8BitString, 56 Utf16String, 57 Ucs4String, 58 Array10, 59 Array100, 60 Array1000, 61 Array10000, 62 ArrayPlot, 63 CompactMap, 64 DirectQListStorage, 65 IndirectQListStorage, 66 ) = range(0, 20) 67 68 69# Breakpoints. Keep synchronized with BreakpointType in breakpoint.h 70class BreakpointType(): 71 ( 72 UnknownType, 73 BreakpointByFileAndLine, 74 BreakpointByFunction, 75 BreakpointByAddress, 76 BreakpointAtThrow, 77 BreakpointAtCatch, 78 BreakpointAtMain, 79 BreakpointAtFork, 80 BreakpointAtExec, 81 BreakpointAtSysCall, 82 WatchpointAtAddress, 83 WatchpointAtExpression, 84 BreakpointOnQmlSignalEmit, 85 BreakpointAtJavaScriptThrow, 86 ) = range(0, 14) 87 88 89# Internal codes for types. Keep in sync with cdbextensions pytype.cpp 90class TypeCode(): 91 ( 92 Typedef, 93 Struct, 94 Void, 95 Integral, 96 Float, 97 Enum, 98 Pointer, 99 Array, 100 Complex, 101 Reference, 102 Function, 103 MemberPointer, 104 FortranString, 105 Unresolvable, 106 Bitfield, 107 RValueReference, 108 ) = range(0, 16) 109 110 111# Internal codes for logging channels. Keep in sync woth debuggerconstants.h 112class LogChannel(): 113 ( 114 LogInput, # Used for user input 115 LogMiscInput, # Used for misc stuff in the input pane 116 LogOutput, 117 LogWarning, 118 LogError, 119 LogStatus, # Used for status changed messages 120 LogTime, # Used for time stamp messages 121 LogDebug, 122 LogMisc, 123 AppOutput, # stdout 124 AppError, # stderr 125 AppStuff, # (possibly) windows debug channel 126 StatusBar, # LogStatus and also put to the status bar 127 ConsoleOutput # Used to output to console 128 ) = range(0, 14) 129 130 131def isIntegralTypeName(name): 132 return name in ( 133 "int", 134 "unsigned int", 135 "signed int", 136 "short", 137 "unsigned short", 138 "long", 139 "unsigned long", 140 "long long", 141 "unsigned long long", 142 "char", 143 "signed char", 144 "unsigned char", 145 "bool", 146 ) 147 148 149def isFloatingPointTypeName(name): 150 return name in ("float", "double", "long double") 151