Commit Graph

130 Commits

Author SHA1 Message Date
Friedemann Kleint
a9982cac70 Debugger[CDB]: Enable engine restart. 2011-02-08 12:08:59 +01:00
Friedemann Kleint
3a100e8d7c Debugger: Make breakpoint capabilities more fine-grained.
Handle in editBreakpoint().

Acked-by: hjk
2011-02-07 11:05:30 +01:00
Friedemann Kleint
4d46c69d25 Debugger: Documentation work on qtcreatorcdbext/Debugger.
Add comments, introduce internal switch in
doc/api/qtcreator-api.qdocconf.
2011-02-04 15:10:17 +01:00
Friedemann Kleint
91ead6c818 Debugger[CDB]: Refactor breakpoint handling.
Add a command to list breakpoints enabling id access.
Implemented breakpoint handling similar to gdb using breakpoint
ids (no longer delete and re-set all breakpoints on a change).
Save the module that is reported back in the session so that
it can be re-used for the next start. Keep a per-debugger-session
cache of fileName->Module for adding breakpoints to accelerate
setting breakpoints in the same file.
Polish the breakpoint tooltip.
2011-02-03 16:26:23 +01:00
hjk
c23274574c debugger: code cosmetics 2011-02-02 12:43:53 +01:00
Friedemann Kleint
37e93319b4 Debugger[CDB]: Set working directory. 2011-01-27 11:47:59 +01:00
Friedemann Kleint
3f3ad561c7 Debugger[CDB]: Reduce roundtrips when stepping.
Report threads and frames along with stopped notification.
Change special logic for step into and switching threads
on interrupt accordingly.
2011-01-25 18:35:31 +01:00
Friedemann Kleint
bc30185bed Debugger[CDB]: Show expandable tooltips.
By setting a filter model on the locals model.
Prepare infrastructure for filter models for pinneable
tooltips in debuggertooltips.
2011-01-25 13:59:25 +01:00
Friedemann Kleint
e46590390e Debugger[CDB]: Prevent debugger log from showing.
caused by overlapping flags and thus 'Stop at breakpoint'
being reported as an error.
2011-01-25 11:53:47 +01:00
Friedemann Kleint
c1228d0c67 Debugger[CDB]: Add setting for additional command line arguments.
to CDB, allowing for extensions, etc.
2011-01-19 13:01:50 +01:00
Friedemann Kleint
3af8188784 Debugger[CDB]: Use Qt Creator console stub instead of CDB console.
As the latter immediately closes after the debuggee quits.
Handle pressing Ctrl like DebugBreak(), switch to thread 0.
2011-01-19 10:25:32 +01:00
Friedemann Kleint
cd3b6c7b23 Debugger[CDB]: Switch to thread 0 after DebugBreak().
Do not show artificial thread that is created by
DebugBreak() as it causes a switch to disassembly.
Forcibly discard the symbol group for each locals
update as the lazy creation mechanism does not trigger
on thread changes back and forth involving assembly,
which causes the symbol group to become stale.
2011-01-18 15:34:58 +01:00
Friedemann Kleint
11c6ca71ac Debugger[New CDB]: Add support for "Select Widget to Watch".
in stopped state. Add helper for executing calls
to ExtensionContext including recording of output in
OutputCallback. Extend symbol resolution to return addresses
as well since QApplication::widgetAt() is ambiguous and needs
to be called by address. Add 'widgetat' extension command
to return the widget.
2011-01-18 11:40:45 +01:00
Friedemann Kleint
8108bb0c89 Debugger[New CDB]: Ignore only first WOW64 breakpoint.
Subsequent ones are caused by interrupts.
2011-01-17 15:18:13 +01:00
Friedemann Kleint
3a87af8ada Debugger[New CDB]:Introduce watches infrastructure.
- Move the 'current module' into the Node
- Split symbol group hierarchy into LocalsSymbolGroup
  tied to frame/thread and a separate, scopeless
  WatchesSymbolGroup
- Add infrastructure for removing symbols from a SymbolGroup,
  doing the index bookkeeping.
- Add method to synchronize watches to  WatchesSymbolGroup
  (iname/name map).
- Introduce watches commands for adding and dumping.
- Extend locals command to get watches as well.
- Add a dummy 'ErrorSymbolGroupNode' to use in case
  insertion fails.
2011-01-14 16:53:05 +01:00
Friedemann Kleint
56bbd4adca Debugger[New CDB]: Fix output format. 2011-01-13 14:27:52 +01:00
Christian Kamm
49655d622d debugger: Slightly improve compile fix for linux.
Reviewed-by: Friedemann Kleint
2011-01-12 14:21:44 +01:00
hjk
9f6e0091b8 debugger: compile fix on linux 2011-01-12 14:18:20 +01:00
Friedemann Kleint
a60b3f6746 Debugger[New CDB]: Improve 32bit debugging on 64bit systems.
- Ignore WOW64 breakpoints. Restructure code to examine stop reason
  before notifications to be able handle special stop reasons
  in a simpler way.
