summaryrefslogtreecommitdiff
path: root/share/qtcreator/debugger
Commit message (Collapse)AuthorAgeFilesLines
* License updateEike Ziller2014-10-098-56/+64
| | | | | Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* Debugger: Fix QHash display of "compact" keyshjk2014-09-265-36/+56
| | | | | | | | Add make std::string usable as "compact" key. Change-Id: Idbfcf9d299e2dde392025166a20c3d0ab60239a6 (cherry picked from commit 2776536a7efd6758de1d6720b2c05a9fe0bc65a5) Reviewed-by: Christian Stenger <christian.stenger@digia.com>
* Debugger: Wiggle LLDB startuphjk2014-09-231-1/+4
| | | | | | | | | | LLDB 320.* from XCode 601 was unhappy. This is an trial-and-error to get it start up again. Change-Id: I5dda0eef785d70abbb5798c3884ace89a8426969 (cherry picked from commit 1af0f77ea9c4cc6407dc193f53023c103e827168) Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Dumper: Fix typo and exception handlingChristian Stenger2014-07-241-9/+11
| | | | | Change-Id: I4008d5427da7cedc0f57183a25519a1aef1fcb7a Reviewed-by: hjk <hjk121@nokiamail.com>
* Debugger: fix Qt namespace detection for gdb 7.4.1-debianJoerg Bornemann2014-07-231-0/+8
| | | | | Change-Id: I379ff3dec051b22ffe313e6543020488550df97e Reviewed-by: Christian Stenger <christian.stenger@digia.com>
* Debugger: Improve associative std container displayhjk2014-07-221-1/+10
| | | | | | | | | Handle multimap and multiset. Use the "[index] key" display that's also used for Q{Multi,}Map both for consistency and because it's needed to distiguish otherwise identical keys. Change-Id: Ib9e369206bce89e5e27d1f6f60ead11ca88e2dcb Reviewed-by: hjk <hjk121@nokiamail.com>
* Debugger: Make QString expandablehjk2014-07-141-1/+4
| | | | | Change-Id: I7cbbe7ce4e82e3e30f54ffd4e731a136fdc15e6b Reviewed-by: hjk <hjk121@nokiamail.com>
* Debugger: Add dumpers for QXmlStreamStringRef and QXmlStreamAttributehjk2014-07-111-0/+20
| | | | | | | | Useful for debugging debugger tooltips. Change-Id: Ief1f98e0baa132c23d0886aae415a5f3da0294c3 Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
* Debugger: Remove direct entering new watchers in the treeviewhjk2014-07-081-13/+8
| | | | | | | | | Instead pop up the "Add new expression dialog". Same amount of activity needed, but more uniform in UI and code and hopefully less confusion about the now-gone <Edit> marker. Change-Id: I228801dc51f6d09ea9991b98399dc9ef04aa96c8 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
* Debugger: Fix compact display of individual hash nodeshjk2014-07-082-8/+18
| | | | | | | | | This was not accessible if the hash itself was a typedef. Also, make sure that unusual key contents don't do any harm in the protocol by hexencoding it unconditionally. Change-Id: I83d43768ec72f797a72b2d9c44ca91b1feaf61a7 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
* Debugger: Fix debugger startup on iOShjk2014-07-011-1/+1
| | | | | | | Task-number: QTCREATORBUG-12580 Change-Id: I8a2a38741719e8cf0b8a098eaa5d76eeb4bb1fb5 Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
* Debugger: Remove dumper debugging outputhjk2014-06-301-2/+0
| | | | | Change-Id: I0dc23dd5d69885f8ddeb933ae644a983406bbb05 Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
* Debugger: Fix display of wchar_t[]hjk2014-06-261-3/+9
| | | | | | Task-number: QTCREATORBUG-12492 Change-Id: I5668c0727a36a1529d28b36d0361922f7acb3083 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
* Debugger: Add personaltypes.py as default location for local additionshjk2014-06-243-0/+68
| | | | | | Change-Id: Ib393258970f04f2e829f959adedfbc588a966a10 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: hjk <hjk121@nokiamail.com>
* Debugger: Streamline gdb.Value field access workaroundshjk2014-06-191-6/+13
| | | | | Change-Id: I1b3b81019f6861353e5ada350fadbe3c8734f186 Reviewed-by: hjk <hjk121@nokiamail.com>
* Merge remote-tracking branch 'origin/3.1'Eike Ziller2014-06-181-10/+20
|\ | | | | | | | | | | | | Conflicts: tests/auto/debugger/tst_dumpers.cpp Change-Id: I1bad0c1477d7fd6996c0f8ca82e76ba521bc0dcc
| * Debugger: Make dumper work with GDB 7.7hjk2014-06-181-10/+20
| | | | | | | | | | | | | | | | GDB 7.7 changed behavior e.g. for the names of anonymous fields, we need to adjust dumpers and some tests. Change-Id: I25ae32cc56c4ff63b677a04d6ed9c250e0252140 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* | Debugger: Fix base class name printing for GDB/CLIhjk2014-06-171-1/+1
| | | | | | | | | | Change-Id: Ib007c9d0035387018acd608d67d4a9632c17ab8b Reviewed-by: hjk <hjk121@nokiamail.com>
* | Debugger: Better putAddressRange fallbackhjk2014-06-171-0/+1
| | | | | | | | | | Change-Id: I401d7c184465c117cf4506f55fc911766d41052e Reviewed-by: hjk <hjk121@nokiamail.com>
* | Debugger: Remove some debugging outputhjk2014-06-172-3/+3
| | | | | | | | | | Change-Id: I4df8bd423bfce6b3005c5821ea71358a8ac260ea Reviewed-by: hjk <hjk121@nokiamail.com>
* | Debugger: Make dumpers somewhat work in command line GDBhjk2014-06-162-73/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With python sys.path.insert(1, '/data/dev/creator/share/qtcreator/debugger/') python from gdbbridge import * in .gdbinit there's a new "GDB command", called "pp". With code like int main(int argc, char *argv[]) { QString ss = "Hello"; QApplication app(argc, argv); app.setObjectName(ss); // break here } the 'pp' command can be used as follows: (gdb) pp app app = [ <Myns::QGuiApplication> = {"Hello"} staticMetaObject = <Myns::QMetaObject> = {""} [parent] = <Myns::QObject *> = {"0x0"} [children] = <Myns::QObjectList> = {"<3 items>"} [properties] = "<>0 items>" [methods] = "<6 items>" [signals] = "<1 items>" ],<Myns::QApplication> = {"Hello"} (gdb) pp app [properties],[children] app = [ <Myns::QGuiApplication> = {"Hello"} staticMetaObject = <Myns::QMetaObject> = {""} [parent] = <Myns::QObject *> = {"0x0"} [children] = [ <Myns::QObject> = {""} <Myns::QObject> = {""} <Myns::QObject> = {"fusion"} ],<Myns::QObjectList> = {"<3 items>"} [properties] = [ windowIcon = <Myns::QVariant (QIcon)> = {""} cursorFlashTime = <Myns::QVariant (int)> = {"1000"} doubleClickInterval = <Myns::QVariant (int)> = {"400"} keyboardInputInterval = <Myns::QVariant (int)> = {"400"} wheelScrollLines = <Myns::QVariant (int)> = {"3"} globalStrut = <Myns::QVariant (QSize)> = {"(0, 0)"} startDragTime = <Myns::QVariant (int)> = {"500"} startDragDistance = <Myns::QVariant (int)> = {"10"} styleSheet = <Myns::QVariant (QString)> = {""} autoSipEnabled = <Myns::QVariant (bool)> = {"true"} ],"<10 items>" [methods] = "<6 items>" [signals] = "<1 items>" ],<Myns::QApplication> = {"Hello"} (gdb) pp ss ss = <Myns::QString> = {"Hello"} Change-Id: I6e4714a5cfe34c38917500d114ad9a70d20cff39 Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
* | Debugger: Add dumper for QStringData, QHashedString and QQmlRefCounthjk2014-06-161-0/+13
| | | | | | | | | | Change-Id: I252f532d2f67519ebc1ea45353579408bee91c59 Reviewed-by: hjk <hjk121@nokiamail.com>
* | Debugger: Fix operation with python 2.6hjk2014-06-041-3/+6
| | | | | | | | | | Change-Id: Iecfea8f6e1531228fd6cccc424ee4c6c2036098e Reviewed-by: Andy Shaw <andy.shaw@digia.com>
* | Debugger: Better fall back for LLDB without remote supporthjk2014-06-032-4/+21
| | | | | | | | | | Change-Id: I517052bb795674d4beda05e3909dc05afc99bfe3 Reviewed-by: hjk <hjk121@nokiamail.com>
* | Debugger: Fail more gracefully on "ill" LLDB engineshjk2014-06-031-1/+10
| | | | | | | | | | | | | | Less need to use the hard Debug->Abort Change-Id: Ib019792063924549ace58a63ccef994dbfaa00dc Reviewed-by: hjk <hjk121@nokiamail.com>
* | Debugger: Better handling of the tabbed extra viewshjk2014-06-031-2/+1
| | | | | | | | | | | | | | | | | | Closing with the [x] now resets the Display mode of the associated iname, and the view hides if there are no visible tabs left. Also, remove the long-unused DisplayProcess format. Change-Id: Ibd3308549af75e345c672c07f6714d26e7196e5a Reviewed-by: Christian Stenger <christian.stenger@digia.com>
* | Merge remote-tracking branch 'origin/3.1'Eike Ziller2014-06-021-1/+3
|\ \ | |/ | | | | | | | | | | Conflicts: src/shared/qbs Change-Id: Ie56c48d3bcd42e1a15832c5e7a10fe69c5410d90
| * Debugger: Limit QObject name dumper to a more-than reasonable maximumhjk2014-05-301-1/+3
| | | | | | | | | | | | | | | | | | GDB can crash on to big chunks. Since this here is a convenience feature only, hard-limiting it to length 200 seems ok as work-around. Task-number: QTCREATORBUG-12330 Change-Id: Ia6ebf16f3528d91020d19851641f42c1e421fe15 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* | Debugger: Make char * displayable in separate windowshjk2014-05-283-14/+31
| | | | | | | | | | | | Task-number: QTCREATORBUG-7313 Change-Id: I8d475dd94a48e7a1d5efe4c2c0d90cb6bdf9b3e2 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
* | Dumper: Fix missing parameterChristian Stenger2014-05-221-1/+1
| | | | | | | | | | Change-Id: Ia75c9d07967d0013f9a351e99757c0acb661d877 Reviewed-by: hjk <hjk121@nokiamail.com>
* | Debugger: Regression cleanuphjk2014-05-204-50/+49
| | | | | | | | | | | | | | Sneaked in with 40052046fdb2d5. Change-Id: I711c5b8e6869647a447a5f17f693de571b5f0337 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
* | Debugger: Rework display length limitation systemshjk2014-05-165-140/+127
| | | | | | | | | | | | | | | | | | | | There are two values now, one to limit an entry in the L&E view (default 100) and a hard upper limit (at 1 mio). If displayed values are elided, the true length is shown in addition. Change-Id: I180b70446c18e258c164e5af75b88d4c8b6c53f2 Reviewed-by: hjk <hjk121@nokiamail.com>
* | Merge remote-tracking branch 'origin/3.1'Eike Ziller2014-05-163-20/+27
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/clangcodemodel/test/clangcompletion_test.cpp src/plugins/cmakeprojectmanager/cmakeopenprojectwizard.cpp src/plugins/projectexplorer/projectexplorer.pro src/plugins/qmldesigner/designercore/instances/nodeinstanceserverproxy.cpp src/plugins/vcsbase/vcsplugin.cpp src/shared/qbs Change-Id: I9e5882be79ac5e8c7dfab4a57f16509d7569636a
| * Debugger: Limit QByteArray and QString display lengthhjk2014-05-162-6/+8
| | | | | | | | | | | | | | Also add '...' for cut-off std::strings. Change-Id: Ib6129eb43c723f2a863086a0142312c669b65665 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
| * Debugger: Fix Eigen dumpers, againhjk2014-05-091-14/+19
| | | | | | | | | | | | | | | | This time with autotests. Task-number: QTCREATORBUG-12193 Change-Id: Id91eecd38eb4ac76c68be8e9969651407a68ebf4 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
* | Debugger: More flexibility for "ranged expressions"hjk2014-05-151-6/+41
| | | | | | | | | | | | | | | | | | | | The range boundary and stride can be integral expressions. Also ( ) are valid delimiters now, making descriptions like list.at(2.(4).100+2) acceptable. Change-Id: Ief68c0a1b0b0d3813b2939d60e0806f5cd3ff0b0 Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
* | Debugger: Add "composite" watchershjk2014-05-133-60/+81
| | | | | | | | | | | | | | | | | | Multiple expressions can be separated by semicolon, and arrays allow index ranges given as [a..b] or with strides [a.(s).b]. Change-Id: I0b7b4ee500a5f6f5027d777b0a1e8ee5a28a7cd5 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
* | Debugger: Add dumper for Debugger::Internal::DisassemblerLinehjk2014-05-071-0/+4
| | | | | | | | | | Change-Id: I416dcb4ce95752773839169aaa76d603cbe91bfe Reviewed-by: hjk <hjk121@nokiamail.com>
* | Debugger: Add dumper for some Qml internal structurehjk2014-05-071-0/+6
| | | | | | | | | | Change-Id: I8e6d48fdaff77228963927e88b95eff136eac92d Reviewed-by: hjk <hjk121@nokiamail.com>
* | Debugger: Call putNumChild from putItemCounthjk2014-05-064-33/+1
| | | | | | | | | | | | | | Reduces user side code Change-Id: I4e6186e4af2b62983e1d14796c88654649fcda21 Reviewed-by: hjk <hjk121@nokiamail.com>
* | Debugger: Simplify array dumper user codehjk2014-05-066-104/+65
| | | | | | | | | | | | | | | | | | Heads up: This switches the argument order to allow a default argument for the inner type if it can be determined from the base pointer. Change-Id: I9bf80fcdd51b5db8e7c65adba551ca667912cd86 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
* | Debugger: Rework display type selectionhjk2014-04-291-7/+21
| | | | | | | | | | | | | | | | | | | | | | The previous index based way was getting too brittle, use enums instead. Also add a switch between exponential and flat display for floating point types. Task-number: QTCREATORBUG-12050 Change-Id: I86addbac5a80e8b79b176c6107b251b466503fe7 Reviewed-by: David Schulz <david.schulz@digia.com> Reviewed-by: Christian Stenger <christian.stenger@digia.com>
* | Debugger: Fix variable name in dumperhjk2014-04-161-1/+1
| | | | | | | | | | Change-Id: If32960e22c48ff90b77f06243e7a9c19408d0c34 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
* | Merge remote-tracking branch 'origin/3.1'Eike Ziller2014-04-146-85/+151
|\ \ | |/
| * Debugger: Fix Eigen::Matrix dumper with LLDBhjk2014-04-111-3/+1
| | | | | | | | | | | | | | | | Access by address. Big hammer, but LLDB doesn't cope well with templates... Change-Id: I430a83c282bc8a46efa011efb73f32cdbf46398c Reviewed-by: hjk <hjk121@nokiamail.com>
| * Debugger: Better connection count displayhjk2014-04-111-12/+16
| | | | | | | | | | | | | | | | | | | | | | Not a full fix yet. Disconnect does not reduce the count since the Connection object remains in the structure, only the receiver gets set to 0. The connections are now listed as subitem of [signals] Change-Id: I3dd795b3731b30e2af6f4d0e5da71dbde8996649 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
| * Debugger: Work around mis-reading of integral template typeshjk2014-04-111-1/+9
| | | | | | | | | | | | | | | | | | Clang/LLDB toolchain issue: -1 gets recorded and read as 'int' with value '0xffffffff'. Change-Id: I070a83c282bc8a46efa011efb73f32cdbf46398c Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
| * Debugger: Fix staticMetaObject extraction with LLDBhjk2014-04-113-2/+11
| | | | | | | | | | | | | | | | | | When asked for Foo::staticMetaObject, it will find any *::staticMetaObject. Looking for the mangled name finds the one we need. Change-Id: I4508a3c282bc8a46efa011efb73f32cdbf46398c Reviewed-by: Eike Ziller <eike.ziller@digia.com>
| * Debugger: Use proper item count for signals and methodshjk2014-04-101-7/+15
| | | | | | | | | | Change-Id: I2dd795b3731b30e2af6f4d0e5da71dbde8996649 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
| * Debugger: Handling eigen3 in manual testhjk2014-04-101-7/+13
| | | | | | | | | | Change-Id: Id3e6eddffe8d0edd7d5947c2eec03d707bd2436b Reviewed-by: Christian Stenger <christian.stenger@digia.com>