Commit Graph

179 Commits

Author SHA1 Message Date
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
Friedemann Kleint
52d18e7e6f Debugger[CODA/TRK]: Emergency shutdown if gdb crashes.
Kill the debuggee when gdb crashes in stopped state to prevent
the phone from locking up.

Task-number: QTCREATORBUG-3099
2010-12-02 15:18:35 +01:00
Friedemann Kleint
e8e4ce9728 Debugger: Add infrastructure for loading Symbian .sym files.
Add local symbol files for libraries to gdb along with
section addresses using the command
add-symbol-file <file> <address[es]>.

Whenever TRK reports a module load, check for a matching local
.sym file in a folder pointed to by the
QTC_SYMBIAN_SYMBOLFILE_CACHE environment variable
or the folder of the application executable symbol file (which
should be udeb/urel of EPOC).

Rubber-stamped-by: hjk
2010-12-02 14:12:54 +01:00
Daniel Molkentin
add6996d4f Set target architecture for the symbian trk adapter
Enables use of multi-target GDB.

Reviewed-by: hjk
2010-12-02 13:45:54 +01:00
con
3565245018 Fix debugging Symbian gcce raptor built apps.
Local executable is put into a different folder
(always 'armv5' despite it being a 'gcce' build, changed in qmake),
and the symbol file is named 'foo.exe.sym' instead of 'foo.sym'.

Done-by: Friedemann Kleint
Reviewed-by: Pawel Polanski
2010-11-25 17:47:56 +01:00
con
fb3524af90 Fix debugging Symbian gcce raptor built apps.
Local executable is put into a different folder
(always 'armv5' despite it being a 'gcce' build, changed in qmake),
and the symbol file is named 'foo.exe.sym' instead of 'foo.sym'.

Done-by: Friedemann Kleint
Reviewed-by: Pawel Polanski
2010-11-25 15:54:21 +01:00
Oswald Buddenhagen
1e362b0f8b overhaul process argument handling
get away from argument stringlists. instead, use native shell command
lines which support quoting/splitting, environment variable expansion
and redirections with well-understood semantics.

Task-number: QTCREATORBUG-542
Task-number: QTCREATORBUG-1564
2010-11-17 13:19:07 +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
Pawel Polanski
2834fb86a3 Memory dump is not refreshed while debugging for SymbianOS 2010-11-05 16:33:37 +01:00
Friedemann Kleint
22f03cbde6 ProjectExplor/Debugger: Header cleanup 2010-11-02 16:14:00 +01:00
Pawel Polanski
cbdf363709 Unable to change the value of a variable while debugging Symbian - issue fixed
Reviewed-by: hjk
2010-10-01 18:41:18 +02:00
Friedemann Kleint
8c956abedd Debugger[TRK]: Report crashs with signals.
Show the message box correctly on signal 11 reported.

Reviewed-by: hjk
2010-09-29 16:39:46 +02:00
Friedemann Kleint
4118d70182 Debugger[TRK]: Handle trace point requests of gdb 7.2+
Task-number: QTCREATORBUG-2315
2010-09-14 16:39:44 +02:00
Friedemann Kleint
97e7c12e3c Code polishing, continuing cb23999fbf
Add more error messages to processes run for toolchain detection.
Move Windows-specific code to dbgwinutils, remove inclusion of
<windows.h>. Fix MinGW gcc 4.5 warnings.
2010-09-09 09:58:17 +02:00
Friedemann Kleint
fa53438f91 Debugger[TRK]: Make @sym@ hack work again. 2010-08-30 10:55:43 +02:00
Friedemann Kleint
8d188d0104 Debugger[TRK]: Warn about suspicious code segment addresses
Task-number: QTCREATORBUG-2158
Reviewed-by: hjk
2010-08-27 11:14:08 +02:00
Friedemann Kleint
93cb30b102 Debugger[Trk]: Fix warning about states. 2010-08-09 16:54:21 +02:00
hjk
af57dc4170 debugger: re-enable setting breakpoints while inferior is running 2010-07-20 14:02:58 +02:00
Friedemann Kleint
0b527bfdfe Fix CDB/trkgdbadapter. 2010-07-14 17:49:18 +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
Friedemann Kleint
bca434a706 Trk/Launcher: Add infrastructure for reporting crashes.
currently used for runonphone only.
Initial-patch-by: Shane Kearns <shane.kearns@accenture.com>
2010-07-07 14:01:01 +02:00
Friedemann Kleint
52b33a7503 Debugger[Trk]: Prepare thread handling.
Store threads and cache registers per thread in Snapshot.
As Trk does not generate Thread creation/deletion events.
try to add threads on the fly if a stop in a new thread id is reported.
Remove them in continue. Continue all threads in classic Trk.
Pass on state (crash reason) to ThreadData and model.
Factor out common code of both adapters to Snapshot/Symbian classes.
2010-06-30 17:14:57 +02:00
con
ede2a7c975 Merge remote branch 'origin/2.0'
Conflicts:
	doc/qtcreator.qdoc
	share/qtcreator/gdbmacros/dumper.py
	src/libs/qmljs/qmljs-lib.pri
	src/plugins/debugger/breakhandler.cpp
	src/plugins/projectexplorer/projectexplorer.h
	src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.h
