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
con
fa34847571
Merge commit 'origin/1.3'
...
Conflicts:
src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/qt4projectmanager/qt4project.cpp
2009-11-03 18:08:01 +01:00
Friedemann Kleint
a6d099a1ea
Debugger: Fix LD_PRELOAD on Mac.
...
Reviewed-by: hjk <qtc-committer@nokia.com >
2009-11-03 16:02:16 +01:00
Friedemann Kleint
10e07e01c7
Debugger: Use LD_PRELOAD to load debugging helper.
...
on UNIX. Either set the LD_PRELOAD environment variable
using a gdb command or have the TermGdbAdapter set the
variable for the debuggee. For the remote adapter,
switch on toolchain. dlopen() is a fallback for
platforms where it is not supported and attaching
to running processes. Fixes a crash with gdb 7.0
(and spurious gdb 6.8 crashes with dlopen()).
Reviewed-by: hjk <qtc-committer@nokia.com >
2009-11-03 14:06:21 +01:00
Oswald Buddenhagen
a4f2396323
fix shutdowns triggered while inferior is not stopped
...
Reviewed-by: hjk
2009-11-02 17:13:47 +01:00
Oswald Buddenhagen
e2d468312c
flush queued commands on non-fatal continuation failures
...
Reviewed-By: hjk
2009-11-02 17:13:46 +01:00
Oswald Buddenhagen
bf280e215b
synchronize temporary interruption with running-requests
...
Reviewed-by: hjk
2009-11-02 17:13:46 +01:00
Oswald Buddenhagen
e60a7bc69a
the process is already dead when hitting workaround 4
...
Reviewed-by: hjk
2009-11-02 17:13:46 +01:00
Oswald Buddenhagen
1520963cd6
filter out expected gdb stderr
...
Reviewed-By: hjk
2009-11-02 10:53:16 +01:00
con
98ded2e856
Merge commit 'origin/1.3'
2009-10-30 18:30:12 +01:00
Oswald Buddenhagen
151b785d01
terminal adapter: make skipping of initial SIGSTOPs more reliable
...
first, _start being resolvable depends on libc-dbg being installed.
second, depending on the frame being in the dynloader makes it
a) work only for dynamic executables and b) fail on multi-target
systems (due to a hard-coded file name).
so instead just remember the entry point, as we are already there
anyway.
Reviewed-By: hjk
2009-10-30 17:47:51 +01:00
Oswald Buddenhagen
6d6ed26eae
frames with debug info but without source cannot be navigated to
...
... - in the source view, that is. so grey them out in the stack view.
Reviewed-By: hjk
2009-10-30 17:47:51 +01:00
Oswald Buddenhagen
9d20a2abb4
make attaching adapters more robust
...
to make the behavior consistent across gdb versions, ignore the initial
*stopped which gdb7 delivers while attaching.
Reviewed-By: hjk
2009-10-30 17:47:51 +01:00
Oswald Buddenhagen
ff72733ccd
fix assertions relating to stack frames without a fullname
...
d'oh, of course, such frames *do* exist.
Reviewed-By: hjk
2009-10-30 17:47:51 +01:00
Oswald Buddenhagen
e6be1526f1
make fullname parsing on windows less optimistic
...
seems like gdb 6.8 isn't any better than 6.4 wrt file name
normalization.
Reviewed-By: hjk
2009-10-30 17:47:51 +01:00
con
3e81572b8a
Merge commit 'origin/1.3'
2009-10-30 17:22:01 +01:00
hjk
50961cb98d
debugger: list registers only after we have a known target
2009-10-30 16:46:33 +01:00
con
694ff222a1
Merge commit 'origin/1.3'
2009-10-29 18:57:19 +01:00
con
be3fafc311
Merge commit '2be0845c7492ad991f23ce5c90c322df788b62b5'
...
Conflicts:
src/plugins/projectexplorer/projectexplorer.h
src/plugins/qt4projectmanager/qt4projectconfigwidget.cpp
src/plugins/qt4projectmanager/qt4runconfiguration.cpp
src/plugins/qt4projectmanager/qtversionmanager.cpp
2009-10-29 18:54:17 +01:00
hjk
d0587eaf01
debugger: workaround for contradictory gdb messages
2009-10-29 18:34:31 +01:00
Oswald Buddenhagen
e903c4d9cd
reset program location when we detect "spontaneous running"
...
i.e., don't allow user to confuse himself :)
2009-10-29 15:34:01 +01:00
Oswald Buddenhagen
1e96c67915
fix substituent in error message
2009-10-29 15:34:01 +01:00
Oswald Buddenhagen
a3b52c5e03
gdb doesn't care for termination. just kill it.
2009-10-29 15:34:01 +01:00
Oswald Buddenhagen
3edcafedcd
less inefficient
2009-10-29 15:34:01 +01:00
Oswald Buddenhagen
5e29374f87
ignore inferiorStartFailed after adapterCrashed
...
technically, it would be cleaner to handle that in the adapters,
but it is a lot of duplicated code without any gain.
2009-10-29 15:34:01 +01:00
Oswald Buddenhagen
7713fc514b
do not post source & module list query commands too early
...
if the respective view is enabled, the manager will request the
initial update in some unholy state, probably AdapterStarting -
when gdb isn't up yet.
2009-10-29 15:34:01 +01:00
Oswald Buddenhagen
0c0925b69c
couple breakpoint listing with source listing
...
the assumption is that pending breakpoints will only be resolved when
the source list changes. consequently it is pointless to update just
one of them.
2009-10-29 15:34:00 +01:00
Oswald Buddenhagen
eee5e4b18b
integrate handleStop2 into handleStop1
...
there seems to be no reason for delaying the display because
of -break-list
2009-10-29 15:34:00 +01:00
Oswald Buddenhagen
76b2f9f28e
make sure that symgdb 6.4 "fullnames" are fully normalized
2009-10-29 15:34:00 +01:00
hjk
78be8e27de
debugger: fix fetching of base class information
2009-10-28 15:40:32 +01:00
hjk
e759a3a0d6
debugger: fix dumper breakage caused by 0ee09af6
2009-10-28 14:34:51 +01:00
hjk
fc2175b2a0
debugger: fix mac startup in the presence of unknown command
...
Apple gdb does not give any ^done or ^error for unknown command.
Work around by using -interpreter-exec console.
2009-10-28 12:00:18 +01:00
hjk
a1da606803
debugger: better protection from infinite loops due to broken dumpers in
...
synchroneous mode
2009-10-28 11:50:58 +01:00
Oswald Buddenhagen
0ee09af63a
eliminate handleDebuggingHelperValue1()
...
doesn't seem to serve any purpose at this time.
2009-10-27 20:21:59 +01:00
Oswald Buddenhagen
2fe4c0f293
call updateMarkers() from attemptBreakpointSynchronization()
...
and the latter is auto-tiggered by pretty much any breakpoint event.
this will kinda ensure that the markers are up-to date.
2009-10-27 20:21:59 +01:00
Oswald Buddenhagen
9b4e6512e0
protect against recursing into handleResponse
...
those pesky nested event loops ...
i pondered various other scenarios (in particular, the adapter or
gdb crashing while the nested loop is running), but did not discover
serious side effects of it, so i'm not trying to handle it specially.
2009-10-27 20:21:59 +01:00
Oswald Buddenhagen
3e72ecde72
fewer and better debug messages
2009-10-27 20:21:59 +01:00
con
68f193a189
Merge commit 'origin/1.3'
...
Conflicts:
src/plugins/debugger/gdb/gdbengine.cpp
Needed changes:
src/plugins/qt4projectmanager/qtversionmanager.cpp
2009-10-27 18:23:58 +01:00
hjk
097d1e4e6c
debugger: call beginCycle also for new dumpers
2009-10-27 17:38:41 +01:00
hjk
05e56fc1a3
debugger: prevent endless recursion due to broken dumpers
2009-10-27 16:36:23 +01:00
Friedemann Kleint
3fd1e5b23f
Debugger: Fix exit crash, dump QVariantList with gdb
...
Handle QVariantList within dumpers, as gdb does not resolve
typedefs. Disconnect the gdb process on exit, one more round
of event loop when quitting.
2009-10-27 09:51:14 +01:00
Oswald Buddenhagen
f244008a0f
don't translate debug messages
...
this isn't bullet-proof - integrated error messages are already
translated. but at least we know *where* the message comes from.
also, saves the translators from some pretty useless work.
2009-10-26 21:24:44 +01:00
Oswald Buddenhagen
293b49aecb
improve messages
2009-10-26 21:24:44 +01:00
con
441ece365a
Merge commit 'origin/1.3'
...
Conflicts:
src/plugins/cpptools/cppcodecompletion.h
src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/qmleditor/QmlEditor.pluginspec
2009-10-26 13:51:56 +01:00
Friedemann Kleint
93759263d0
S60/Debugger: Add Bluetooth starter to Debugger
...
- Remove old rfcomm process handler from TrkGdbAdapter, use
Bluetooth starter instead
- Synchronous connection, remove waitForTrkConnect()
- Move gdb start into Trk version answer, pass on
settings id hint
- Prevent exit crash triggered by signal gdbProcessFinished()
- Set DebuggerNotReady correctly on AdapterStartFailed when no
gdb is started yet
2009-10-26 11:55:02 +01:00
Oswald Buddenhagen
f1d5b3c70b
move setting of m_currentFrame to a somewhat useful place
...
specifically, we need it iff the user gets to see the stopped inferior
2009-10-23 23:02:16 +02:00
Oswald Buddenhagen
c07667a743
remove unreachable "stopped for unknown reason" fallback
...
seems to have been an artifact from an early version. it was
unreachable (gdb going wild notwithstanding), and would do
Strange Stuff (TM) if it ever were reached.
2009-10-23 23:02:16 +02:00