hjk
e3bd438a8f
debugger: make startGdb response handling asyncronous
...
This allows adapters to take all responses from the startup commands
into account.
Change-Id: I295cb211a4b69cfb8c59b34030aaee8120ffe98e
Reviewed-by: hjk <qthjk@ovi.com >
2012-06-05 11:24:12 +02:00
hjk
b439999f1d
debugger: try quicker start when no breakpoints are set
...
This prevents initial reading of debug information when no
breakpoints are set. The debug information will be read on
first stop instead, e.g. when the user interrupts.
Change-Id: I6156347bf108e9ed89f54ca67021f37c02fa5116
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com >
2012-04-17 12:35:24 +02:00
hjk
95e2c9ca57
debugger: make the selection of detach or kill explicit
...
Change-Id: I6f80047ad229e0be851b06a277ab2f899757828f
Reviewed-by: hjk <qthjk@ovi.com >
2012-03-26 16:37:42 +02:00
Friedemann Kleint
38510a482d
Debugger: Fix interrupting code.
...
- Windows: Always use DebugBreakProcess if Qt Creator is compiled
64bit. Else always use win64interrupt.exe if Qt Creator
is a WOW64 application.
- Remove redundant code (procinterrupt/hostutils, gdb adapters).
- Give interruptProcess an errorMessage parameter such that it can
be used by all C++ engines and a proper error is displayed.
- Improve error messages.
- Build win64interrupt if target architecture is 64 bit (clean tools
profile, add a profile), borrowing the check from
qtcreatorcdbext.pro.
Change-Id: I2a6caf98e46051c49c84e1f3aac4c8d2aba66e8b
Reviewed-by: David Schulz <david.schulz@nokia.com >
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com >
2012-02-02 16:25:42 +01:00
hjk
2931a499e6
Long live the king!
...
Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2
Reviewed-by: Daniel Teske <daniel.teske@nokia.com >
2012-01-26 19:55:36 +01:00
Friedemann Kleint
4e2a4bb87c
Compile fix in debugger.
...
Change-Id: Ib0557fe1f2810879350c2de687ab00c261f0365f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com >
2012-01-06 14:29:37 +01:00
David Schulz
fad4599174
added a detailed error description if ptrace is not permitted
...
Change-Id: I555fddcabdd2311e55907073c15d5627d3283a73
Reviewed-by: hjk <qthjk@ovi.com >
2012-01-06 13:06:59 +01:00
hjk
31600758de
all: s/info@qt.nokia.com/qt-info@nokia.com/
...
Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e
Reviewed-by: Eike Ziller <eike.ziller@nokia.com >
2011-11-03 10:33:19 +01:00
Tobias Hunger
aa2acec14c
Fix/add copyright headers
...
Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
2011-05-06 15:17:05 +02:00
Oswald Buddenhagen
dc3c156cac
Merge branch '2.2'
...
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
2011-04-14 12:39:31 +02:00
hjk
8397663964
Update license.
2011-04-13 11:49:28 +02:00
hjk
09b04caff1
debugger: interface cleanup
2011-03-28 13:24:46 +02:00
con
d1023c7614
It's 2011 now.
...
Reviewed-by: hjk
2011-01-12 09:46:24 +01:00
Friedemann Kleint
a7eccce733
Debugger: Header cleanup
2011-01-10 10:14:23 +01:00
con
b1bcf081d8
Merge branch '2.1'
...
Conflicts:
src/plugins/coreplugin/basemode.cpp
src/plugins/coreplugin/basemode.h
src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.cpp
src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.h
src/plugins/debugger/cdb/cdbsymbolpathlisteditor.cpp
src/plugins/debugger/debuggeragents.cpp
src/plugins/debugger/debuggeruiswitcher.cpp
src/plugins/debugger/debuggeruiswitcher.h
src/plugins/projectexplorer/buildconfigdialog.cpp
src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp
src/plugins/qmldesigner/components/propertyeditor/colorwidget.h
src/plugins/qmldesigner/designercore/include/enumeratormetainfo.h
src/plugins/qmldesigner/designercore/include/modelutilities.h
src/plugins/qmldesigner/designercore/include/nodeinstance.h
src/plugins/qmldesigner/designercore/include/propertymetainfo.h
src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.h
src/plugins/qmldesigner/designercore/instances/graphicsviewnodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.h
src/plugins/qmldesigner/designercore/instances/nodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/qmlviewnodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.cpp
src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.h
src/plugins/qmldesigner/designercore/metainfo/enumeratormetainfo.cpp
src/plugins/qmldesigner/designercore/metainfo/propertymetainfo.cpp
src/plugins/qmldesigner/designercore/model/modelutilities.cpp
src/plugins/snippets/inputwidget.cpp
src/plugins/snippets/snippetscompletion.cpp
src/plugins/snippets/snippetscompletion.h
src/plugins/snippets/snippetspec.cpp
src/plugins/snippets/snippetsplugin.cpp
src/plugins/snippets/snippetswindow.cpp
src/plugins/snippets/snippetswindow.h
src/plugins/texteditor/snippetsparser.cpp
src/tools/qml/qmldom/main.cpp
tests/manual/trk/runner.cpp
tests/manual/trk/trkolddevice.cpp
tests/manual/trk/trkolddevice.h
tests/manual/trk/trkserver.cpp
2010-12-17 17:00:53 +01:00
con
04e32b0049
License headers.
2010-12-17 16:03:42 +01:00
hjk
0d3ca6da16
debugger: make attach to running process stop the process (again)
2010-11-23 12:31:47 +01:00
Friedemann Kleint
22f03cbde6
ProjectExplor/Debugger: Header cleanup
2010-11-02 16:14:00 +01:00
Friedemann Kleint
ce3ad3bae3
Revert unintended side effect of 111c18e353.
2010-09-30 16:54:21 +02:00
Friedemann Kleint
111c18e353
Fix Wizard page not offering the right project to add to.
...
Symptom of file name slashification breakage.
Reviewed-by: dt
Task-number: QTCREATORBUG-2535
2010-09-30 16:50:59 +02:00
Kai Koehne
ef1e52dfd1
Merge branch '2.0' of scm.dev.nokia.troll.no:creator/mainline
...
Conflicts:
doc/qtcreator.qdoc
doc/qtcreator.qdocconf
share/qtcreator/gdbmacros/dumper.py
share/qtcreator/gdbmacros/gdbmacros.py
src/plugins/debugger/debuggermanager.cpp
src/plugins/debugger/gdb/attachgdbadapter.cpp
src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/debugger/watchhandler.cpp
src/plugins/mercurial/mercurialjobrunner.h
src/plugins/qmljseditor/qmljseditor.cpp
src/plugins/qmljseditor/qmljseditor.pro
src/plugins/qmljseditor/qmljseditorplugin.cpp
src/plugins/qmljseditor/qmljseditorplugin.h
src/plugins/qmljseditor/qmljspreviewrunner.cpp
src/plugins/qmljseditor/qmljspreviewrunner.h
src/plugins/qmlprojectmanager/QmlProjectManager.pluginspec
src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp
src/plugins/qt4projectmanager/qt-maemo/qemuruntimemanager.cpp
src/plugins/qt4projectmanager/qt4projectmanager.pro
src/plugins/qt4projectmanager/qtversionmanager.h
src/plugins/qt4projectmanager/wizards/targetsetuppage.cpp
src/plugins/qt4projectmanager/wizards/targetsetuppage.h
2010-08-23 16:00:24 +02:00
Friedemann Kleint
4b1540e5a7
Debugger/Windows[gdb]: Fix Attach to running (gui) process.
...
Initial-patch-by: hjk
Task-number: QTCREATORBUG-2084
2010-08-18 16:43:21 +02:00
hjk
af57dc4170
debugger: re-enable setting breakpoints while inferior is running
2010-07-20 14:02:58 +02:00
hjk
3eef8a43c0
debugger: more state work
2010-07-14 17:49:16 +02:00
hjk
e760700f0f
debugger: overhaul "state machine"
...
This mainly allows for more precise shutdown and tightens the set
of allowed transitions.
2010-07-14 17:49:16 +02:00
hjk
6089bc1b9e
debugger: rename EngineStart to EngineSetup
2010-07-14 17:49:16 +02:00
hjk
9e7a456457
debugger: refactor startup logic
2010-07-14 17:49:16 +02:00
hjk
405f340e2b
debugger: streamline communication between GdbEngine and the adapters
2010-07-08 12:41:53 +02:00
hjk
2385e15b2d
debugger: merge 'AdapterStarting' into 'EngineStarting' state
2010-07-08 12:41:53 +02:00
hjk
9f7e9dc0ae
debugger: refactoring of output channeling
2010-06-14 18:22:09 +02:00
hjk
9595504bda
Long live the king!
2010-03-05 11:28:13 +01:00
hjk
e3712f9687
debugger: refactoring, use QByteArray instead of QString when appropriate
2010-01-05 18:13:24 +01:00
Oswald Buddenhagen
5fd1e3c454
properly decode messages from gdb
...
... using fromLocal8Bit instead of fromLatin1.
of course the localized messages pose a "challenge" for the various
workarounds which parse them ...
Task-number: QTCREATORBUG-504
2010-01-04 14:12:28 +01:00
Oswald Buddenhagen
9d20a2abb4
make attaching adapters more robust
...
to make the behavior consistent across gdb versions, ignore the initial
*stopped which gdb7 delivers while attaching.
Reviewed-By: hjk
2009-10-30 17:47:51 +01:00
Oswald Buddenhagen
56053abbe8
in fact, older gdbs don't send *stopped after attaching
2009-10-29 15:34:00 +01:00
Oswald Buddenhagen
ad3d1c5887
assert pid presence
2009-10-29 15:34:00 +01:00
Oswald Buddenhagen
954b2b1786
less noise
2009-10-29 15:34:00 +01:00
Oswald Buddenhagen
3a84440e91
clean up includes
2009-10-20 18:16:25 +02:00
Oswald Buddenhagen
3dc1e31deb
fix initial breakpoint setting
...
as it turns out, it is not possible to set pending breakpoints until
gdb has loaded as image. so add some hooks to enable adapters to trigger
the initial breakpoint syncing at the right time. do not add additional
states (say, InferiorPreparing), as it would just complicate things.
2009-10-20 11:26:55 +02:00
Oswald Buddenhagen
b3addf14f1
fix shutdown paths
...
this includes:
- move the gdb ownership back to the engine (thus strip down the
adaptors as far as possible)
- make gdb startup synchronous
- make adapter shutdown synchronous
- fix the state transitions relating to shutdown
2009-10-20 11:26:55 +02:00
Oswald Buddenhagen
4b0060c537
adapters don't need to set DebuggerNotReady state
2009-10-20 11:26:55 +02:00
Oswald Buddenhagen
de9b4e8365
centralize setting of AdapterStarted state
2009-10-20 11:26:55 +02:00
Oswald Buddenhagen
70f696d056
-gdb-exit has a special return code as well
2009-10-13 20:43:13 +02:00
Oswald Buddenhagen
b27093c07d
fix state machine surrounding spontaneous stops
2009-10-13 20:43:13 +02:00
Oswald Buddenhagen
d1783e0974
fold preparing inferior into starting inferior
...
after refactoring the trk adapter startup, the split was not necessary
any more. in fact, it seemed fairly arbitrary at this point.
2009-10-13 20:43:12 +02:00
Oswald Buddenhagen
973f607e64
centralize entering the InferiorStartFailed state
2009-10-12 18:52:15 +02:00
Oswald Buddenhagen
a1a8f6adcb
centralize gdb command result class checking
...
each command can have only one of two legitimate responses: "error" or -
depending on the command, and thus declared via a flag - "done" or
"running".
this is way nicer than sprinkling the code with else-ifs (where elses
are sufficient) and asserts all over the place - and silently failing in
release builds.
2009-10-12 14:56:35 +02:00
Friedemann Kleint
b2924aa66b
I18n: Tr()-fixes
2009-10-12 12:33:12 +02:00
Oswald Buddenhagen
cff3b9e0f1
centralize some code in AbstractGdbAdapter
2009-10-08 12:18:03 +02:00
Oswald Buddenhagen
51a22cbe7c
centralize STRINGIFY definition
2009-10-08 12:18:02 +02:00