Commit Graph

734 Commits

Author SHA1 Message Date
Pawel Polanski
a2ec23c0e9 GDB: Handle ill engine's situation 2011-03-21 16:38:37 +01:00
hjk
634bcc88ad debugger: intercept calls to qFatal
On Windows that might kill the inferior even if we only want to
examine data.

Task-number: QTCREATORBUG-4145
2011-03-21 15:05:50 +01:00
Friedemann Kleint
8ff480881a Debugger: Always add Qt install source mappings for gdb.
As it fails for MinGW.

Task-number: QTCREATORBUG-4132
Reviewed-by: hjk
2011-03-18 10:03:08 +01:00
Tobias Hunger
429ed63f5d Fix spelling of tool chain is user-visible strings and comments 2011-03-16 18:01:52 +01:00
hjk
510222e9c6 debugger: mention changed values in the status bar on watchpoint hit 2011-03-04 19:49:03 +01:00
hjk
822bbff157 debugger: add possibility to break on fork, vfork, exec, syscall 2011-03-04 19:26:11 +01:00
hjk
486c1ddb18 debugger: fix fallback path to the CLI break
The filenames have to be quoted differently.
2011-03-04 18:09:59 +01:00
Friedemann Kleint
2d9de93361 Debugger: Add a flexible widget for source path substitutions.
Add a new widget to edit the mappings. Rework common options
page to use the standard pattern to allow for complex data types,
introduce GlobalOptions class.
2011-03-04 16:24:54 +01:00
hjk
e7121d50d7 debugger: polish breakpoint locations
Task-number: QTCREATORBUG-3912
2011-03-02 13:38:03 +01:00
Friedemann Kleint
d99b0e8a84 Debugger: Remove leftover qDebug.
Fix 5ddf7d3c40
2011-03-01 10:00:43 +01:00
Friedemann Kleint
5ddf7d3c40 Symbian: Fix CODA shutdown after debuggee crash. 2011-03-01 09:58:00 +01:00
Friedemann Kleint
562265d58c Toolchains: Header cleanup. 2011-02-28 16:50:14 +01:00
Friedemann Kleint
88f333267f Fix Krazy code scanning tool warnings (QString, loops, spelling). 2011-02-25 15:28:01 +01:00
hjk
f125b57163 debugger: work on writable memory view 2011-02-25 14:30:38 +01:00
Friedemann Kleint
14d590590f Debugger: Use Startparameters.debuggerCommand for command.
Use in both engines preferred over ABI if it is compatible.
Report start parameters. Introduce gdb configuration check.
2011-02-25 13:43:06 +01:00
Friedemann Kleint
75f4b9cf25 Debugger: Add toolchain combos to start dialogs, refactor detection.
Add combo box listing toolchains with debuggers to start external,
attach and core.
Another attempt at streamlining engine detection:
Split in detection functions that first collect a list of
available engines by preference, then remove disabled and
wrongly configured engines and use the remaining best.
matching. checkconfiguration is now the central place where
engine detection and config check takes place.

Rubber-stamped-by: hjk
2011-02-24 16:50:15 +01:00
hjk
65ff34f315 debugger: add C:/ndk_buildrepos/qt-desktop/src as possible source location
The whole approach is broken.

Task-number: QTCREATORBUG-3804
2011-02-24 14:30:51 +01:00
hjk
0e9a2c1390 debugger: hard-code "Display" and "Normal" as translatable
Task-number: QTCREATORBUG-3747
2011-02-24 14:27:48 +01:00
hjk
a8ae618d75 toolchain: fix enum naming style
Reviewed-By: Tobias Hunger
2011-02-23 17:56:33 +01:00
hjk
3331aea7da debugger: make qt source path configurable 2011-02-23 17:56:21 +01:00
hjk
2e59bc9a66 fix a few krazy warnings 2011-02-23 17:38:26 +01:00
Kai Koehne
1a3ed101cb QmlDebug: Parse application output to track debugees state
Setting up the debugger connection might fail for a couple of reasons.
Check the application output to show the user a more detailed error
message.

