Commit Graph

130 Commits

Author SHA1 Message Date
Friedemann Kleint
e7cb7471c0 Debugger: Fix Action enabling, implement breakOnMain for CDB. 2011-05-04 15:40:15 +02:00
Friedemann Kleint
6bb08f1bf9 Debugger: Add setting for CDB console.
Task-number: QTCREATORBUG-4762
2011-05-04 09:40:51 +02:00
Friedemann Kleint
c5a40e9e63 Debugger[CDB]: Use file normalization function from utils.
Remove complicated/expensive function in dbgwinutils
in favour of the utils one (improved to upper case
the drive letter) as it is sufficient now with
the improved checking in editor manager/location mark.
2011-04-28 11:11:34 +02:00
Friedemann Kleint
5a75276fa0 Debugger: Use base class PID mechanism in CDB.
Fix base engine to raise app only in applicable modes.
2011-04-28 10:02:34 +02:00
Friedemann Kleint
2caf050dcd Compile fix. 2011-04-21 15:56:26 +02:00
Friedemann Kleint
c834720710 Debugger[CDB]: Interrupt to fetch memory if required. 2011-04-19 13:57:59 +02:00
con
5b02bf94a8 Merge remote branch 'origin/2.2'
Conflicts:
	qtcreator.pri
	src/plugins/debugger/breakhandler.cpp
	src/plugins/qt4projectmanager/qtversionmanager.cpp
2011-04-18 13:57:07 +02:00
Friedemann Kleint
26caedddf7 Debugger: Reduce log severity of locals errors.
Preventing the log view from popping up.

Task-number: QTCREATORBUG-4524
Reviewed-by: hjk
2011-04-18 11:51:44 +02:00
Oswald Buddenhagen
dc3c156cac Merge branch '2.2'
Conflicts:
	src/plugins/debugger/gdb/pythongdbengine.cpp
	src/plugins/qt4projectmanager/qt-desktop/qt4desktoptargetfactory.cpp
	src/plugins/qt4projectmanager/qt-desktop/qt4desktoptargetfactory.h
	src/plugins/qt4projectmanager/qt-desktop/qt4simulatortargetfactory.cpp
	src/plugins/qt4projectmanager/qt-desktop/qt4simulatortargetfactory.h
	src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigurations.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemoglobal.cpp
	src/plugins/qt4projectmanager/qt-maemo/qt4maemotargetfactory.cpp
	src/plugins/qt4projectmanager/qt-s60/qt4symbiantargetfactory.cpp
	src/plugins/qt4projectmanager/qt-s60/s60deploystep.cpp
	src/plugins/qt4projectmanager/qt4target.cpp
	src/plugins/qt4projectmanager/qt4target.h
	src/plugins/qt4projectmanager/qtoptionspage.h
	src/plugins/qt4projectmanager/qtversionmanager.cpp
	src/plugins/welcome/welcomemode.cpp
2011-04-14 12:39:31 +02:00
Friedemann Kleint
292119bb6a Debugger[CDB]: Use new disassembler structures.
Parse CDB's ASM output, set it up with source line.
Move convenience to add source lines into DisassemblerLines
(cached).
2011-04-13 13:56:53 +02:00
Friedemann Kleint
d146dd67f3 Debugger[CDB]: Fix assembly mode stepping.
Snapped back to source mode as the pending variable was not set.

Reviewed-by: hjk
2011-04-13 12:56:42 +02:00
hjk
8397663964 Update license. 2011-04-13 11:49:28 +02:00
hjk
82f3e788f6 debugger: re-work DisassemblerLine structure 2011-04-12 17:33:08 +02:00
Friedemann Kleint
28d5526459 Debugger[CDB]: Fix handling of shadowed variables.
Fix name formatting and algorithm to find uninitialized
variables to use reverse order in case locals of the same
name occur in a scope.

Reviewed-by: hjk
Task-number: QTCREATORBUG-4475
2011-04-12 11:57:57 +02:00
Friedemann Kleint
6cf2cf8605 Debugger: Fix warning, remove unused AttachTcf mode. 2011-04-08 16:04:53 +02:00
Friedemann Kleint
09a3615191 Debugger: Fix change-indication of registers.
Emit dataChanged() on changed values.
2011-04-06 14:07:09 +02:00
Bill King
5e372a165f Merge branch '2.2'
Conflicts:
	src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.cpp
	src/plugins/qt4projectmanager/qt-maemo/qt4maemotarget.cpp
	src/plugins/qt4projectmanager/qt-maemo/qt4maemotarget.h
2011-04-05 16:43:24 +02:00
Thorbjørn Lindeijer
add9dd288d Fixed value of DisassemblerCapability
Was the same as the ReloadModuleCapability.

Reviewed-by: Friedemann Kleint
2011-04-01 19:48:55 +02:00
con
1c2da511b9 Merge remote branch 'origin/2.2'
Conflicts:
	src/plugins/debugger/gdb/gdbengine.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemoglobal.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemoglobal.h
	src/plugins/qt4projectmanager/qt-maemo/qt4maemotargetfactory.cpp
	src/plugins/qt4projectmanager/qt-s60/rvcttoolchain.h
