Commit Graph

226 Commits

Author SHA1 Message Date
hjk
3f36dbd81a debugger: simplify code for inserting new watchitems 2010-07-23 18:20:13 +02:00
hjk
d27ec169d0 debugger: do not insert multiple "<Edit>" placeholders when creating new watch
items
2010-07-22 15:35:06 +02:00
hjk
6493b4853d debugger: adjust loading/saving of watched expressions to recent changes 2010-06-25 10:21:39 +02:00
hjk
eb75f40a98 debugger: allow per item selection of display method in Locals&Watchers 2010-06-25 09:16:55 +02:00
hjk
a25fd01a10 debugger: simplify handling of context menu actions of the Locals&Watchers view 2010-06-23 16:16:32 +02:00
hjk
ed2862acce debugger: remove special mechanism to update watcher and return window 2010-06-23 14:12:14 +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
4ff2881017 debugger: make watch and register items non-draggable 2010-06-07 10:41:15 +02:00
Friedemann Kleint
9af9c91f93 Debugger/WatchWindow: Add menu options to show pointed to addresses.
Change the WatchWindow handling to be based on quint64 addresses to
ensure proper function. Changed roles and added one role to the
watchmodel to obtain addresses and pointed-to addresses. Add some
fiddling to parse out addresses from debugger values.
Add menu options. Make sure only one watchpoint per address is added.
2010-05-19 17:34:47 +02:00
hjk
5c4b0f8866 debugger: fix resetting type formats in Locals and Watchers 2010-05-19 15:16:30 +02:00
hjk
c50dd85088 debugger: show return value of last function call in Locals and Watchers view
Works only with gdb/Python so far.
2010-05-19 12:00:56 +02:00
hjk
6bb7b6176f debugger: add a cut-down version of the dumpers for python 2010-04-27 15:33:23 +02:00
hjk
9a8ac49c2c debugger: new files for WatchData; move potentially shared code to watchutils.cpp 2010-04-27 15:33:22 +02:00
Robert Loehning
886088a1f3 Fixed debug view of QImage on Windows
Reviewed-by: hjk
2010-04-23 18:04:40 +02:00
Friedemann Kleint
02a9a46216 Debugger[CDB]: Fix watchers.
Task-number: QTCREATORBUG-1139
2010-04-15 11:57:14 +02:00
Friedemann Kleint
b2ddf72035 Debugger[cdb/gdb]: Fix formatting of integers/messages.
- Do not reformat boolean values (true,false) as hex/oct.
- char/unsigned char types (cdb/gdb): Chop off the quoted
  printable character output by the debugger, pass around integer
  only and append the character ourselves in the watchhandler,
  making reformatting as hex/octal work.
- cdb: Check format correctly (fix values output as plain integer).
- cdb: Kill needless warning produced by reformatting output of out-of-scope
  variables.
- cdb: Display exceptions in the status bar as non-intrusive crash notification.

