Commit Graph

43 Commits

Author SHA1 Message Date
hjk
dcd57ab2df debugger: try to make core file loading appear snappier 2010-12-21 14:46:42 +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
8ae541b36f debugger: Refactor breakpoint handling.
The breakpoints are now (fairly) tightly guarded by the BreakpointHandler.
Engines and Views are only supposed to refer to them by id. They also have
individual states now. The breakpoint data is split into a "user requested"
"fixed" part in BreakpointData and the engines' acknowledged data in a new
struct BreakpointResponse.

TODO: Move m_state and m_engine members to BreakpointResponse. Fix regressions
in the marker handling.
2010-11-15 12:09:25 +01:00
Friedemann Kleint
22f03cbde6 ProjectExplor/Debugger: Header cleanup 2010-11-02 16:14:00 +01:00
hjk
47a593af72 debugger: Fix loading core files with binary paths of more then 80 chars
Reviewed-by: Friedemann Kleint
Task-number: QTCREATORBUG-2669
2010-10-11 16:57:25 +02:00
Roberto Raggi
eb3c88eb23 Compile. 2010-07-21 14:36:45 +02:00
hjk
d6fc1193ed debugger: more linear state handling in core adapter 2010-07-15 14:54:43 +02:00
hjk
9f8b5af3b2 debugger: make parsing of cli-style commands in python more robust 2010-07-15 14:54:43 +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
8060479483 find executable relative to core location 2009-10-20 18:16:25 +02:00
Oswald Buddenhagen
3dfe96ebb8 refactor attachAdapter 2009-10-20 18:16:25 +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
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
Oswald Buddenhagen
2ec0bc9f6d remove useless code
--tty + outputcollector, working dir and environment setup make sense
only for living local debuggees.
2009-10-08 12:14:54 +02:00
Friedemann Kleint
81a8f2f927 Debugger: Improve adapter error handling
Correctly reset state on missing Symbian gdb.
Provide "settings" options.
Reviewed-by: hjk <qtc-committer@nokia.com>
2009-10-08 11:43:26 +02:00
hjk
06abe6b813 debugger: fix frame switching when using core files 2009-10-06 11:06:34 +02:00
hjk
64ccdc7e33 debugger: fix attaching to core file 2009-10-05 13:48:13 +02:00
hjk
93902e5d0a debugger: make 'qtcreator -debug <corefile>' work 2009-09-30 12:27:44 +02:00
hjk
17c928f970 debugger: introduce a new state InferiorUnrunnable to properly describe the
state when gdb is attached to a core.
2009-09-29 14:47:27 +02:00
hjk
10fa3b2b76 debugger: remove inferiorStarted() signal.
It had unclear semantics and was only used to show a statusmessage.
We do that directly now.
2009-09-29 10:59:46 +02:00
Friedemann Kleint
ec7c77ca23 Debugger: Work towards exporting DebuggerManager: Introduce d.
Clean out header.
2009-09-25 15:02:16 +02:00
hjk
00f676708b debugger: work on handling gdb crashes gracefully 2009-09-25 11:50:39 +02:00
hjk
20b9258d9e debugger: refactoring
Intergrate per-engine state tracking with the global running/stopped state.
2009-09-25 08:36:44 +02:00
hjk
8f6aa2259e debugger: refactoring
rename GdbResultRecord into GdbResponse
merge cookie QVariant into GdbResponse
move debugMessage convienience function from individual adapters to base
2009-09-24 11:22:45 +02:00
hjk
378036c916 debugger: make attaching to running process work again 2009-09-23 15:28:50 +02:00
hjk
713b1f2034 debugger: re-activate core file debugging 2009-09-23 13:38:33 +02:00