Commit Graph

27 Commits

Author SHA1 Message Date
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
Friedemann Kleint
22f03cbde6 ProjectExplor/Debugger: Header cleanup 2010-11-02 16:14:00 +01:00
dt
6b6d9871b8 Merge remote branch 'origin/2.1'
Conflicts:
	share/qtcreator/templates/mobileapp/app.pro
	share/qtcreator/templates/qmlapp/app.pro
	src/plugins/cpptools/cpptools.pro
2010-10-04 16:07:46 +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
83e1fcfd99 Debugger[TCF]: Parse \u-escapes in JSON correctly, report verbose
crash messages.
2010-09-27 16:10:14 +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
be82d9dd3c Debugger[TCF TRK]: Allow for different ports, fix register race cond.
Delay register request should it occur before register names have
been queried. Allow for address:port specification.
2010-09-09 17:08:45 +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
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
6c76866b12 Debugger[TCF TRK]: Fix ModuleLoad handling and add list of libs.
Handle non-exe modules that require a resume correctly (do not
mistake them for the actual .exe).
Add a list of well-known libraries pending the introduction
of a setting to report all libraries.
2010-08-13 12:40:31 +02:00
Friedemann Kleint
f34fd810d5 Debugger[TCF TRK]: Adapt to TCF TRK 4.0.5
- Parse/Format errors correctly (long codes)
- Use standard 'Registers' service, fake 'getm' as long as it is
unimplemented
- Use 'Registers|getChildren' for each thread to activate the context
and use the names obtained from there instead of hardcoded register
names
2010-08-11 15:47:11 +02:00
hjk
99e862cfc9 debugger: code cosmetics 2010-07-20 14:02:59 +02:00
hjk
af57dc4170 debugger: re-enable setting breakpoints while inferior is running 2010-07-20 14:02:58 +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
6fff4b4fe9 debugger: code cosmetics 2010-07-14 17:49:15 +02:00
Friedemann Kleint
b2694a33bb TCF TRK: Added support for Console Logging event. 2010-07-12 16:19:49 +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
9bb67101c5 Trk[TCF]: Proper exit handling 2010-07-05 17:14:45 +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
Friedemann Kleint
b1ed92405b Debugger[Trk]: Increase packet size XML replies
Reviewed-by: hjk
Task-number: QTCREATORBUG-1563
2010-06-29 10:50:17 +02:00
Friedemann Kleint
66e01e881d Debugger[TCF-Trk]: Send RemoveExecutables command. 2010-06-28 16:32:53 +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