- Fix autodetection to look into %ProgramFiles% (x64) as well.
2011-01-12 13:51:33 +01:00
hjk
6dd55aa471 debugger: introduce generic master/slaves engine 2011-01-12 12:17:47 +01:00
con
d1023c7614 It's 2011 now.
Reviewed-by: hjk
2011-01-12 09:46:24 +01:00
Friedemann Kleint
b74ecbdb5a Debugger[New CDB]: Update all variables on assignment.
Some documentation/comment changes.
2011-01-11 14:58:32 +01:00
Friedemann Kleint
7ff4b1fec2 Debugger[New CDB]: Get rid of postfix '2' in file names/classes. 2011-01-11 11:22:55 +01:00
Friedemann Kleint
01d4c5a3d3 Debugger: R.I.P. old CDB engine. 2011-01-07 15:04:54 +01:00
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
hjk
9757e22113 debugger: introduce the concept of a 'Location', used by gotoLocation 2010-12-17 11:59:01 +01:00
hjk
fb837b5230 debugger: s/*ViewAgent/*Agent/ to reduce noise and match file names 2010-12-14 13:10:07 +01:00
Friedemann Kleint
bee04cf1f5 Debugger[CDBs 32bit]: Fix 'Jump to Line'.
PC register is 'rip' for 64bit and 'eip' for 32bit.

Task-number: QTCREATORBUG-3361
2010-12-13 17:19:21 +01:00
Leandro Melo
27bab4e811 Compile fix. 2010-12-08 17:20:45 +01:00
hjk
cfd2dbb395 debugger: split debuggeragents.{h,cpp} int {memory,disassembler}agent.{h,cpp} 2010-12-08 16:48:35 +01:00
Bill King
c6a4c233eb debugger: Make compile 2010-12-03 11:12:44 +10:00
Friedemann Kleint
a4d7fb2f06 Debugger: Fix compilation, centralize breakpoint type detection.
Reviewed-by: hjk
2010-11-26 13:06:03 +01:00
hjk
7d8d51677b debugger: polish module symbols 2010-11-26 11:27:25 +01:00
Friedemann Kleint
c619360860 Debugger: Fix CDB Disassembler 2010-11-24 16:51:02 +01:00
Friedemann Kleint
c35672eaa8 Debugger: Remove 'friend gdbengine' from stackhandler.
Preparing the introduction of tooltips for the new
CDB engine. Fix some breakpoint states in CDB.
2010-11-22 17:06:08 +01:00
hjk
5209b396cd debugger: make BreakHandler::setState private 2010-11-18 17:54:05 +01:00
Friedemann Kleint
727b8c3c31 Debugger: Use Symbol server nagging code in both CDB engines. 2010-11-18 16:22:41 +01:00
Friedemann Kleint
d1c08e68cc Debugger: Move some Windows functionality around.
Preparing the introduction of the new CDB engine.
2010-11-17 17:01:51 +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
Friedemann Kleint
9235e9360b Debugger: Compile CDB 2010-11-17 08:28:35 +01:00
hjk
0ccba579f6 debugger: potentia;l cdb compile fix 2010-11-16 11:12:05 +01:00
Friedemann Kleint
29beabd5a4 Debugger: Handle throw/catch/main as BreakpointType enum values.
Remove BreakHandler::hasPendingBreakpoints, handle new types
in CDB and gdb. Start fixing Breakpoint-Dialog.
Add assignment of Breakpointresponse from BreakpointParameters.

Reviewed-by: hjk
2010-11-16 10:23:20 +01:00
Friedemann Kleint
30d6ae0e3d Debugger: Make CDB compile again. 2010-11-15 15:24:47 +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
c0ac7aaf36 Debugger: Compile Windows. 2010-11-10 12:30:02 +01:00
Friedemann Kleint
ea59569640 Debugger[CDB]: Add register manipulation and 'Jump to line'.
Task-number: QTCREATORBUG-2975
2010-11-03 15:24:02 +01:00
Tobias Hunger
7a0e15b14e Fix spelling in dissassemble method
Krazy was complaining about this.

Reviewed-by: Friedemann Kleint
2010-11-03 12:45:35 +01:00
Friedemann Kleint
6510a749b7 ProjectExplorer: Move ToolChainType enumeration into separate Header.
Acked-By: dt
2010-11-01 14:25:24 +01:00
Oswald Buddenhagen
354c4d868d fix error message and source in the TS files 2010-10-28 14:28:25 +02:00