Reviewed-by: hjk
2010-04-09 16:39:36 +02:00
hjk
59af793953 debugger: polish address display. also remove the mostly unused 'stored' address 2010-03-23 14:48:32 +01:00
hjk
41d400eb24 debugger: hide "watchers" part of Locals&Watchers if there aren't watchers 2010-03-22 13:41:42 +01:00
Friedemann Kleint
bbcacaf59f Header cleaning spree in Core/Debugger and Symbian/Maemo-code of Qt4. 2010-03-18 10:59:06 +01:00
hjk
72d90fd5ee debugger: merge multiple fancy views of the same object 2010-03-17 13:25:29 +01:00
hjk
f0300b9e79 debugger: display cosmetics 2010-03-17 13:04:06 +01:00
hjk
d80d68b73b debugger: base individual formats on object addresses, not on inames 2010-03-17 12:38:37 +01:00
hjk
4df33ec24c debugger: add manual test 2010-03-16 18:45:34 +01:00
hjk
e8936ad9d2 debugger: code cosmetics for custom displays 2010-03-16 12:08:33 +01:00
hjk
0cd06f55bc debugger: don't hard code typeformats except for ints and strings 2010-03-16 12:08:33 +01:00
hjk
a47fa969cd debugger: speed up QImage dumper 2010-03-15 14:56:55 +01:00
hjk
463ac5d689 debugger: start reviving graphical data display 2010-03-15 12:12:43 +01:00
hjk
c8a61cc8f2 debugger: implement selected of string encoding per pointer type/individual pointer 2010-03-11 18:56:28 +01:00
hjk
3999651fb9 debugger: remove irrelevant comment containing a reminder 2010-03-09 17:50:24 +01:00
hjk
dd7abf87a6 debugger: empty list of fetched variables at the end of the full cycle
The original logic was faulty but worked better in the presence of the
original "extra layoutChanged()" hack which is replaced now.
2010-03-09 17:50:24 +01:00
hjk
9033976a3a debugger: replace a workaround to update the [+] marker when items by a less intrusive one 2010-03-09 12:26:18 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
hjk
35eec621f7 debugger: clear list of expanded items when restarting 2010-02-25 17:56:46 +01:00
hjk
8a0ddf1b9f debugger: plug leak in watch model.
Brace for impact...
2010-02-17 17:08:02 +01:00
hjk
f9b6832edf debugger: code cosmetics 2010-02-11 14:36:26 +01:00
Kai Koehne
6c4b9ba227 Reapply unconnected changes from reverted commit
Only revert stuff that is linked to fast string concat.
2010-02-08 11:13:55 +01:00
Kai Koehne
999c73ad9d Revert "compile everything with QT_USE_FAST_CONCATENATION"
This reverts commit e70530c5ad. It
did break builds on older gcc versions (gcc 4.1.2 64 bit Linux,
gcc 4.0.1 on Mac OS X):

parser/qmljsgrammar_p.h: In static member function ???static int
QmlJSGrammar::nt_action(int, int)???:
parser/qmljsgrammar_p.h:188: error: ???QmlJSGrammar::<anonymous enum>???
is/uses anonymous type
parser/qmljsgrammar_p.h:188: error:   trying to instantiate
???template<class T> struct QConcatenable???
...
2010-02-08 10:56:50 +01:00
hjk
33695b8155 debugger: fix e539f5bda 2010-02-05 15:23:44 +01:00
Oswald Buddenhagen
e70530c5ad compile everything with QT_USE_FAST_CONCATENATION 2010-02-05 15:20:25 +01:00
hjk
c64b202a2c debugger: fix unneeded fetchMore() calls by removing a mis-placed beginCycle() 2010-02-04 13:28:51 +01:00
Friedemann Kleint
fc972e44ef CDB: Extract SymbolGroupContext class into Core library.
Split for testing/scripting purposes.
2010-02-04 13:20:37 +01:00
Friedemann Kleint
2fd8b2d7ff Fix some code scanning issues.
QString: Use QChar where appropriate.
2010-02-01 12:43:56 +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
a6ca348636 remove trailing whitespace
doing it in 1.3 as well to avoid possible later conflicts
2010-01-29 21:33:57 +01:00
con
24d592d8fa Merge remote branch 'origin/1.3'
Conflicts:
	src/plugins/bineditor/bineditorplugin.cpp
	src/plugins/coreplugin/editormanager/editormanager.cpp
	src/plugins/debugger/gdb/gdbengine.cpp
	src/plugins/debugger/watchhandler.cpp
2010-01-14 18:45:35 +01:00
Friedemann Kleint
55b4e6d383 Debugger/CDB: Increase limits on string size in watch data.
Introduce truncation in item view instead (full value visible in
ToolTip).

Reviewed-by: hjk
Task-number: QTCREATORBUG-305
2010-01-13 10:36:37 +01:00
Tobias Hunger
592e494d1a Fix typos
Reviewed-by: thorbjorn
2010-01-11 10:26:13 +01:00
hjk
9052bd279f debugger: fix editor tooltips for new dumpers 2010-01-08 18:17:02 +01:00
hjk
976b7b9e30 debugger: second attempt to write out pointer names 2010-01-07 14:41:37 +01:00
hjk
cf010f764a debugger: fix the last two commits 2010-01-06 18:01:19 +01:00