2011-04-01 09:53:09 +02:00
Olivier Goffart
720a86c9fc Compilation fixes with the QStringBuilder changes in Qt master
QStringBuilder also works with QByteArray now.
Which means some of the implicit conversions do not work anymore
2011-03-30 15:18:45 +02:00
Friedemann Kleint
77999ce204 Debugger[CDB]: Enable tooltips for class members of 'this'.
Look if 'this.x' exists if 'x' cannot be found as a local variable.
Enable filtering by nested names in tooltip treeview ('this.x').
2011-03-29 12:29:10 +02:00
hjk
7f6b529a48 debugger: Merge 'fork' and 'vfork' breakpoints
Reviewed-by: Friedemann Kleint
2011-03-29 09:59:19 +02:00
Friedemann Kleint
435b4608d9 Debugger[CDB]: Add a pretense to breakpoint conditions.
Add the infrastructure for checking on breakpoint conditions
on the QtCreator side (for conditions, bitfield watchpoints).
Have cdb evaluate breakpoint conditions as integer expressions.
2011-03-23 15:08:57 +01:00
Tobias Hunger
b2df065b56 Use distinct ABIs for MSVC versions
Use a distinct ABI OS flavor for each of the supported MSVC versions.

Task-number: QTCREATORBUG-4129
2011-03-21 15:46:42 +01:00
Friedemann Kleint
0ae94ffc4d Debugger[CDB]: Fix breakpoint context menu for CDB.
Immediately report known data back when settings breakpoints
so that line number/enabled is correct in the handler.
2011-03-16 13:39:58 +01:00
Friedemann Kleint
9771cdbf9d Debugger[CDB]: Fix warning about invalid breakpoint on 'step out'.
Do not display internal breakpoint id=10000.
2011-03-16 11:55:24 +01:00
Friedemann Kleint
53cbf5dfae Debugger[CDB]: Use standard shutdown path within QML/CPP debugging.
As the InferiorShutdown-State is required to synchronize the
engines.

Task-number: QTCREATORBUG-4026
Initial-patch-by: Kai Köhne <kai.koehne@nokia.com>
2011-03-14 11:43:33 +01:00
Friedemann Kleint
fcdbdcaee0 Debugger: New breakpoint types in CDB.
Emulate exec() by breaking on CreateProcessW().
2011-03-07 11:02:07 +01:00
Friedemann Kleint
82cf8b46bc Debugger[CDB]: Do path mapping in both directions.
For breakpoints and reported stacktraces. Make mapping more precise,
check for slashes.
2011-03-07 09:24:44 +01:00
Friedemann Kleint
f6ccdfb2cd Debugger[CDB]: Add source mapping in stack parser. 2011-03-04 17:29:15 +01:00
Friedemann Kleint
ae3115502c Debugger[CDB]: Suppress WOW86 exceptions while stepping. 2011-03-02 13:44:05 +01:00
Friedemann Kleint
fa4dc9ffa6 Debugger[CDB]: Fix run/jump to line for assembly code. 2011-03-01 16:47:02 +01:00
Friedemann Kleint
562265d58c Toolchains: Header cleanup. 2011-02-28 16:50:14 +01:00
Friedemann Kleint
e8d12ae464 Debugger[CDB]: Add memory editing.
Add infrastructure for custom special stops with data.
2011-02-28 14:34:42 +01:00
Friedemann Kleint
e5e202a96e Debugger[CDB]: Do not set empty environment for 'Start external'. 2011-02-28 11:48:33 +01:00
Friedemann Kleint
88f333267f Fix Krazy code scanning tool warnings (QString, loops, spelling). 2011-02-25 15:28:01 +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
047ee5522c Debugger: Improve configuration error reporting.
- Make showWarningWithOptions actually show the details.
- Show errors from multiple engines as separate messages.
- Remove 'enabled' option from CDB (handled by toolchain config now).
- Show ABI as tooltip in debbugger toolchain chooser.
2011-02-25 09:34:31 +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
a8ae618d75 toolchain: fix enum naming style
Reviewed-By: Tobias Hunger
2011-02-23 17:56:33 +01:00
Friedemann Kleint
fa6fbcc83b Debugger: Choose right binary for CDB/gdb. 2011-02-23 16:56:14 +01:00
Friedemann Kleint
6ac7efba15 Debugger: Move debugger executables configuration into toolchains. 2011-02-23 14:57:52 +01:00
hjk
5f38a26c9e debugger: fix 'Jump To/Run to' when in instruction-wise mode 2011-02-23 11:11:39 +01:00
Friedemann Kleint
ef78845474 Debugger[CDB]: Disable WowX86 breakpoints using 'sxn'. 2011-02-23 08:54:24 +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
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
Friedemann Kleint
0255cb639a Debugger[CDB]: Fix stepping.
Started out in assembly mode, regression introduced by
a9982cac70
(Debugger[CDB]: Enable engine restart)
2011-02-16 14:15:44 +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
Friedemann Kleint
170d64b016 Debugger[CDB]: Improve exit handling. 2011-02-08 13:00:08 +01:00