Commit Graph

162 Commits

Author SHA1 Message Date
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
hjk
238f5be023 debugger: fix call to "set trust-readonly-sections on".
Does not appear to help, though.
2010-02-11 10:52:25 +01:00
hjk
7766646b11 debugger: use gdb/cli for disassembler output. 2010-02-11 10:52:25 +01:00
hjk
bd1b9e6ccb debugger: cache target read-only memory in the trkadapter 2010-02-08 14:57:14 +01:00
Friedemann Kleint
3efdb87682 S60/Trk: Make the port a property of TrkDevice.
Associate the port with the device instead of passing it to open
for better handling.
2010-02-08 14:10:51 +01:00
hjk
0bde89eee3 debugger: use the direct access withing trkadapter to list threads 2010-02-08 13:02:25 +01:00
hjk
27fa4c0440 debugger: distinguish between "step into" and "step over" in TrkAdapter. 2010-02-05 16:00:54 +01:00
hjk
735b3489d4 debugger: fake hardware breakpoints work better with read-only memory 2010-02-05 15:23:44 +01:00
hjk
52dcc41021 debugger: fix typo in unused code 2010-02-05 15:23:44 +01:00
hjk
c69e573c06 debugger: the stack range is not read-only... 2010-02-05 15:23:44 +01:00
Friedemann Kleint
f2b3e9f2df S60/Trk: Change trkutils to be a library of its own.
To be able to share TrkDevices between Debugger and Qt4ProjectManager.
2010-02-05 12:26:02 +01:00
hjk
311ab94fda debugger: assume memory is inaccessible by default when using trk 2010-02-04 15:02:04 +01:00
hjk
e539f5bda3 debugger: take advantage of the fact that the trkadapter has often up-to-date
register data
2010-02-04 12:12:27 +01:00
hjk
b35a4096c6 debugger: start using TRK's 'multi instruction step' facility 2010-02-04 09:57:38 +01:00
Friedemann Kleint
74977e1290 Debugger: Fix some code scanning issues. 2010-02-03 17:22:44 +01:00
hjk
533a85a62a debugger: in trk communication one needs to acknowledge the loading of 'really
shared' libraries but not of 'static' dlls.
2010-02-01 12:17:55 +01:00
Oswald Buddenhagen
75b42f18d8 Merge remote branch 'origin/1.3'
Trailing whitespace removal re-applied manually.
2010-01-29 22:50:23 +01:00
Oswald Buddenhagen
4320314046 Merge branch 'origin/1.3' (early part)
Conflicts:
	src/plugins/debugger/gdb/trkgdbadapter.cpp
	src/plugins/projectexplorer/projectexplorer.cpp
	src/plugins/qt4projectmanager/qt-s60/s60devicerunconfiguration.cpp
	src/plugins/texteditor/basetexteditor.cpp
2010-01-29 22:14:44 +01:00