Commit Graph

143 Commits

Author SHA1 Message Date
Friedemann Kleint
a68aff709f Debugger[CDB]: Do not detach on shutdown in case of console.
Do not use effectiveStartMode in shutdown.

Change-Id: Ia300f511f335de4a7d9d7c07e2080cecc91042e4
Reviewed-on: http://codereview.qt.nokia.com/680
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-06-23 16:45:59 +02:00
hjk
41df1fb2d3 debugger: rewrite parser for cli sub-breakpoint notifications
Change-Id: I971a2af2534bc650e8c604a5c2dc2e1846dbb045
Reviewed-on: http://codereview.qt.nokia.com/592
Reviewed-by: hjk <qthjk@ovi.com>
2011-06-22 12:23:46 +02:00
hjk
d647a6002e debugger: display "sub-breakpoints"
<MULTIPLE> happens in constructors, inline functions, and
at other places like 'foreach' lines.

Change-Id: Ifb89b659d279f257ba8295b80a35d605820ec54b
Reviewed-on: http://codereview.qt.nokia.com/498
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: hjk <qthjk@ovi.com>
2011-06-20 11:34:22 +02:00
hjk
9e231e4407 debugger: fix expansion of object in gdb tooltips on first click
Change-Id: Ia157f8fb7f1b9ff8a8161c8a726d1d483b81e54f
Reviewed-on: http://codereview.qt.nokia.com/179
Reviewed-by: hjk <qthjk@ovi.com>
2011-05-27 12:22:06 +02:00
Friedemann Kleint
581765055d Debugger [CDB]: Enable Assignment to string classes.
Assign to QString/QByteArray following gdbmacros.py
implementation (call resize if required, copy data into buffer).

Assign to std::[w]string only it has sufficient memory
(since std::string<>.resize cannot be called).
2011-05-17 12:19:24 +02:00
Oswald Buddenhagen
fa0127bedd Merge remote-tracking branch 'origin/2.2'
Conflicts:
	src/plugins/debugger/breakhandler.cpp
	src/plugins/debugger/cdb/cdbengine.cpp
2011-05-16 17:32:23 +02:00
Friedemann Kleint
8da2c548f3 Debugger[CDB]: Fix console on Windows XP.
Attach to suspended application and doing resume manually
does not work. Use special options for console.

Reviewed-by: hjk
Tested-by: Alessandro Portale <alessandro.portale@nokia.com>
2011-05-16 12:32:51 +02:00
Oswald Buddenhagen
cfb232eba9 ConsoleProcess: undo pointless processError() => processMessage(bool error) change 2011-05-12 20:39:44 +02:00
Friedemann Kleint
b6d0f3f432 Debugger[CDB]: Correct breakpoint locations in source files.
Skip comments, move to end of multi-line statements and
other things.

Initial-patch-by: Erik Verbruggen <erik.verbruggen@nokia.com>
2011-05-09 17:02:46 +02:00
Thorbjørn Lindeijer
a547aee827 Introduced capabilities for OperateByInstruction and RunToLine
The ScriptEngine does not support these actions, so make sure they are
disabled in the debugger menu.

Reviewed-by: hjk
Task-number: QTCREATORBUG-2749
2011-05-09 13:13:14 +02:00
Friedemann Kleint
a05e5da60f Compiler warnings. 2011-05-09 09:49:42 +02:00
hjk
c620749b95 debugger: introduce watchpoint-by-expression 2011-05-09 09:04:55 +02:00
Tobias Hunger
aa2acec14c Fix/add copyright headers
Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
2011-05-06 15:17:05 +02:00
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