summaryrefslogtreecommitdiff
path: root/src/libs/qtcreatorcdbext/qtcreatorcdbextension.cpp
Commit message (Collapse)AuthorAgeFilesLines
* License updateEike Ziller2014-10-091-7/+8
| | | | | Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* Bump CDB extension version for 3.2.Friedemann Kleint2014-07-151-1/+1
| | | | | Change-Id: I26a9277ae9d83057043e28a355a7646467118999 Reviewed-by: hjk <hjk121@nokiamail.com>
* CdbExt: Make max array size configurable.David Schulz2014-03-111-1/+5
| | | | | Change-Id: I1bbf028e94160701726afc6cad1f4f529287a451 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* CDB extension: Add qmlstack command and helpers.Friedemann Kleint2014-02-261-1/+67
| | | | | | | | | | | | Add a command that dumps the QML stack. It tries to find the address of the JS execution context in a complete stack trace and calls the exported function in QML to create the trace from it. Task-number: QTCREATORBUG-11144 Change-Id: I8fef5df2b33b95748e78d837aba703945eaeead9 Reviewed-by: David Schulz <david.schulz@digia.com>
* Bump CDB extension version.Friedemann Kleint2014-02-211-1/+1
| | | | | Change-Id: If9cc4852f4070cc68b973e637b884fd6e592bf6d Reviewed-by: hjk <hjk121@nokiamail.com>
* Incremented year in copyright infoRobert Loehning2014-01-081-1/+1
| | | | | | Change-Id: Ib5423fdd064e4546f848c0b640b0ed0514c26d3a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Braces cleanupOrgad Shaneh2013-11-141-3/+2
| | | | | Change-Id: I8413252c90a1487d291f15d92837c30ab697b245 Reviewed-by: hjk <hjk121@nokiamail.com>
* CdbExt: version bumpDavid Schulz2013-10-231-1/+1
| | | | | Change-Id: I3912bb9da93acd4474a15a6f6a8736e547e84ea1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Doc: edit qtcreatorcdbext docsLeena Miettinen2013-09-091-5/+3
| | | | | | | | Fix capitalization, use standard wording, and fix some QDoc commands. Change-Id: Ic2e6cfd43b9aa24d69b2703334c3dc6fb2331299 Reviewed-by: hjk <hjk121@nokiamail.com>
* Debugger: Set cdb extension version to 2.8David Schulz2013-06-251-1/+1
| | | | | Change-Id: Idd62703c1c521cd2546beb11ae070c2a6de09066 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Doc: replace deprecated QDoc commandsLeena Miettinen2013-02-061-7/+7
| | | | | | | | | | The \i and \o commands were replaced with \li and \bold was replaced with \b in QDoc for Qt 5. The \input command was replaced with \include in the docs. Change-Id: I257d1bebb8ebc739ca20e0d29fcf0406ecb14534 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Merge remote-tracking branch 'origin/2.6'Oswald Buddenhagen2013-01-311-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/autotoolsprojectmanager/AutotoolsProjectManager.pluginspec.in src/plugins/debugger/qtmessageloghandler.cpp src/plugins/debugger/qtmessagelogwindow.cpp src/plugins/madde/maemodeployconfigurationwidget.cpp src/plugins/qmldesigner/components/integration/designdocumentcontroller.cpp src/plugins/qmldesigner/designercore/include/widgetqueryview.h src/plugins/qmldesigner/designercore/metainfo/metainfoparser.cpp src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.cpp src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.h src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp src/plugins/qnx/bardescriptormagicmatcher.h src/plugins/qt4projectmanager/profilekeywords.cpp src/plugins/remotelinux/deployablefilesperprofile.cpp src/plugins/remotelinux/deployablefilesperprofile.h src/plugins/remotelinux/deploymentinfo.cpp src/plugins/remotelinux/deploymentsettingsassistant.cpp src/plugins/remotelinux/profilesupdatedialog.cpp tests/auto/icheckbuild/ichecklib.cpp tests/auto/icheckbuild/parsemanager.cpp tests/auto/icheckbuild/parsemanager.h Change-Id: Ie465a578446a089e1c502d1cb1096e84ca058104
| * Incremented year in copyright infov2.6.2Robert Loehning2013-01-291-1/+1
| | | | | | | | | | Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | CDB: Use maxStackDepth and implement reload full stack.Friedemann Kleint2013-01-311-4/+9
| | | | | | | | | | | | | | Task-number: QTCREATORBUG-7320 Change-Id: I78bf8cf63fa892f2a6771911333c246839439bf4 Reviewed-by: hjk <hjk121@nokiamail.com>
* | CDB: Pass settings maxStringLength and maxStackDepth to extension.Friedemann Kleint2013-01-311-2/+32
| | | | | | | | | | Change-Id: I602aa3758817026c8b4cbda1cc9fa9eff95fc691 Reviewed-by: hjk <hjk121@nokiamail.com>
* | Remove braces for single lines of conditionsOrgad Shaneh2013-01-081-45/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #!/usr/bin/env ruby Dir.glob('**/*.cpp') { |file| # skip ast (excluding paste, astpath, and canv'ast'imer) next if file =~ /ast[^eip]|keywords\.|qualifiers|preprocessor|names.cpp/i s = File.read(file) next if s.include?('qlalr') orig = s.dup s.gsub!(/\n *if [^\n]*{\n[^\n]*\n\s+}(\s+else if [^\n]* {\n[^\n]*\n\s+})*(\s+else {\n[^\n]*\n\s+})?\n/m) { |m| res = $& if res =~ /^\s*(\/\/|[A-Z_]{3,})/ # C++ comment or macro (Q_UNUSED, SDEBUG), do not touch braces res else res.gsub!('} else', 'else') res.gsub!(/\n +} *\n/m, "\n") res.gsub(/ *{$/, '') end } s.gsub!(/ *$/, '') File.open(file, 'wb').write(s) if s != orig } Change-Id: I3b30ee60df0986f66c02132c65fc38a3fbb6bbdc Reviewed-by: hjk <qthjk@ovi.com>
* | CDB: Enable "Separate Window" format for standard strings.Friedemann Kleint2012-12-291-0/+2
| | | | | | | | | | | | | | | | | | - Always retrieve memory for std::strings. - Enable type format. Change-Id: I7bd00adbbeff0c4cc380b3ec078df408440302b4 Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* | Implement basics for edit value handling in CDB.Friedemann Kleint2012-12-211-1/+1
|/ | | | | | | | | | | | | | - Add routine for formatting edit values. - Optionally store memory in SymbolGroupNode (along with special info) to be able to re-use it for edit values using a simple convenience class MemoryHandle. - Prototypically implement QString and QByteArray / Qt 5. Task-number: QTCREATORBUG-8344 Change-Id: I6d2cac7a1e9ac48e94335142c41dc1bfb984c515 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* CDB: Fix module names in Qt 5.Friedemann Kleint2012-12-131-1/+2
| | | | | | | | Library naming convention was changed. Increase version. Change-Id: I01a7e49f6ffb0e4e78c25f9d9e117a2100dc7784 Reviewed-by: hjk <qthjk@ovi.com>
* Adjust license headershjk2012-10-051-21/+20
| | | | | Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Bump version of the CDB extension.Friedemann Kleint2012-08-271-1/+1
| | | | | Change-Id: Ie7b86009f47b2bb3ae300d1496b3c22cce58f03d Reviewed-by: hjk <qthjk@ovi.com>
* Contact -> qt-project.orgEike Ziller2012-07-191-3/+1
| | | | | Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Long live the king!hjk2012-01-261-1/+1
| | | | | Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* all: s/info@qt.nokia.com/qt-info@nokia.com/hjk2011-11-031-2/+2
| | | | | Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Debugger[CDB]: Fix setting individual formats by iname.Friedemann Kleint2011-08-181-3/+5
| | | | | | | | Do not hex-decode names. Change-Id: I0b9b6df2524cdf66bc34958bbab5bbc28f8a73db Reviewed-on: http://codereview.qt.nokia.com/3172 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Debugger[CDB]: Dump Qt5's new QString, QByteArray classes.Friedemann Kleint2011-07-151-1/+1
| | | | | | | | | Task-number: QTCREATORBUG-5475 Change-Id: Iee10910e55df8b8308711818da2847b09a52fe92 Reviewed-on: http://codereview.qt.nokia.com/1711 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Debugger [CDB]: Enable Assignment to string classes.Friedemann Kleint2011-05-171-5/+28
| | | | | | | | Assign to QString/QByteArray following gdbmacros.py implementation (call resize if required, copy data into buffer). Assign to std::[w]string only it has sufficient memory (since std::string<>.resize cannot be called).
* Fix/add copyright headersTobias Hunger2011-05-061-1/+1
| | | | Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
* Merge branch '2.2'Oswald Buddenhagen2011-04-141-14/+13
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/debugger/gdb/pythongdbengine.cpp src/plugins/qt4projectmanager/qt-desktop/qt4desktoptargetfactory.cpp src/plugins/qt4projectmanager/qt-desktop/qt4desktoptargetfactory.h src/plugins/qt4projectmanager/qt-desktop/qt4simulatortargetfactory.cpp src/plugins/qt4projectmanager/qt-desktop/qt4simulatortargetfactory.h src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.cpp src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigurations.cpp src/plugins/qt4projectmanager/qt-maemo/maemoglobal.cpp src/plugins/qt4projectmanager/qt-maemo/qt4maemotargetfactory.cpp src/plugins/qt4projectmanager/qt-s60/qt4symbiantargetfactory.cpp src/plugins/qt4projectmanager/qt-s60/s60deploystep.cpp src/plugins/qt4projectmanager/qt4target.cpp src/plugins/qt4projectmanager/qt4target.h src/plugins/qt4projectmanager/qtoptionspage.h src/plugins/qt4projectmanager/qtversionmanager.cpp src/plugins/welcome/welcomemode.cpp
| * Update license.hjk2011-04-131-14/+13
| |
* | Merge remote branch 'origin/2.2'con2011-04-011-2/+4
|\ \ | |/ | | | | | | | | | | | | | | | | Conflicts: src/plugins/debugger/gdb/gdbengine.cpp src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.cpp src/plugins/qt4projectmanager/qt-maemo/maemoglobal.cpp src/plugins/qt4projectmanager/qt-maemo/maemoglobal.h src/plugins/qt4projectmanager/qt-maemo/qt4maemotargetfactory.cpp src/plugins/qt4projectmanager/qt-s60/rvcttoolchain.h
| * Debugger[CDB]: Fix CDB not showing QList<const char*>.Friedemann Kleint2011-03-291-2/+4
| | | | | | | | | | | | | | | | as it cannot determine the size of 'char const*' which it reports as type. Reviewed-by: hjk Task-number: QTCREATORBUG-4253
* | API Documentation: Fix warnings.Friedemann Kleint2011-03-281-0/+1
| |
* | Debugger[CDB]: Report memory of watchpoints on stop and BP list.Friedemann Kleint2011-03-241-1/+2
| | | | | | | | Preparing bitfields.
* | Debugger[CDB]: Add a pretense to breakpoint conditions.Friedemann Kleint2011-03-231-0/+28
|/ | | | | | Add the infrastructure for checking on breakpoint conditions on the QtCreator side (for conditions, bitfield watchpoints). Have cdb evaluate breakpoint conditions as integer expressions.
* Fix Krazy code scanning tool warnings (QString, loops, spelling).Friedemann Kleint2011-02-251-2/+2
|
* Debugger[CDB]: Dump out class name and geometry of a HWND.Friedemann Kleint2011-02-161-7/+33
| | | | using CDB's KnownStruct-handling.
* Debugger: Documentation work on qtcreatorcdbext/Debugger.Friedemann Kleint2011-02-041-11/+21
| | | | | Add comments, introduce internal switch in doc/api/qtcreator-api.qdocconf.
* Debugger[CDB]: Refactor breakpoint handling.Friedemann Kleint2011-02-031-3/+3
| | | | | | | | | | | Add a command to list breakpoints enabling id access. Implemented breakpoint handling similar to gdb using breakpoint ids (no longer delete and re-set all breakpoints on a change). Save the module that is reported back in the session so that it can be re-used for the next start. Keep a per-debugger-session cache of fileName->Module for adding breakpoints to accelerate setting breakpoints in the same file. Polish the breakpoint tooltip.
* Debuggeri[CDB]: Add breakpoint command.Friedemann Kleint2011-02-021-0/+30
| | | | Report back breakpoints with modules.
* Debugger[CDB]: Reduce roundtrips when stepping.Friedemann Kleint2011-01-251-3/+3
| | | | | | Report threads and frames along with stopped notification. Change special logic for step into and switching threads on interrupt accordingly.
* Debugger[CDB]: Switch to thread 0 after DebugBreak().Friedemann Kleint2011-01-181-0/+7
| | | | | | | | | Do not show artificial thread that is created by DebugBreak() as it causes a switch to disassembly. Forcibly discard the symbol group for each locals update as the lazy creation mechanism does not trigger on thread changes back and forth involving assembly, which causes the symbol group to become stale.
* Debugger[New CDB]: Add support for "Select Widget to Watch".Friedemann Kleint2011-01-181-0/+34
| | | | | | | | | in stopped state. Add helper for executing calls to ExtensionContext including recording of output in OutputCallback. Extend symbol resolution to return addresses as well since QApplication::widgetAt() is ambiguous and needs to be called by address. Add 'widgetat' extension command to return the widget.
* Debugger[New CDB]: Qualify types in watch expressions by module.Friedemann Kleint2011-01-171-8/+25
| | | | | | ... to make them faster. Check for watch expressions of the form '*(Type *)0xaddr' and insert module for non-PODs. Add testing command.
* Debugger[New CDB]:Introduce watches infrastructure.Friedemann Kleint2011-01-141-70/+284
| | | | | | | | | | | | | | | - Move the 'current module' into the Node - Split symbol group hierarchy into LocalsSymbolGroup tied to frame/thread and a separate, scopeless WatchesSymbolGroup - Add infrastructure for removing symbols from a SymbolGroup, doing the index bookkeeping. - Add method to synchronize watches to WatchesSymbolGroup (iname/name map). - Introduce watches commands for adding and dumping. - Extend locals command to get watches as well. - Add a dummy 'ErrorSymbolGroupNode' to use in case insertion fails.
* It's 2011 now.con2011-01-121-1/+1
| | | | Reviewed-by: hjk
* Debugger[New CDB]: Update all variables on assignment.Friedemann Kleint2011-01-111-1/+2
| | | | Some documentation/comment changes.
* Debugger[New CDB]: Refine type detection, dump nested containers.Friedemann Kleint2011-01-061-2/+43
| | | | Introduce test commands.
* Debugge[New CDB]: Refine Symbol qualification for containers.Friedemann Kleint2011-01-061-1/+0
| | | | | | Resolve all types and always use current module for templates. Fixes to pointer handling. Make verbose switchable.
* Debugger[New CDB]: Fix QList.Friedemann Kleint2011-01-051-1/+7
| | | | | | - Account for POD types in largeStatic-Check - Avoid dumping empty children list (move handling to visitor) - Verbose facility.