Commit Graph

78 Commits

Author SHA1 Message Date
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
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
98b477fc32 missed that -exec-continue 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
1a27681c78 change trk adapter setup sequence
gdb can be started before the debugee, so do it. that's more in line
with the other adapters.
2009-10-12 18:52:00 +02:00
Oswald Buddenhagen
9254bc0bb1 remove dead code 2009-10-12 18:51:49 +02:00
Oswald Buddenhagen
63882fc773 simplify 2009-10-12 18:51:49 +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
Oswald Buddenhagen
2de8f49ee3 remove dead code 2009-10-12 14:56:35 +02:00
Friedemann Kleint
b2924aa66b I18n: Tr()-fixes 2009-10-12 12:33:12 +02:00
Daniel Molkentin
555f8a02ec Remove cygwin options now that we have a GDB which was build with MinGW.
Also, remove COM port selection on windows. It is taken from the run
configuration in case of Windows anyway.

Reviewed-By: Friedemann Kleint
2009-10-09 15:00:23 +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
f42ad24dba remove dead code 2009-10-08 12:15:00 +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
5e7a26d863 debugger: rework fetching of memory from device
still a few cases for chunked fetching missing
2009-10-06 10:17:51 +02:00
Friedemann Kleint
d38f654d53 Fix Trk error handling
Do not close a trk device from its read handler, wire messages
correctly. TrkDevice: Terminate threads before closing.
2009-10-05 15:07:47 +02:00
hjk
dd09a4a16d debugger: work on trk memory access 2009-10-05 08:26:56 +02:00
Friedemann Kleint
04d2bfa8f8 Trk: Load symbol file correctly on Windows 2009-10-02 16:13:46 +02:00
hjk
a8430f3382 debugger: fix chain of fallbacks for disassembler view.
Use non-mixed mode if source is not available.
2009-10-02 12:31:59 +02:00
hjk
3407aab9a5 debugger: keep track of library loads as reported by trk 2009-10-02 12:31:59 +02:00
hjk
21f0f2c900 debugger: work on location marker setting. 2009-10-01 17:03:56 +02:00
hjk
df22ae6c53 debugger: replace hack to select trk adapter and pass parameters by a new one
Now .pro files can be used as project description as usual. To make the
debugger pick up the "on device" part a magic commandline is needed:
"@sym@ c:\sys\bin\your.exe  /path/to/your.sym"

If the project is not compilable, remove the Make and QMake buildsteps
and add a new Custom step that's only calling /bin/true.
2009-10-01 14:57:04 +02:00
hjk
cbf0b6f2d5 debugger: add some status line indication that trk needs to be connected
manually
2009-10-01 14:57:04 +02:00
hjk
94b6aeb745 debugger: fix breakpoint deletion in trk adapter 2009-10-01 13:46:48 +02:00
hjk
69e00d8f20 debugger: fix thumb mode breakpoint setting in trk adapter 2009-10-01 09:03:27 +02:00
hjk
93902e5d0a debugger: make 'qtcreator -debug <corefile>' work 2009-09-30 12:27:44 +02:00
hjk
c60f1468d3 debugger: improve trk shutdown 2009-09-30 09:16:55 +02:00
hjk
65592579fa debugger: replace the hack to pass the remote executable name for trk by
one that's less hard-coded.

The remote executable is now read from the debugger argument list
2009-09-30 08:35:20 +02:00
Friedemann Kleint
c3bb032753 Trk/S60: Wire debugger parameters.
Remove conditionals from toolchain enumeration, pass parameters to
TrkGdbAdapter, rename function in runconfig, derive symbol
file from local exe file.
2009-09-29 13:49:35 +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
hjk
f685aa2361 debugger: prepare more direct TRK interaction 2009-09-29 10:59:46 +02:00
hjk
1803ee2f91 debugger: reset memory cache after stepping
It's better when one wants up-to-date data...
2009-09-29 09:35:04 +02:00
hjk
4d1bae47c1 debbugger: try to disconnect from TRK on application shutdown 2009-09-29 09:35:04 +02:00
hjk
214d998b63 debugger: let debugger console directly communicate with TRK 2009-09-29 09:35:04 +02:00
hjk
b5706d77cf debugger: save a few cycles when writing to the gdb process 2009-09-29 09:35:04 +02:00