Commit Graph

115 Commits

Author SHA1 Message Date
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
Oswald Buddenhagen
a6ca348636 remove trailing whitespace
doing it in 1.3 as well to avoid possible later conflicts
2010-01-29 21:33:57 +01:00
hjk
0653843d47 debugger: implement stub for qThreadExtraInfo, add some debugging aid 2010-01-29 15:48:17 +01:00
hjk
5323eee10e debugger: try to avoid asking for all registers when stepping internally 2010-01-21 17:19:08 +01:00
hjk
b55259e2bd debugger: use breakpoint always-inserted in trk adapter 2010-01-21 17:19:08 +01:00
hjk
9f173acefe debugger: use no-ack mode in trk adapter 2010-01-21 17:19:08 +01:00
hjk
e8c15eab33 debugger: 'replace' the adapter memory cache with gdb's own.
This works better with larger gdb cache lines.
See #define LINE_SIZE_POWER 8 in gdb/dcache.c:105.
2010-01-21 17:19:08 +01:00
Friedemann Kleint
ce144fd545 Debugger: Code cosmetics. 2010-01-21 17:00:25 +01:00
Friedemann Kleint
968e5e228a Debugger: Code cosmetics. 2010-01-21 16:55:15 +01:00
Friedemann Kleint
713be02ab7 S60: Handle TrkNotifyStopped (crash) when running.
Extract error message string from Trk, print proper message
when application crashes in run mode and terminate launcher.
Use same message in Debugger for consistency.
Reviewed-by: Robert Loehning <robert.loehning@nokia.com>Reviewed-by: John Doe

Conflicts:

	src/plugins/qt4projectmanager/qt-s60/s60devicerunconfiguration.cpp
2010-01-21 15:51:33 +01:00
Friedemann Kleint
c516f350b2 S60: Handle TrkNotifyStopped (crash) when running.
Extract error message string from Trk, print proper message
when application crashes in run mode and terminate launcher.
Use same message in Debugger for consistency.
Reviewed-by: Robert Loehning <robert.loehning@nokia.com>Reviewed-by: John Doe
2010-01-21 15:46:33 +01:00
Friedemann Kleint
7d24517097 Revert "S60: Handle TrkNotifyStopped (crash) when running."
This reverts commit 607e545218.
2010-01-21 15:43:47 +01:00
Friedemann Kleint
607e545218 S60: Handle TrkNotifyStopped (crash) when running.
Extract error message string from Trk, print proper message
when application crashes in run mode and terminate launcher.
Use same message in Debugger for consistency.
Reviewed-by: Robert Loehning <robert.loehning@nokia.com>
2010-01-21 15:27:05 +01:00
Friedemann Kleint
1044af5f82 S60: Support command line arguments when running on devices.
Add command line arguments to trklauncher. Add input field
to S60DeviceRunConfiguration and pass on to RunControl and debugger.
2010-01-21 12:36:39 +01:00
Robert Loehning
500ab0f0b4 debugger: Using macro, removed unused QString 2010-01-15 18:24:34 +01:00
con
048275b051 Build fix 2010-01-15 18:19:54 +01:00
con
8b5ab50f0e debugger: remove obsolete add-symbol-file call
(cherry picked from commit 4051d8228b)

Conflicts:

	src/plugins/debugger/gdb/trkgdbadapter.cpp
