Commit Graph

239 Commits

Author SHA1 Message Date
hjk
62f40474a6 debugger: work on gdbserver based remote debugging
Works only with Archer, possibly gdb head.  It attaches now, sets breakpoints,
steps etc but cannot be stopped when running.
2009-05-06 09:45:31 +02:00
Oswald Buddenhagen
192c0e7423 document dumper output parsing hack 2009-05-05 21:00:24 +02:00
Oswald Buddenhagen
b590b6adc1 fix (rather theoretical) off-by-one 2009-05-05 21:00:24 +02:00
Oswald Buddenhagen
57a93374cd add some C escaping to relevant MI commands 2009-05-05 21:00:24 +02:00
hjk
b373242aca debugger: use current run configuration to read symbols for gdbserver 2009-05-05 17:50:35 +02:00
Oswald Buddenhagen
24c8b0a23b whoops ... don't multiply debugger output in the display pane 2009-05-05 11:44:29 +02:00
hjk
926039cd7b debugger: remove recently introduced macro "overloads" alltogether 2009-05-05 11:18:34 +02:00
Friedemann Kleint
d071d2af36 Compile on Windows 2009-05-05 11:02:20 +02:00
hjk
3f1afb560c debugger: move macros implementation from gdbengine.h to gdbengine.cpp 2009-05-05 10:38:19 +02:00
Oswald Buddenhagen
04f6b3d807 fix encoding of manually submitted gdb commands
these can potentially contain file names ...
2009-05-05 10:31:06 +02:00
Oswald Buddenhagen
69ace70236 the death of GdbCommandType & co.
instead of passing callback codes and dispatching them in a huge switch
statement, pass around member function pointers as real callbacks.
some codes which did not actually invoke a callback were completely
eliminated. hope this doesn't impair debugging. ;)
as a "side effect", command categorization by code is gone - there is a
proper flag field for that now.
as a real side effect, some suppressed assert failures might be back
now. fix them properly if they do ...
2009-05-05 10:31:06 +02:00
Oswald Buddenhagen
58c88eea82 don't construct cookie object unnecessarily 2009-05-05 10:31:06 +02:00
Oswald Buddenhagen
4917691e79 micro-optimization 2009-05-05 10:31:06 +02:00
Oswald Buddenhagen
6823cecba5 don't use macros for the Latin1* magic
use typedefs and an inline function instead. that's namespace-safe and
does not produce unhelpful messages when closing parens are missing.
2009-05-05 10:31:06 +02:00
Oswald Buddenhagen
5ac81459fa nicer 2009-05-05 10:31:06 +02:00
hjk
b2598d0030 debugger: initial work on remote debugging 2009-05-04 14:48:06 +02:00
con
9adb6855c3 Compile on Mac. 2009-05-04 09:14:59 +02:00
Friedemann Kleint
e0de78f04d Compile on Windows. 2009-05-04 08:19:56 +02:00
Oswald Buddenhagen
9937ef8ea2 disable unused jump-to-line handler 2009-04-30 22:49:01 +02:00
Oswald Buddenhagen
f6bf2e9745 simplify conditions 2009-04-30 22:49:01 +02:00
Oswald Buddenhagen
3e01e57345 translatability improvements 2009-04-30 22:49:01 +02:00
Oswald Buddenhagen
a799be539b encoding cleanup
added *lots* of missing QLatin1*(). to avoid making the code too
unreadable i added the macros _(), __() and _c().
also added local8Bit conversions for everything which might contain
file names.
2009-04-30 22:48:58 +02:00
Oswald Buddenhagen
78d09e7868 disable pwd querying code, as it is unused and broken. 2009-04-30 22:03:10 +02:00
hjk
14321e675d debugger: add dumper for QWeakPointer 2009-04-29 17:48:04 +02:00
Friedemann Kleint
1c56388945 Make dumpers output size information. 2009-04-29 16:52:14 +02:00
Friedemann Kleint
72a183777e Initial work on dumpers for CDB.
Add dumper calls, parser etc. Catch crashes
in the dumper functions.
2009-04-29 14:15:09 +02:00
hjk
8f60a84dc0 debugger: create some noise in the status bar when libraries are loaded
and unloaded.
2009-04-29 10:33:37 +02:00
hjk
d37a2d3aad debugger: introduce enabling/disabling of breakpoints 2009-04-28 15:09:23 +02:00
Friedemann Kleint
52915776cd Make CDB load custom dumpers.
Load in a 'well-defined' (temporary) breakpoint
at main().
2009-04-22 17:28:26 +02:00
con
23d0cb3180 Merge commit 'origin/1.1'
Conflicts:
	doc/qtcreator.qdoc
	doc/qtcreator.qdocconf
	src/app/Info.plist
	src/plugins/bineditor/BinEditor.pluginspec
	src/plugins/bookmarks/Bookmarks.pluginspec
	src/plugins/cmakeprojectmanager/CMakeProjectManager.pluginspec
	src/plugins/coreplugin/Core.pluginspec
	src/plugins/coreplugin/coreconstants.h
	src/plugins/cpaster/CodePaster.pluginspec
	src/plugins/cppeditor/CppEditor.pluginspec
	src/plugins/cpptools/CppTools.pluginspec
	src/plugins/debugger/Debugger.pluginspec
	src/plugins/debugger/gdbengine.cpp
	src/plugins/designer/Designer.pluginspec
	src/plugins/fakevim/FakeVim.pluginspec
	src/plugins/find/Find.pluginspec
	src/plugins/genericprojectmanager/GenericProjectManager.pluginspec
	src/plugins/git/ScmGit.pluginspec
	src/plugins/helloworld/HelloWorld.pluginspec
	src/plugins/help/Help.pluginspec
	src/plugins/perforce/Perforce.pluginspec
	src/plugins/projectexplorer/ProjectExplorer.pluginspec
	src/plugins/qt4projectmanager/Qt4ProjectManager.pluginspec
	src/plugins/qtscripteditor/QtScriptEditor.pluginspec
	src/plugins/quickopen/QuickOpen.pluginspec
	src/plugins/regexp/RegExp.pluginspec
	src/plugins/resourceeditor/ResourceEditor.pluginspec
	src/plugins/snippets/Snippets.pluginspec
	src/plugins/subversion/Subversion.pluginspec
	src/plugins/texteditor/TextEditor.pluginspec
	src/plugins/vcsbase/VCSBase.pluginspec
