Commit Graph

58 Commits

Author SHA1 Message Date
hjk
93cbef8724 long live the king 2009-08-14 09:30:56 +02:00
hjk
abdc85f070 debugger: register view cosmetics
Show the current number base in the view.
2009-08-13 16:16:19 +02:00
Friedemann Kleint
894febbadf Debugger: Make use of the "displayedtype" attribute.
Fix "displayedtype" in CDB, display it elsewhere.
Log debugger settings in DebuggerManager startup.
Acked-by: hjk <qtc-committer@nokia.com>
2009-08-12 11:21:44 +02:00
Friedemann Kleint
c1ddd71472 CDB: Start up correctly if no working directory is specified. 2009-07-28 09:10:12 +02:00
Friedemann Kleint
b41d3a45ad CDB: Added option for verbose symbol loading, fixed image path.
Do not add all image paths (from different projects), keep a
base path and add current.
2009-07-27 15:32:46 +02:00
Friedemann Kleint
8b8bf42fbb CDB: Fixed thread handling, added dumping of string types in case of crashes. 2009-07-24 16:05:46 +02:00
dt
54bbcc4a7c Mention possible locations of the debugging helper in the error dialog
Requires a lot of trivial forwarding.
2009-07-15 17:41:45 +02:00
hjk
ad46f1286f Revert "Enabled the use of Debugger-specific watch/locals models."
This reverts commit abf5e3ddc3.
2009-07-13 09:11:07 +02:00
Friedemann Kleint
abf5e3ddc3 Enabled the use of Debugger-specific watch/locals models.
- Modified WatchModel to handle storage of an hierarchy
  of WatchItems.
- Factored out code for asynchronous population to
  AsyncWatchModel and added a mixin for convenient
  handling
- Added base class for synchronous models.
- Implement simple, synchronous models for CDB, greatly
  simplifying code and finally getting manual
  expansion right.
Signed-off-by: hjk <qtc-committer@nokia.com>
2009-07-10 14:36:28 +02:00
Friedemann Kleint
e8dafc28a5 Improve error logging of CDB breakpoint setting.
Output warnings to debugger log. Prevent breakpoints from
being set several times when loading session data by
clearing the complete break handler.
Reviewed-by: hjk <qtc-committer@nokia.com>
2009-06-30 15:50:56 +02:00
Friedemann Kleint
bdfd71661c Replace int WatchData::childCount by bool ...hasChildren in Debugger.
...making engine implementations easier.
Acked-by: hjk <qtc-committer@nokia.com>
2009-06-22 11:35:08 +02:00
Friedemann Kleint
a360c65e4d Made CDB use colored output and add LogWarning. 2009-06-19 12:47:23 +02:00
Friedemann Kleint
aed9367960 Prevent CDB engine from being started several times. 2009-06-19 11:07:38 +02:00
Friedemann Kleint
44d02a652b Further cleanup of watch code, do not evaluate "<Edit>" watcher. 2009-06-18 10:34:53 +02:00
Friedemann Kleint
24cf802a58 Compile new watch model for CDB. 2009-06-17 17:34:48 +02:00
Jason McDonald
884b7af769 Update license headers and sales contact details.
Reviewed-by: Trust Me
2009-06-17 00:01:27 +10:00
Friedemann Kleint
e242929d35 Finish Debugger session properly, releasing all files. 2009-06-15 16:30:52 +02:00
axasia
8d53cb0fb4 Fix compile error on MSVC2008 Express Edition with Debugging Tools for Windows(CDB).
Following implicit cast occurred error C2664 from cl compiler.
 (const WCHAR *) => (const ushort *)
 (const ushort *) => (PCWSTR)
So fixed by using a explicit cast which reinterpret_cast.
2009-05-30 23:03:43 +09:00
Friedemann Kleint
09380afe90 Get attaching to a crashed Windows process right (CDB).
Handle  the 2nd parameter correctly as a event id
to be used for a handshake. Introduce a special mode
when attaching to crashed processes.
Code cleanup, pass StartParameters along to startDebugger.
2009-05-26 16:27:24 +02:00
Friedemann Kleint
c4a0abcda7 Enabled passing on PIDs from the command line to the debugger.
Introduced struct DebuggerStartParameters to pass around
start parameters, removing the need for the engines to
access private members of DebuggerManager. Pass it
to DebuggerManager::startNewDebugger() and move
the GUI parts of that function into DebuggerPlugin,
making it possible to create the struct from command line
parameters. Introduce command line parsing with a few more
-enable-xx options. Introduce warning() to debugger panel
in the CDB engine.

On this occasion, clean out a few trailing whitespaces.
2009-05-25 16:22:11 +02:00
Friedemann Kleint
65a179da14 A bit of QA testing of CDB.
Handle functions with 0 variables correctly in the stack view.
Give names to unnamed formal parameters (causing WatchData
warnings). Ignore exception 06ba.
2009-05-20 14:20:38 +02:00
Friedemann Kleint
0e3aa47fcd Added ToolTip support for CDB.
Make debugger tooltip API more general, have the engines check the
correct file type, figure out the expression and context from the text
editor.