2010-06-30 14:25:09 +02:00
Friedemann Kleint
c55a475362 Debugger[Trk]: Increase packet size XML replies
Reviewed-by: hjk
Task-number: QTCREATORBUG-1563
2010-06-29 10:48:25 +02:00
Friedemann Kleint
beba423a16 Debugger[Trk]: Added TCF experimental adapter.
Added adapter to work with TCF over WLAN.
Factor out common code for Symbian from TrkAdapter.
Improve message logging in TrkGdbAdapter, some cleanup.
Added new TcfTrkGdbAdapter based on TcfTrkDevice
in symbianutils based on JSON, using QTcpSocket.
To be started via special @tcf@ argument.
Rubber-stamped-by: hjk
2010-06-25 15:06:30 +02:00
hjk
6a6cba5518 debugger: The DebuggerEngine refactoring.
This replaces the (de facto) singleton engines and data handlers by classes
that are instantiated per run. The DebuggerRunControl will now create an
object of (a class derived from) DebuggerEngine that contains all the relevant
"dynamic" data.

DebuggerManager is no more. The "singleton" bits are merged into DebuggerPlugin,
whereas the data bits went to DebuggerEngine.

There is no formal notion of a "current" DebuggerEngine. However, as there's
only one DebuggerEngine at a time that has its data models connected to the
view, there's still some "de facto" notion of a "current" engine. Calling
SomeModel::setData(int role, QVariant data) with custom role is used as the
primary dispatch mechanism from the views to the "current" data models
(and the engine, as all data models know their engine).
2010-06-22 10:59:57 +02:00
hjk
ff7c543a73 debugger: move RegisterHandler from DebuggerManager to DebuggerRunControl 2010-06-15 11:43:20 +02:00
hjk
9f7e9dc0ae debugger: refactoring of output channeling 2010-06-14 18:22:09 +02:00
hjk
b3aff6b919 debugger: more of the RunControl refactoring
Pass output through the RunControl instead of the DebuggerManager.
2010-06-14 17:24:13 +02:00
Tobias Hunger
5d5f647f3d Fix preprocessor directives
* The standard says all preprocessor directives have to start
   at column 0.
2010-06-10 13:28:14 +02:00
hjk
35bfbec797 debugger: refactor thread related class 2010-05-18 12:13:27 +02:00
ck
ef7c5fae60 Debugger: Support running GDB over SSH.
Reviewed-by: hjk
2010-05-05 12:51:21 +02:00
Friedemann Kleint
c6779be8b8 Debugger[Symbian]: Remove Symbian/trk options page. 2010-04-09 08:44:06 +02:00
hjk
fddbf6bef4 debugger: add a FIXME for set debug remote 2010-03-25 12:29:51 +01:00
Friedemann Kleint
bbcacaf59f Header cleaning spree in Core/Debugger and Symbian/Maemo-code of Qt4. 2010-03-18 10:59:06 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
hjk
73ef5e33ea debugger: properly display function pointers with python 2010-03-01 10:28:34 +01:00
Friedemann Kleint
d4cee56e99 Symbian/Linux: Fix debugger
- Switch correctly on GnuPoc-toolchains
- Do not lock up on Gdb start.
2010-02-25 17:52:34 +01:00
Friedemann Kleint
a8098cff93 Trk: Do not show additional message box when canceled. 2010-02-25 16:05:45 +01:00
hjk
620fcd9199 debugger: comment out remote log file 2010-02-11 13:13:59 +01:00
Friedemann Kleint
dc006860c4 Symbian: Let SymbianDeviceManager handle TrkDevice leases.
...making use of a shared device by all clients. Detect device removal by
delaying the WM_DEVICE event handling. Introduce Acquire/Release mechanism
to SymbianDeviceManager and let acquire() fail if the device is in use, thus
preventing starting 'run' while debugging is active, etc.
Handle "Device removed" (unplugging of cable) signal by closing the device and adding
handlers to the clients, stabilize TrkDevice against it.
Remove communication type from the run configuration parameters (now handled by
SymbianDeviceManager).

Working towards keeping the Trk-connection always open and a giving the target pane
a meaningful tooltip.
For the moment, pass on tooltips from device manager additional information
(Trk version and such as determined by the launcher).
2010-02-11 12:31:59 +01:00
hjk
931ef372f6 debugger: handle critical TRK errors as critical. 2010-02-11 11:11:28 +01:00
hjk
28b0dcc4d1 debugger: increase accessible memory range in the trk adapter
needed after changing the default to "inaccessible"
2010-02-11 10:52:25 +01:00
hjk
89a971207f debugger: fix initial display of register view in trk adapter 2010-02-11 10:52:25 +01:00