summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/breakhandler.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Debugger: Handle manually set catch breakpoint gracefullyhjk2013-09-191-1/+3
| | | | | | Task-number: QTCREATORBUG-10096 Change-Id: Ia9458840247ae1815751e3c58e1f21990af0cc34 Reviewed-by: hjk <hjk121@nokiamail.com>
* Debugger: Streamline settings access patternhjk2013-09-051-2/+2
| | | | | Change-Id: Ie73b8d9fa945ee9dcbab67177410cc782979c8ad Reviewed-by: David Schulz <david.schulz@digia.com>
* Fix some include statements.Christian Kandeler2013-09-041-1/+1
| | | | | | | | In several places, it says '#include "..."' for headers from different libraries/plugins. Change-Id: I96cd74fef9b30163adefe3e1720e0847bed9553a Reviewed-by: hjk <hjk121@nokiamail.com>
* Merge branch '2.7'Oswald Buddenhagen2013-05-151-8/+1
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/src/qtquick/qtquick-components.qdoc doc/src/qtquick/qtquick-designer.qdoc qtcreator.pri qtcreator.qbs src/plugins/cppeditor/cppinsertdecldef.cpp src/plugins/qnx/qnxruncontrolfactory.cpp Change-Id: I0a37a07c42719bc0d9ef5b3ac4641d01a63c0d88
| * Fix Breakpoint storing in sessionDaniel Teske2013-05-071-8/+1
| | | | | | | | | | | | | | Task-number: QTCREATORBUG-9253 Change-Id: Idf517286394796e516115009789e6ff7df527c91 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* | Debugger: Add basic breakpoint handling and stepping to LLDB backendhjk2013-04-101-3/+4
| | | | | | | | | | Change-Id: Ib700afa63739e6d26bdd97225265559d7112eadb Reviewed-by: hjk <hjk121@nokiamail.com>
* | Remove internal class BaseTextMarkRegistry from exported header.Friedemann Kleint2013-03-261-0/+1
| | | | | | | | | | Change-Id: Ieeffe65be2d7c8f07f41f7211853d616a6aceb85 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
* | Clean headers in debugger plugin.Friedemann Kleint2013-03-221-4/+1
|/ | | | | Change-Id: Ia50e61a82101b699390b23b4f1ea9509619314bb Reviewed-by: hjk <hjk121@nokiamail.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>
* | Debugger: Avoid endless loop when setting breakpoint on functionshjk2013-01-311-1/+6
| | | | | | | | | | Change-Id: I3ead86ba50d1d68a46cdc58c06684b2ac8c091c0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* | Remove braces for single lines of conditionsOrgad Shaneh2013-01-081-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #!/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>
* | Debugger: make breakpoint markers draggablehjk2012-10-121-0/+20
| | | | | | | | | | Change-Id: I6139badeb8cb8b20e653ce9f6685c0e577123617 Reviewed-by: David Schulz <david.schulz@digia.com>
* | Merge remote-tracking branch 'origin/2.6'Eike Ziller2012-10-051-21/+20
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: share/qtcreator/qml/qmlpuppet/commands/endpuppetcommand.cpp share/qtcreator/qml/qmlpuppet/commands/endpuppetcommand.h src/plugins/debugger/qtmessageloghandler.cpp src/plugins/debugger/qtmessageloghandler.h src/plugins/debugger/qtmessagelogwindow.cpp src/plugins/madde/maemodeployconfigurationwidget.cpp src/plugins/madde/maemodeployconfigurationwidget.h src/plugins/remotelinux/deployablefilesperprofile.cpp src/plugins/remotelinux/deployablefilesperprofile.h src/plugins/remotelinux/deploymentinfo.cpp src/plugins/remotelinux/deploymentinfo.h src/plugins/remotelinux/deploymentsettingsassistant.cpp src/plugins/remotelinux/profilesupdatedialog.cpp src/plugins/remotelinux/remotelinuxdeploymentdatamodel.h tests/auto/icheckbuild/ichecklib.cpp tests/auto/icheckbuild/ichecklib_global.h tests/auto/icheckbuild/parsemanager.cpp tests/auto/icheckbuild/parsemanager.h tests/manual/ssh/tunnel/tunnel.h Change-Id: I04d7761df6bd936ad00e0547974284c967d39580
| * Adjust license headershjk2012-10-051-21/+20
| | | | | | | | | | Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* | Do not use QAbstractItemModel::reset().Christian Kandeler2012-09-201-2/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: Ie49bdf576a6d3543aef6df133b27c8827775c935 Rationale: a) It is conceptually cleaner to do the changes to the model in between calls to beginResetModel() and endResetModel, respectively. b) The function is deprecated in Qt 5, for exactly that reason. Reviewed-by: hjk <qthjk@ovi.com>
* | Utils: Introduce HostOsInfo class.Christian Kandeler2012-08-271-4/+3
|/ | | | | | | | | | | | | The class' member functions are intended to be used instead of the Q_OS_* macros in all contexts where the latter are not syntactically required. This lowers the likelihood of changes made on one platform breaking the build on another, e.g. due to the code model missing symbols in #ifdef'ed out code when refactoring. Change-Id: I4a54788591b4c8f8d589b8368a6c683d4155c9fa Reviewed-by: hjk <qthjk@ovi.com>
* debugger: add support for temporary breakpointshjk2012-08-211-0/+12
| | | | | Change-Id: I841c37d21932da0ef354dbbe2fd75cec2fae86d6 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>
* debugger: move watchpoint convenience functions to breakhandlerhjk2012-06-041-0/+27
| | | | | Change-Id: I7f214ff5fe6d996c4dd14c6ac181a482ad00c94e Reviewed-by: hjk <qthjk@ovi.com>
* Merge remote-tracking branch 'origin/2.5'Eike Ziller2012-05-071-1/+3
|\
| * BaseTextMark: Use (explicit) two phase initilizationDaniel Teske2012-05-031-1/+3
| | | | | | | | | | | | | | | | | | Fixes a bug where the text in the bookmarks view is missing on initial adding a bookmark. Change-Id: Iefbf05e6124c0b4e911aa8d67beaa82ceeac8e21 Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* | Merge remote-tracking branch 'origin/2.5'Eike Ziller2012-04-271-2/+4
|\ \ | |/ | | | | | | | | | | | | Conflicts: doc/templates/style/style.css qtcreator.pri Change-Id: I5f4f5f191726883dae18cb760733a5e8e6bd4e7d
| * debugger: fix crash when enabling/disabling a breakpoint without a markerhjk2012-04-271-2/+4
| | | | | | | | | | | | | | | | | | This can happen for data breakpoints. Task-number: QTCREATORBUG-7334 Change-Id: I0830ad68e5463bafb5399bae36bf276e5247b42c Reviewed-by: Robert Löhning <robert.loehning@nokia.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* | QmlDebugger: Refactor QML Signal HandlerAurindam Jana2012-04-161-2/+2
|/ | | | | | | | | | Refactor QML Signal Handler to QML Signal Emit. This is because the debugger breaks when a matching signal is emitted irrespective of whether there is a handler connected to the signal. Change-Id: I852ace75c1962290717ed127ac5938d7505b9a7e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: hjk <qthjk@ovi.com>
* BaseTextMark: Support renaming filesDaniel Teske2012-04-051-0/+8
| | | | | Change-Id: I8d712f76fca5d8f5ecad70f1485228e21c00648d Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* debugger: fix handling of watchpoint notification with gdb 7.4hjk2012-03-191-12/+16
| | | | | | Task-number: QTCREATORBUG-7144 Change-Id: I204062de55e241ea7954f0e3bce123973028e076 Reviewed-by: hjk <qthjk@ovi.com>
* BreakpointMarkes, simplfy icon updatesDaniel Teske2012-03-091-4/+8
| | | | | Change-Id: I0439d97196cc96b770c77ffc7ce474a76f3b2d94 Reviewed-by: hjk <qthjk@ovi.com>
* Debugger: use QString::fromLatin1 instead of QString::fromAsciiDenis Mingulov2012-02-161-3/+3
| | | | | | | | | | | | | | | | | | | By source - latin1 is really expected as there is no any check or usage of QTextCodec::setCodecForCStrings() currently. QString::fromAscii() might break 'Latin1' input in some cases. A quote from documentation about QString::fromAscii(): "Note that, despite the name, this function actually uses the codec defined by QTextCodec::setCodecForCStrings() to convert str to Unicode. Depending on the codec, it may not accept valid US-ASCII (ANSI X3.4-1986) input. If no codec has been set, this function does the same as fromLatin1()." Change-Id: I49cf047ca674d2ec621b517c635d1927bb2e796f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: hjk <qthjk@ovi.com>
* Removed module names from #include directives.Erik Verbruggen2012-02-151-3/+3
| | | | | | | | Getting the #include directives ready for Qt5. This includes the new-project wizards. Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Long live the king!hjk2012-01-261-1/+1
| | | | | Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* debugger: replace static capability check by something potentially dynamichjk2012-01-161-6/+0
| | | | | | | This does not yet use the potential. Change-Id: I087311fb7d59b46e49f65a84c4420c72a1227ebb Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Debugger: Compile with QT_NO_CAST_FROM_ASCII.Friedemann Kleint2011-12-211-2/+2
| | | | | | | | (except gdbmi.cpp, name_demangler.cpp). Remove some unneeded conversions, change some maps to take QByteArray keys. Change-Id: I010f1251998a441fe5c8c87901b1e0c277c0391c Reviewed-by: hjk <qthjk@ovi.com>
* Fix warningTobias Hunger2011-11-241-0/+1
| | | | | Change-Id: I1b68ad0c97b630b95a6c47e6d0a0709c2a0872f6 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
* Merge remote-tracking branch 'origin/2.4'Eike Ziller2011-11-111-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/libs/qmljs/qmljsinterpreter.cpp src/libs/qmljs/qmljsinterpreter.h src/plugins/debugger/qml/scriptconsole.cpp src/plugins/git/gitplugin.cpp src/plugins/qmlprofiler/canvas/qdeclarativetiledcanvas.cpp src/plugins/qmlprofiler/canvas/qdeclarativetiledcanvas_p.h Change-Id: Iad59c8d87c72a21c79c047e374c0ab689998af39
| * 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: fix manual changing of breakpoint line numbershjk2011-11-041-10/+6
| | | | | | | | | | | | | | Task-number: QTCREATORBUG-6178 Change-Id: I3e0a3cae0ee5df02ad8ceee7222bc667e61774c8 Reviewed-by: Robert Löhning <robert.loehning@nokia.com> Reviewed-by: hjk <qthjk@ovi.com>
* | debugger: better breakpoint state handlinghjk2011-10-281-0/+2
|/ | | | | | | | Removal of a breakpoint while the insertion result was pending worked, but created a lot of noise about unexpected state transitions. Change-Id: I6c101ee9d184efb1c44f72cbff99b0481f64b0eb Reviewed-by: hjk <qthjk@ovi.com>
* Debugger: Prevent adding invalid breakpoints.Friedemann Kleint2011-10-201-2/+10
| | | | | | | | | Check on session restore and add. In particular, suppress watchpoints at 0x0, which hang gdb. Change-Id: I648f53a709fabdebe641e478f367f1354a315ab1 Reviewed-by: hjk <qthjk@ovi.com>
* V8DebuggerClient: Enable breakpoints on ExceptionsAurindam Jana2011-10-111-0/+2
| | | | | | | | | | | Previously break on exceptions was always enabled. Now, the user can add a breakpoint on Javascript Exceptions from the breakpoint window in the debugger. Change-Id: Ia9ee813d2fccf89b607fe1dcbad47b4084155a48 Reviewed-on: http://codereview.qt-project.org/6348 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QmlJsDebugger: Handle Breakpoint states correctly.Aurindam Jana2011-10-051-1/+3
| | | | | | | | | | | | | The QmlJsDebugger likes to remove breakpoints in the BreakpointInsertProceeding state. The state transition from BreakpointInsertProceeding to BreakpointRemoveRequested is now allowed. The state of breakpoint is set to BreakpointInserted only when the breakpoint is hit. Change-Id: I2fdd8d916363866fd920af7488f78d92df54d93b Reviewed-on: http://codereview.qt-project.org/5899 Reviewed-by: Kai Koehne <kai.koehne@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Debugger: Change BreakpointOnSignalHandler to BreakpointOnQMLSignalHandlerAurindam Jana2011-09-301-2/+2
| | | | | | | | Change-Id: Ic71299c38863cdb55862ced7348b2bdc9cf39555 Reviewed-on: http://codereview.qt-project.org/5743 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* debugger: take actual breakpoints into account for source locationshjk2011-09-291-0/+13
| | | | | | Change-Id: I5cf2982812456249fca2f233514cb90bb8d3bfe0 Reviewed-on: http://codereview.qt-project.org/5799 Reviewed-by: hjk <qthjk@ovi.com>
* tr()-Fixes for 2.4Friedemann Kleint2011-09-261-1/+1
| | | | | | | Change-Id: I151e75ebec7bff17a3779f1b367849ca514512c6 Reviewed-on: http://codereview.qt-project.org/5550 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* JSDebugger: Enable break on events.Aurindam Jana2011-09-161-0/+2
| | | | | | | | | | | | The user can request Javascript break on event. The user can provide this info in the Breakpoints Window and provide the slot which will be called when the event occurs. For example: specify "onTriggered" if you need to break on Timer triggered event. Change-Id: If936d7402f5978a182132fdcca75515588364e16 Reviewed-on: http://codereview.qt-project.org/4758 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* New QTC_CHECK warning replacing QTC_ASSERT(x, /**/)Kai Koehne2011-07-291-1/+1
| | | | | | | | | Warn if the condition fails, but otherwise don't change the execution flow. Change-Id: Id7b14c745109b66960add967b2a4ef8d31e1a546 Reviewed-on: http://codereview.qt.nokia.com/2389 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* debugger: don't duplicated "full name" information in break responsehjk2011-07-041-3/+3
| | | | | | | | | Less information to keep in sync. Change-Id: Icd862bbf8965eefd8ea3ad17b6f574b1f85bb8d2 Reviewed-on: http://codereview.qt.nokia.com/1069 Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* debugger: prevent double insertion of breakpoint markershjk2011-06-271-22/+16
| | | | | | Change-Id: Ie5a8625ed2887831600f1835777f9f681b012f15 Reviewed-on: http://codereview.qt.nokia.com/794 Reviewed-by: hjk <qthjk@ovi.com>
* Fix gcc warning.Christian Kandeler2011-06-271-1/+1
| | | | | | | Change-Id: I17560ff68542e99f882b2c0c315ea85b4729f19a Reviewed-on: http://codereview.qt.nokia.com/758 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: hjk <qthjk@ovi.com>
* Debugger: Add infrastructure for message tracepoints.Friedemann Kleint2011-06-271-0/+12
| | | | | | | | | | | | | | Add context menu to add a 'message tracepoint', that is, a trace point that outputs a user message and continues. Intended to be a replacement for manually inserting a qDebug() into the code to understand the call sequence. Yet to be implemented for gdb. Change-Id: I1c303001421fbbae74d98d15d52718579350db6e Rubber-stamped-by: hjk Reviewed-on: http://codereview.qt.nokia.com/756 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>