Commit Graph

104 Commits

Author SHA1 Message Date
Friedemann Kleint
73e9c5790b Debugger: Change UseFullPath setting to an enumeration.
Introducing EngineDefault such that CDB/LLDB can use full paths
by default and gdb can use short paths.

Reviewed-by: hjk
2011-02-17 13:06:51 +01:00
hjk
d6c870e90e debugger: show more detail for "special" breakpoints in breakwindow
main/throw/catch
2011-02-14 13:56:18 +01:00
Friedemann Kleint
0824a12879 Debugger: Make breakpoint capabilities more fine-grained.
Diffentiate between different condition parts in Breakpoint dialog.
Fix up  3a100e8d7c for CDB.
2011-02-07 11:27:30 +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
59b2aac1c4 Debugger: Add 'command[s]' to breakpoints, polish BP dialogs.
Add commands (CDB, gdb with '\n' delimiter for multiple),
rearrange dialogs, make ignore count a spin box.
2011-02-04 11:37:01 +01:00
Friedemann Kleint
c6d4ff531f Debugger: Fix breakpoint dialog.
Update model once a breakpoint is added, set initial
state of dialog.
2011-02-04 09:11:24 +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
Friedemann Kleint
e612e6636b Debugger: Add a module to breakpoint.
To speed up CDB, lldb. Add to dialogs, serialize.
Move breakpoint.ui into Debugger::Internal, add buddies.

Rubber-stamped-by: hjk
2011-02-02 14:41:14 +01:00
con
d1023c7614 It's 2011 now.
Reviewed-by: hjk
2011-01-12 09:46:24 +01:00
Friedemann Kleint
a7eccce733 Debugger: Header cleanup 2011-01-10 10:14:23 +01:00
hjk
4dea6f2169 debugger: add a 'ConditionPart' block to the breakpoint settings 2011-01-04 13:57:35 +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
2e4ba82be2 debugger: adjust sizes of some well-known columns in some views 2010-12-17 13:54:48 +01:00
hjk
f0b6bce057 debugger: start with some infrastructure for tracepoint support 2010-12-16 13:35:41 +01:00
hjk
6e17e7a3ab debugger: thread 0 is valid for cdb. so use -1 as 'any' value 2010-12-14 13:27:18 +01:00
hjk
d5c5b90b4f debugger: make "threadspec" an int instead of a bytearray 2010-11-30 13:40:23 +01:00
hjk
cf154b3bc3 debugger: make breakpoint enables state visible in the breakpoint dialog 2010-11-30 08:59:58 +01:00
hjk
6154c2ddb9 debugger: code cosmetics 2010-11-25 15:03:02 +01:00
hjk
90657a496b debugger: small usability fixes for dissassembler, breakpoint view, location 2010-11-24 15:55:45 +01:00
Friedemann Kleint
3a7f7b6d4a Debugger/BreakpointDialog: Show only data applicable to type.
Clear controls that are not applicable to type, but save
and restore their value once the type is again choosen.
2010-11-16 11:42:20 +01:00
hjk
694503cc76 debugger: looks like the BreakpointData layer is going to be unneeded. 2010-11-16 11:09:09 +01:00
hjk
3cf3f14d7f debugger: more breakpoint refactoring 2010-11-16 10:50:26 +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
hjk
f9cd211d29 debugger: fix setting of breakpoint types on session loading 2010-11-15 17:26:07 +01:00
hjk
a3923f8c24 debugger: re-enable "Delete all breakpoints" etc 2010-11-15 15:31:05 +01:00
Friedemann Kleint
30d6ae0e3d Debugger: Make CDB compile again. 2010-11-15 15:24:47 +01:00
hjk
956b54289e debugger: make BreakpointData and BreakpointResult proper value types 2010-11-15 14:12:34 +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
hjk
2161e0f6d9 debugger: refactoring of the plugin interface
There's  some 'external' and some 'internal' part now. Other plugins
are only supposed the external interface.
2010-11-10 12:08:23 +01:00
Arvid Ephraim Picciani
5f75e5979e Asynchronous breakpoint handling 2010-11-09 12:36:37 +01:00
hjk
8e62715130 debugger: move logical ownership of breakhandler from engines to plugin 2010-11-04 09:55:05 +01:00
hjk
0afb34d5eb debugger: refactor breakpoint type, add function name to resolved jsbreakpoints 2010-10-29 14:31:16 +02:00
Arvid Ephraim Picciani
2a569ce073 Clean up BreakPoint
Reviewed-by: Friedemann Kleint
Reviewed-by: hjk
2010-10-29 11:29:37 +02:00
Friedemann Kleint
7d35c50aa5 Debugger[Breakpoints]: Do not trigger reinserting breakpoint unless changed.
Add a menu option to edit breakpoints to the locator/editor context menu.