2009-04-21 17:50:31 +02:00
con
35218bbe20 Add missing type information into gdb calls.
The missing type information lead to non-relocatable debugging helpers
on the Mac.

Reviewed-by: Oswald Buddenhagen
2009-04-21 16:13:13 +02:00
hjk
e0f7b845aa debugger: use & in "p (char*)&qDumpOutBuffer". This improves the
situation in release builds a bit as we get at least a list of
(afterwards failing) dumpers.
(cherry picked from commit 01284f2160)
2009-04-21 16:05:51 +02:00
Oswald Buddenhagen
6d5eeb7afb add missing tr()s, etc., add some //: comments 2009-04-20 16:51:10 +02:00
Friedemann Kleint
3695ee3646 Start on dumper support for CDB, bug fixes.
Make command execution output shown, use Wide version
of Debug Callbacks and output, provide bases classes
for other output and event handlers, move common
dumper functionality into debugger manager.
2009-04-20 16:40:50 +02:00
hjk
01284f2160 debugger: use & in "p (char*)&qDumpOutBuffer". This improves the
situation in release builds a bit as we get at least a list of
(afterwards failing) dumpers.
2009-04-17 15:35:28 +02:00
con
412a4b027d Merge commit 'origin/1.1'
Conflicts:
	src/plugins/debugger/debuggeractions.cpp
	src/plugins/debugger/gdboptionpage.ui
2009-04-17 15:17:31 +02:00
Friedemann Kleint
7d41e04884 Split apart debugger options pages, allow specifying a path to CDB.
Modify engine creation funcs to populate a list of option pages
to be able to handle engine enabling independently of the
actual engine creation.
2009-04-17 09:03:32 +02:00
hjk
39bf47f7ae debugger: fix message on debugger exit 2009-04-16 15:06:31 +02:00
hjk
e2ef47bcff debugger: prevent endless loop when contructor breakpoints are located
in inaccessible files
2009-04-16 14:42:45 +02:00
hjk
40700c9dd7 debugger: add an autotest for the regexp used for paring 'info break' output 2009-04-16 12:52:29 +02:00
Thorbjørn Lindeijer
bc89f5dc4f Merge branch '1.1'
Conflicts:
	src/plugins/debugger/debuggeractions.cpp

Reviewed-by: hjk
2009-04-16 11:32:05 +02:00
hjk
5cb0a3cb72 debugger: put the address of the loaded helpers into the debugger log 2009-04-15 16:48:46 +02:00
hjk
e61fa399ed debugger: also parse PID if the program starts without breakpoints 2009-04-15 15:41:21 +02:00
Friedemann Kleint
4c2f5d1eaf Make the "Show symbols" option of the module window work on Windows.
Introduce API to debug engines and debugger manager to do this.
Reviewed-by: hjk <qtc-commiter@nokia.com>
2009-04-15 12:01:58 +02:00
hjk
1c9714305e debugger: don't kill gdb the hard way if it is still in a known state 2009-04-14 12:59:43 +02:00
hjk
163705b879 debugger: less debug output in cases we know what's missing 2009-04-14 12:20:23 +02:00
hjk
73a2dc6f84 debugger: make some noise if we still can't set pending breakpoints on Linux 2009-04-14 12:20:23 +02:00
hjk
84a43310a7 debugger: use break-insert -f to insert pending breakpoints 2009-04-14 12:20:22 +02:00
Friedemann Kleint
6d4d19dfa8 Handle various CDB output windows.
Add modules, threads and register view. Refactor register format code.
2009-04-09 16:51:13 +02:00
hjk
353025f37f debugger: potential fix for cases where the std:: namespace is not
reported properly
2009-04-09 13:49:22 +02:00