2010-01-15 17:31:31 +01:00
hjk
81977e2d3d debugger: combine memory blocks more aggressively
(cherry picked from commit 85b39966bc)
2010-01-15 17:29:23 +01:00
hjk
4051d8228b debugger: remove obsolete add-symbol-file call 2010-01-15 16:25:52 +01:00
hjk
6fc1bfb2c9 debugger: backport some symbian fixes
Reviewed-by: Robert Loehning
2010-01-15 16:03:10 +01:00
hjk
85b39966bc debugger: combine memory blocks more aggressively 2010-01-15 15:06:40 +01:00
hjk
1b77161e71 debugger: clean up verbosity settings in trk adapter 2010-01-15 12:07:45 +01:00
hjk
ed82a0c3ab debugger: reinstate 'continue if step fails' fallback in the trk adapter 2010-01-15 11:38:25 +01:00
hjk
d5c9192c6b debugger: several small fixes for new gdb in trkadapter 2010-01-13 15:20:22 +01:00
hjk
1bd707ca87 debugger: invalidate current snapshot state whenever trk reports a stop 2010-01-13 15:20:21 +01:00
hjk
c8a992bf90 debugger: properly handle breakpoints above 2<<31 in the trk adapter
Also: re-enable 'Step over' fallback, report error for failed breakpoints
2010-01-13 15:20:21 +01:00
hjk
87d13230c1 debugger: disable 'continue' as woraround for failing 'step' 2010-01-12 10:53:30 +01:00
hjk
9ac4a4e652 debugger: fix combining memory chunk in trkadapter 2010-01-12 10:53:30 +01:00
Tobias Hunger
592e494d1a Fix typos
Reviewed-by: thorbjorn
2010-01-11 10:26:13 +01:00
hjk
e3712f9687 debugger: refactoring, use QByteArray instead of QString when appropriate 2010-01-05 18:13:24 +01:00
con
7185e42b25 Merge remote branch 'origin/1.3' 2010-01-05 10:58:06 +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
hjk
9ad447b8a4 debugger: make gdb-6.8-symbianelf work 2010-01-04 13:16:46 +01:00
Friedemann Kleint
b519a1132a Debugger: Activate code model scope checking, environment var for Trk verbosity.
Reviewed-by: hjk
2009-11-09 16:25:40 +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
Robert Loehning
64e2519915 TRK: Changed strings.
Using "TRK" when referring to the protocol, "App TRK" when referring to the program on the device.

Reviewed-by: Oswald Buddenhagen
2009-10-29 14:18:49 +01:00
Friedemann Kleint
fa2dbbc582 Debugger/S60: Handle shared library query correctly. 2009-10-28 11:29:13 +01:00
Friedemann Kleint
4091efb47f S60: Provide a MessageBox for starting serial communication as well.
Generalize the concept of the Bluetooth starter, extract base class
BaseCommunicationStarter that can be used to start a serial communication
without further resources (listener) as well. Introduce convenience
functions for both types.

Note: This will only work for COM-ports that are not used otherwise
by the operating system.
2009-10-26 15:40:11 +01:00
Friedemann Kleint
93759263d0 S60/Debugger: Add Bluetooth starter to Debugger
- Remove old rfcomm process handler from TrkGdbAdapter, use
  Bluetooth starter instead
- Synchronous connection, remove waitForTrkConnect()
- Move gdb start into Trk version answer, pass on
  settings id hint
- Prevent exit crash triggered by signal gdbProcessFinished()
- Set DebuggerNotReady correctly on AdapterStartFailed when no
  gdb is started yet
2009-10-26 11:55:02 +01:00
hjk
d35dcd8dbe debugger: better handling of qfDllInfo packet 2009-10-23 17:06:44 +02:00
Oswald Buddenhagen
33996aa12e remove bogus assertion
the state check is in higher-level functions already
2009-10-23 16:59:27 +02:00
hjk
50038d591c debugger: first shot at supporting qfDllInfo (only present in 6.4 symbianelf) 2009-10-23 15:47:12 +02:00
Friedemann Kleint
8175e4e4c6 S60: Introduce a communications device type.
- Introduce a communications device type flag, add stubs for
  Bluetooth to serialdevicelister and pass the device type
  in new struct CommunicationDevice along to run configuration
  and debugger start parameters (overriding the debugger settings).
- Give the s60devices::Device a tooltip in the settings page
2009-10-22 16:42:25 +02:00
Oswald Buddenhagen
3a84440e91 clean up includes 2009-10-20 18:16:25 +02:00
Robert Loehning
30745d049f Trk: Added preventive disconnects.
Reviewed-by: hjk
2009-10-20 17:51:20 +02:00
Oswald Buddenhagen
b2ae433a58 centralize exec-continue calling and error handling 2009-10-20 14:08:59 +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