Reviewed-by: hjk
2010-10-06 10:32:36 +02:00
Friedemann Kleint
d5596bf169 Debugger: Remove unused 'precise breakpoints' setting.
Remove break window menu action to toggle 'Full path'.
Remove gdb setting 'Use full path'.
Clean up break dialog:
- Set PathChooser::ExpectedKind before value (showed up in red).
- Use PathChooser::setPath()/path() instead of lineedit text
- Return thread spec
- Add validator for ignorecount as for breakcondition.ui
Remove unused fields from breakcondition.ui

Reviewed-by: hjk
Task-number: QTCREATORBUG-2593
2010-10-04 16:04:38 +02:00
hjk
02657cc51d debugger: compile fix, remove dangling #include 2010-09-28 16:54:04 +02:00
Friedemann Kleint
8d6f67f594 Debugger: List break on catch/throw as such and map names in engine.
Introduce special setting 'Stop on exception' for CDB.
Reviewed-by: hjk
2010-09-28 16:42:21 +02:00
hjk
d5319cf231 debugger: fix impossibility to remove a field in a breakpoint
Reviewed-by: Friedemann Kleint
2010-09-28 15:07:40 +02:00
hjk
7a38a43559 debugger: attempt to use Utils::PathChooser when changeing breakpoint file
names

Also remove the dead fields from breakcondition.ui

Reviewed-by: Friedemann Kleint
2010-09-28 14:47:30 +02:00
hjk
de8927837f debugger: remove unused break-by-function dialog 2010-09-28 13:15:42 +02:00
hjk
b8d5f256a0 debugger: add missing 'Use full path' toggle in recently added 'Add Breakpoints' dialog
Reviewed-by: Friedemann Kleint
2010-09-28 13:15:36 +02:00
hjk
718433d27e debugger: add a somewhat more generic breakpoint creation dialog 2010-09-21 16:33:14 +02:00
Friedemann Kleint
332889aec2 Debugger: Sanitize Datatypes, part 1: Breakpoints.
Make address a quint64, linnumber and ignoreCounts int.

Reviewed-by: hjk
2010-09-21 14:26:45 +02:00
dt
31e98bf448 Debugger: Fix en/disabling of "Delete All Breakpoints"
Reviewed-By: hjk
2010-09-14 17:32:08 +02:00
Alessandro Portale
3aa3c5688f Pedantic cleanup of filename parameters for QIcon constructor
Using more *::Constants::ICON_* where it makes sense and
wrapping the file names into QLatin1String where they were
missing.

The increased usage of the ICON constants needed a few more
cross plugin includes of *constants.h, here and there.
I think that it is OK, since the dependencies were alredy there
icon resource wise.
2010-07-30 22:17:14 +02:00
hjk
2bdf10ce10 debugger: reenable disabling of breakpoints in editor context menu 2010-06-25 17:38:25 +02:00
hjk
f3d38de913 debugger: fix breakpoint toggling of "moved" breakpoints 2010-06-25 17:38:25 +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
35bfbec797 debugger: refactor thread related class 2010-05-18 12:13:27 +02:00