Put common functionality in watchutils.cpp. In the CDB engine, check
whether a tooltip expression is a known variable within the stack frame
context. If so, retrieve via symbol group or dumpers. Cache by function
and expression.
Reviewed-by: hjk <qtc-committer@nokia.com>
2009-05-14 14:29:37 +02:00
Friedemann Kleint
36a94b69b1 Added Detaching to CDB. 2009-05-11 16:54:35 +02:00
Friedemann Kleint
aa8548d37e Added Cdb Debugger path options (including symbol server).
Made pathlisteditor use a toolbutton menu as it looks too
much of a "button desert" otherwise.
2009-05-08 16:56:48 +02:00
Friedemann Kleint
14e39ba5af Fixed translation issues. 2009-05-07 15:34:52 +02:00
Friedemann Kleint
e0de01190f Started Console process handling for CDB.
Introduced "Suspend" mode for the process stub and corresponding
mode enumeration in console process (Windows).
2009-05-06 14:26:20 +02:00
hjk
4381b9d244 debugger: introduce a "NoEngine" option 2009-05-06 10:13:36 +02:00
Friedemann Kleint
eb63bebc3e Introduced shared library injection as dumper load method.
Try to load custom dumpers using shared library injection
first as it is faster and does not rely on the symbol
for LoadLibrary being known to the debugger. Keep
call loading as fallback. Move the rest of the initalization
to the first dumper call, removing the need to break at main().
2009-05-05 09:52:24 +02:00
Friedemann Kleint
72a183777e Initial work on dumpers for CDB.
Add dumper calls, parser etc. Catch crashes
in the dumper functions.
2009-04-29 14:15:09 +02:00
Friedemann Kleint
52915776cd Make CDB load custom dumpers.
Load in a 'well-defined' (temporary) breakpoint
at main().
2009-04-22 17:28:26 +02:00
Friedemann Kleint
471d31ac9c CDB refactoring, introduce typedefs to remove version numbers.
Log exceptions with stacktrace.
2009-04-21 12:30:12 +02:00
Friedemann Kleint
3695ee3646 Start on dumper support for CDB, bug fixes.
Make command execution output shown, use Wide version
of Debug Callbacks and output, provide bases classes
for other output and event handlers, move common
dumper functionality into debugger manager.
2009-04-20 16:40:50 +02:00
Friedemann Kleint
e76943ebb5 Load required dependency lib "dbghelp.dll" manually. 2009-04-17 10:13:41 +02:00
Friedemann Kleint
7d41e04884 Split apart debugger options pages, allow specifying a path to CDB.
Modify engine creation funcs to populate a list of option pages
to be able to handle engine enabling independently of the
actual engine creation.
2009-04-17 09:03:32 +02:00
Friedemann Kleint
2f115bebd7 Fix previous commit. 2009-04-15 12:04:27 +02:00
Friedemann Kleint
d11242feba Make break by function work for CDB.
Add function to automagically resolve function symbol names
that are missing the module name (module!foo). Kill some
trailing whitespace. Add a hack to transform qMain->main for VS.
2009-04-15 10:05:40 +02:00
Friedemann Kleint
d4ccc16f9f Implement disassembler for cdb.
Filter debugging output correctly, some glitches. Extract
base class for debugging output to be able to intercept
debugging output for other purposes (such as disassembling).
2009-04-14 15:04:19 +02:00
Friedemann Kleint
6d4d19dfa8 Handle various CDB output windows.
Add modules, threads and register view. Refactor register format code.
2009-04-09 16:51:13 +02:00
Friedemann Kleint
3d55c45e2c Continued CDB breakpoint handling.
Enable temporarily stopping for setting breakpoints. Fix terminating the
debuggee in exitDebugger().
2009-04-08 16:37:41 +02:00
Friedemann Kleint
d199d6606e Continue CDB.
Improve locals handling, add watcher handling via expressions. Make
debug marker appear, start with breakpoint synchronization.
2009-04-07 17:07:11 +02:00
Friedemann Kleint
e346fea6bc Activate CDB. Simplify locals display of CDB, make it possible to assign simple values.
Do automatically expand first level (only on request), recurse only in completeModel.
2009-04-03 16:42:02 +02:00
Friedemann Kleint
b3f620e514 Add expanding of symbols. 2009-03-27 17:19:39 +01:00
Friedemann Kleint
536320ea1a Start stack frame context/symbol group classes for CDB 2009-03-26 16:49:28 +01:00
Friedemann Kleint
9d15bd3c7f Introduce utility routine to create placeholder watch item
QLatin1String refactorings.
2009-03-25 17:33:49 +01:00
Friedemann Kleint
ad5a001058 Factor out common debugger watch functionality
Factor out watch function, improve debug output.
2009-03-25 13:42:47 +01:00
hjk
da1492cf28 debugger: start action handling refactoring 2009-03-18 09:03:47 +01:00
hjk
cc89dcc75b debugger: make "Use Dumpers" a pool action 2009-03-17 17:06:39 +01:00
Friedemann Kleint
04a15daab7 Fixes: Compilation/start on handling console processes. 2009-03-17 16:54:35 +01:00
Friedemann Kleint
c83782043a Attach properly, first glimpse of symbols. 2009-03-06 17:10:23 +01:00
Friedemann Kleint
355f44fe8f Fixes: Error logging, polish attach remote dialog 2009-03-05 17:30:29 +01:00