Friedemann Kleint
d10b4edaab
Gdb/MingW: Fix interrupting inferior.
...
Prevent exec-continue by SIGTRAP-Handler.
Reviewed-by: hjk <qtc-committer@nokia.com >
2010-01-06 14:16:35 +01:00
hjk
e5abb34db3
debugger: fix watchers containing '$' (references to registers)
2010-01-06 12:53:37 +01:00
hjk
456abf4cbb
debugger: fix disassembler command (regression introduced in e3712f968)
2010-01-06 12:17:34 +01:00
hjk
e3712f9687
debugger: refactoring, use QByteArray instead of QString when appropriate
2010-01-05 18:13:24 +01:00
hjk
baa955d5ad
debugger: make python frame output 'Discardable'
2010-01-05 16:48:12 +01:00
hjk
11a300dd92
debugger: refactor passing of options to new dumpers
2010-01-05 16:48:11 +01:00
hjk
960f8dc03d
debugger: -break-list needs a stopped state to show new breakpoints in the gui
2010-01-05 16:48:11 +01:00
con
7185e42b25
Merge remote branch 'origin/1.3'
2010-01-05 10:58:06 +01:00
Oswald Buddenhagen
5fd1e3c454
properly decode messages from gdb
...
... using fromLocal8Bit instead of fromLatin1.
of course the localized messages pose a "challenge" for the various
workarounds which parse them ...
Task-number: QTCREATORBUG-504
2010-01-04 14:12:28 +01:00
hjk
9ad447b8a4
debugger: make gdb-6.8-symbianelf work
2010-01-04 13:16:46 +01:00
Erik Verbruggen
e600c0ddba
Fixed gdb/python usage on Mac (Snow Leopard).
...
Reviewed by: hjk
2009-12-14 12:11:48 +01:00
hjk
1324a1c600
debugger: gracefully handle commands that might not produce output
2009-12-11 18:00:37 +01:00
hjk
2548779d1f
debugger: Remove EmbedToken fglag for gdb commands.
...
The token is not needed anymore.
2009-12-11 18:00:36 +01:00
hjk
d0dfea5a8a
debugger: disable some warning, add FIXME
2009-12-10 16:58:54 +01:00
hjk
de23834fc9
debugger: move watchdog timeout initialization to a place where it
...
actually can access the stored settings.
2009-12-10 16:58:54 +01:00
hjk
33bdf42953
debugger: fix thinko in time out computation
2009-12-09 19:08:23 +01:00
hjk
bf077800b8
debugger: make watchdog timeout configurable
2009-12-09 17:41:59 +01:00
hjk
8c52f5720c
debugger: make use of full source file list optional
2009-12-09 13:52:12 +01:00
hjk
68bd4d2b95
debugger: refactor the dumper class to make it work with gdb 7.0
...
This is an attempt to make it work with released gdb 7.0. It uses some
ugly workarounds to compensate for the missing gdb.Block and gdb.Symbol
structures.
2009-12-09 13:51:17 +01:00
hjk
ecb0df0cb5
debugger: work on "watchers" for use with new dumpers
2009-12-04 17:08:35 +01:00
hjk
ef9db9cf79
debugger: make 'watch' item work with new dumpers
2009-12-04 13:22:59 +01:00
hjk
51644c91a6
debugger: enable locals&watchers update after timeout kicked in
2009-12-01 17:11:09 +01:00
con
85b6ee648c
Merge commit 'origin/1.3'
2009-11-30 18:23:13 +01:00
Friedemann Kleint
e87bd302da
Debugger: Protect reloadRegisters against early calls.
...
Check for correct state (InferiorStopped).
2009-11-30 16:45:15 +01:00
Oswald Buddenhagen
9c66c06820
mi parser: don't construct dummy tuples, but parse lists directly
2009-11-30 15:55:11 +01:00
hjk
36db421fce
debugger: make dumper exception passing configurable
2009-11-26 14:59:57 +01:00
Oswald Buddenhagen
913f6161a1
Merge remote branch 'origin/1.3'
...
Conflicts:
src/plugins/cpptools/cppcodecompletion.cpp
src/plugins/help/helpplugin.cpp
src/plugins/projectexplorer/projectexplorer.cpp
2009-11-20 17:25:39 +01:00
Daniel Molkentin
40518ac11c
gdb: On Windows, also substitute the debugging path for non-sdk Qt.
...
Reviewed-By: hjk
2009-11-19 19:45:14 +01:00
con
c718095c28
Merge commit 'origin/1.3'
...
Conflicts:
src/plugins/debugger/gdb/gdbengine.cpp
Reviewed-by: Oswald Buddenhagen
2009-11-16 11:35:47 +01:00
hjk
516af4b1b6
debugger: access preloaded dumpers also when stopped by a signal
2009-11-13 14:16:44 +01:00
Oswald Buddenhagen
0939a7f77f
don't track shared library events on gdb < 7, after all.
...
The problem is that the shlib events disturb bounded execution requests
and there is no way to recover from this - the debugger will effectively
turn "step over" into "continue". this is nicely explained in
http://vladimir_prus.blogspot.com/2007/12/debugger-stories-pending-breakpoints.html
2009-11-12 15:36:45 +01:00
hjk
79789d4feb
debugger: let dumpers override reported inames
2009-11-12 09:25:41 +01:00
con
43bccb41ed
Merge commit 'origin/1.3'
...
Conflicts:
src/plugins/debugger/debuggermanager.h
src/plugins/qmleditor/qmleditorplugin.cpp
src/plugins/qt4projectmanager/qt4runconfiguration.cpp
2009-11-11 16:14:29 +01:00
Oswald Buddenhagen
4d45ad0003
always clear pending command queue before posting shutdown commands
...
this ensures that, among other things, we won't get into this scenario:
- process is running
- interrupt is requested by user
- termination is requested by user
- before interrupt takes effect, the process terminates
=> shutdown is called
=> exit is also queued, as there is already a queued kill
=> nothing happens, as there will never be a stop response
Reviewed-by: hjk
2009-11-11 12:41:06 +01:00
Oswald Buddenhagen
5bd5fa63bf
be more lenient when matching the stops at _start
...
archer reports stops at tbreaks properly, so checking for an empty stop
reason is no particularly good idea. instead, we simply skip *all* stops
at the entry point, assuming the user will not really set a breakpoint
there anyway.
Reviewed-by: hjk
2009-11-11 11:42:12 +01:00
Jarek Kobus
4e4adc865a
Provide disambiguations for "unknown" string
2009-11-10 16:22:40 +01:00
Oswald Buddenhagen
cb4b139148
track shared library events even on gdb < 7
...
this is to update breakpoint, source and module lists automatically.
also remove the now pointless -break-list on every stop.
Reviewed-by: hjk
2009-11-10 13:02:34 +01:00
Oswald Buddenhagen
de9438df0c
clear pending stream outputs after handling stop response
...
any output will most definitely belong to later issued commands, so not
clearing it will only cost cpu or even confuse the evaluation.
Reviewed-by: hjk
2009-11-10 13:02:33 +01:00
Oswald Buddenhagen
5976b1ba43
actively try to obtain PID of non-pthread inferiors with gdb < 7 on linux
...
Reviewed-by: hjk
2009-11-10 13:02:33 +01:00
Oswald Buddenhagen
23e06304f8
further cleanups in less expected shutdown paths
...
Reviewed-by: hjk
2009-11-10 13:02:33 +01:00
hjk
fa2a115aa3
debugger: use 'set substitute-path'
2009-11-09 16:25:54 +01:00
con
36d0d8500e
Merge commit 'origin/1.3'
2009-11-09 11:36:19 +01:00
hjk
06570d8d7c
debugger: fix display of breakpoint markers in plugins
2009-11-06 10:15:19 +01:00
con
468b76fff2
Merge commit 'origin/1.3'
2009-11-05 19:00:23 +01:00
Oswald Buddenhagen
e4e0cadb97
a process scheduled for kill can exit by itself as well ...
2009-11-05 16:20:47 +01:00
con
c8bb7e174b
Merge commit 'origin/1.3'
...
Conflicts:
src/plugins/qt4projectmanager/qt4project.cpp
2009-11-04 19:15:14 +01:00
hjk
4ceabf26d4
debugger: fix issue where child items oeverwrite parent items in the watch model.
...
The real problems is somewhere in the watch model. This patch does
only prevent the wrong (and unneeded) questions to be asked in the first
place. It does not fix the wrong handling of the answer in the watch model.
Reviewed-by: Oswald Buddenhagen
2009-11-04 17:48:00 +01:00
hjk
256558d58e
debugger: make switching between debuggers easier for testing purposes
2009-11-04 14:39:48 +01:00
Oswald Buddenhagen
46a7ac5fb9
fix attaching to core
...
InferiorUnrunnable is equivalent to InferiorStopped as far as NeedsStop
commands are concerned.
Reviewed-by: hjk
2009-11-04 10:46:58 +01:00
Oswald Buddenhagen
0ae60ba412
add timeout handling for gdb commands
...
sometimes, commands simply don't return ...
the debug message doesn't say anything which couldn't be found in the
log already, but that way it is more convenient.
and we kill gdb to get creator back to a defined state.
Reviewed-by: hjk
2009-11-03 18:20:43 +01:00