Reviewed-by: hjk
2011-02-23 17:02:34 +01:00
Friedemann Kleint
fa6fbcc83b Debugger: Choose right binary for CDB/gdb. 2011-02-23 16:56:14 +01:00
hjk
f17bb48c7d debugger: fix spelling 2011-02-23 15:15:20 +01:00
hjk
66896e1908 debugger: more verbose status message on sigsegv even if messagebox was disabled 2011-02-23 11:28:20 +01:00
hjk
5f38a26c9e debugger: fix 'Jump To/Run to' when in instruction-wise mode 2011-02-23 11:11:39 +01:00
hjk
3fcf39a764 debugger: finish moving of binary setting 2011-02-22 13:23:37 +01:00
hjk
bd44fb1248 debugger: move gdb binary list to common options page (unfinished) 2011-02-22 12:59:12 +01:00
Tobias Hunger
8d0c477245 ToolChain: Refactor toolchain support
Refactor ToolChains in Qt Creator:

 * Allow for several toolchains of the same type
 * Be smarter wrt. guessing what kind of output a toolchain
   produces. This allows us to eventually handle e.g. embedded
   linux setups way better than before.
 * Be smarter wrt. guessing what kind of environment a Qt version
   needs.
 * Improve auto-detection of toolchains a bit
 * Decide on which debugger to use based on the kind of output
   produced by the compiler.
 * Add options page to configure toolchains
 * Remove toolchain related options from the Qt version dialog

Reviewed-by: dt
2011-02-21 18:33:23 +01:00
Friedemann Kleint
cbafc50acc Debugger: Make tooltips use standard text editor tooltips.
Extend text editor tooltips by a 'widget content', making
it possible to show any widget utilizing the fact that the
QTipLabel actually is a frame (and thus a container).
Introduce concept of 'interactive' tooltips and modify
the tooltip-closing mechanism such that simple interaction
is possible. Emit the base text editor's tooltip signals
with the correct position and add API to calculate the tooltip
position from the cursor position.
Add API for pinning tooltips to the text editor (by removing
them from the QTipLabel layout).
Modify the Debugger's tooltipmanager not to manage tooltips
under TextEditor control and to take over control only once
tooltips are pinned.

Rubber-stamped-by: Leandro T. C. Melo <leandro.melo@nokia.com>
2011-02-21 16:51:00 +01:00
Friedemann Kleint
43c980e6a3 Debugger: Make tracepoints a capability. 2011-02-21 13:20:16 +01:00
hjk
59212b6654 debugger: better formatting of assembler lines 2011-02-17 14:13:04 +01:00
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
Friedemann Kleint
c74da9b7c5 Debugger: Reduce tooltip flicker.
Move tooltip-request handling from DebuggerPlugin into
DebuggerToolTipManager.

Request tooltip only if position changed and close
standard tooltip on success.
2011-02-17 10:11:23 +01:00
hjk
0b662609a0 debugger: replace action(ExecuteCommand) be a direct function call 2011-02-16 13:07:16 +01:00
Friedemann Kleint
f37d9b55aa L10n: First round of tr()-Fixes for 2.2 2011-02-14 16:37:20 +01:00
Friedemann Kleint
0ac879e39f Debugger: Make tooltips pinnable.
Replace old debugger tooltip by a new ToolTipManager which
has a list of AbstractDebuggerToolTipWidget with the functionality
to 'acquire' an engine (display its data) and 'release' it
(store engine data and display them as 'previous') and serialization
to XML session data.
DebuggerTreeViewToolTipWidget implements AbstractDebuggerToolTipWidget
for tree model acting as  a filter on watch models.

Rubber-stamped-by: hjk
2011-02-11 15:09:02 +01:00
hjk
37686e6a15 debugger: rework logic for chain of disassembler fallbacks.
Old logic was too fragile to maintain.
Now it's  PointMixed -> PointPlain -> RangeMixed -> RangePlain.
2011-02-10 13:44:40 +01:00
Pawel Polanski
532a8ad2e7 Symbian: tcftrk renamed to Coda 2011-02-07 15:38:11 +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
hjk
62ece8f892 debugger: automatically update breakpoints after manually loading symbols 2011-02-04 15:33:21 +01:00
Kai Koehne
211553768f Debugger: Make error warning a real sentence.
Separate the two warnings by a '. '.
2011-02-04 13:42:01 +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
hjk
d27430f52a debugger: some infrastructure for gdb's target-async 2011-02-03 16:49:58 +01:00
Pawel Polanski
440bba257a Symbian: Added a serial connection type to CODA 2011-01-31 11:34:05 +01:00
Friedemann Kleint
725182916f Debugger: Add to API documentation.
Reviewed-by: hjk
2011-01-26 17:22:25 +01:00
hjk
c3ff7fa73d debugger: switch do fkleint's style of debug output enabling 2011-01-25 10:59:45 +01:00
hjk
9ccc10fa30 debugger: put the current dir into the log and make sure that auto-asolib-add is set 2011-01-25 10:47:18 +01:00
hjk
b9a06c42eb debugger: more work on Qml -> C++ -> Qml "cross stepping" 2011-01-24 13:39:09 +01:00
Friedemann Kleint
8652b17515 Debugger[gdb]: Improve reporting of Windows exceptions.
Particularly affecting Windows DLL loading, which was previously
suppressed.

Reviewed-by: hjk
Task-number: QTCREATORBUG-3470
2011-01-21 16:46:01 +01:00