Commit Graph

1081 Commits

Author SHA1 Message Date
hjk
1b1dbf1b8b debugger: make elfreader also report offset and size of sections
Change-Id: I8dd3d20ddc4652dc490d87558f46474f79300389
Reviewed-by: hjk <qthjk@ovi.com>
2012-06-05 11:23:47 +02:00
hjk
0394699a4c debugger: more modulehandler polishing
Change-Id: I2382a597783512b566118cccf772ff530cdf9026
Reviewed-by: hjk <qthjk@ovi.com>
2012-06-04 00:14:04 +02:00
hjk
e6d4904a62 debugger: small rework of the modules handler
Use new elfreader, also slimmer interface.

Change-Id: Ie6387ff14bdefd109768d1ce4c395a17211da77d
Reviewed-by: hjk <qthjk@ovi.com>
2012-06-01 19:16:14 +02:00
hjk
278d909208 debugger: use the elfreader instead of external objdump
Change-Id: Ic5c5525703a6ef8924ac68e1a9ed33e411aada08
Reviewed-by: hjk <qthjk@ovi.com>
2012-06-01 19:15:59 +02:00
hjk
62e0f4606b debugger: more precise matching for connection error messages
Change-Id: Icd1821b4ded70242d8a7e09463461d340f277f6b
Reviewed-by: hjk <qthjk@ovi.com>
2012-05-30 14:00:14 +02:00
hjk
012281cdf8 debugger: less scary crash message
Change-Id: I2c24d3a14cf2139a363100733280c4fd0c321524
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@nokia.com>
2012-05-29 15:06:06 +02:00
hjk
6ef2c09247 debugger: remove workaround for some gdb 6.4 builds
Change-Id: Id13f9b352810f59301c409c73f510542687343e7
Reviewed-by: hjk <qthjk@ovi.com>
2012-05-25 11:14:25 +02:00
hjk
e11a3a7697 debugger: rework WatchModel
It's one model for all locals, watch, return, tooltip and inspector
data. This allows more streamlined code paths and better isolation
of the model data from the WatchHandler. WatchItems are now registered
in a hash indexed by iname, so inames can be used as the primary
handle to watch data in the WatchHandler interface.

Change-Id: Idac0a808b5d785307496d1de4198a1f2e9ce3880
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
2012-05-24 14:33:34 +02:00
David Schulz
991157accf Debugger: Fix order of setting debug-file-directory
Change-Id: Ie4032edd4eebc1e3a79fbe15c0bc1292b4a3292a
Reviewed-by: hjk <qthjk@ovi.com>
2012-05-18 16:08:26 +02:00
David Schulz
12e7c26291 Debugger: GDB: Append debug-file-location
Now the debug-file-location will not be replaced, but enhanced when new debug-file-locations are defined.

Change-Id: Ibabcd5814f281e5e378b29abcee1ac646b01cdcd
Reviewed-by: hjk <qthjk@ovi.com>
2012-05-11 18:02:29 +02:00
Kai Koehne
232a1272d4 Gdb: Print missing tokens in timeout
Change-Id: I5a5693fa2c60511ee581bb2b4f5fa3f5604d0e42
Reviewed-by: hjk <qthjk@ovi.com>
2012-05-10 14:51:55 +02:00
Eike Ziller
0a0de08efb Merge remote-tracking branch 'origin/2.5'
Conflicts:
	qtcreator.pri
	qtcreator.qbp
	src/plugins/find/treeviewfind.cpp

Change-Id: Iaae61c98938df24bda5521a923303db89eb7f8fe
2012-05-10 08:14:36 +02:00
hjk
dd66fe6c48 Revert "debugger: improve expansion behaviour of pinned tooltips."
This reverts commit 89cee4313c,
as part of the patch breaks QTCREATORBUG-7277.

The GDB case should not filter the Locals model, but the Tooltip model
to display tooltips. CDB has no choice, as the tooltips are expressions,
i.e. cannot be handled, so using the Locals as fall back there is ok.

Change-Id: I196bc683e06f68301bd86aa6fcce14ad2e8c5774
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-05-09 14:11:20 +02:00
Orgad Shaneh
b3416a57d7 Debugger: Break on raise() -> Break on abort()
Win64 doesn't seem to have raise() at all, or at least it isn't
called on abort()

Change-Id: Ief7a97c321db0f91629848852719977d14094173
Reviewed-by: hjk <qthjk@ovi.com>
2012-05-08 18:14:38 +02:00
Kai Koehne
9d86ad7990 Debugger: Catch 'Remote connection closed' in response
'Remote connection closed' messages sometimes also arrive camuflaged
as a response to a command (with the response of the original
command already there).

Change-Id: I8fa75f561fb341463fc4c0ed0a35aa6fd8300694
Reviewed-by: hjk <qthjk@ovi.com>
2012-05-08 11:35:04 +02:00
hjk
64ade99b0c itaskhandler: interface cleanup
Change-Id: Ib85950a4715d6eaf4225bd8dbcc0c2a91b20dc1d
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2012-05-07 18:12:40 +02:00
Eike Ziller
9092e70884 Merge remote-tracking branch 'origin/2.5'
Conflicts:
	doc/templates/style/style.css
	qtcreator.pri

Change-Id: I5f4f5f191726883dae18cb760733a5e8e6bd4e7d
2012-04-27 17:02:39 +02:00
hjk
0ce93f0059 debugger: prevent crash on mac
Task-number: QTCREATORBUG-7333
Change-Id: I5e2a40f06babf3143d3d0109eae5e65393ffe012
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2012-04-26 15:47:20 +02:00
hjk
071b24d97e debugger: fix translation contexts
* add a few Q_OBJECT
* change DebuggerRunControl::tr() to DebuggerPlugin::tr()

Change-Id: I7ed973ea71b3492e91b45784595d9471587f72ea
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-04-24 17:07:29 +02:00
BogDan Vatra
50e8f7bb7b Android plugin
Change-Id: Iad58914f067a6ef6d3412ccd42f757d821e39e45
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
2012-04-24 12:25:40 +02:00
hjk
b439999f1d debugger: try quicker start when no breakpoints are set
This prevents initial reading of debug information when no
breakpoints are set. The debug information will be read on
first stop instead, e.g. when the user interrupts.

Change-Id: I6156347bf108e9ed89f54ca67021f37c02fa5116
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
2012-04-17 12:35:24 +02:00
hjk
5b0bf61640 qtcassert: move actual printing to separate function and enforce style
This also allows simple setting of breakpoints on failed asserts.

Change-Id: I6dd84cbfaf659d57e39f3447386cebc0221b2b84
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-04-17 09:53:44 +02:00
Oswald Buddenhagen
6b8167c663 Merge remote-tracking branch 'origin/2.5' 2012-04-16 10:03:48 +02:00
Christian Stenger
d48027aefe Debugger: Improve gdb error msg handling
Change-Id: I9ac8c3caf4f1c83d04cc145f485ad8a0a7a00a07
Reviewed-by: hjk <qthjk@ovi.com>
2012-04-13 18:41:01 +02:00
Christian Stenger
95a4d73dba Debugger: Fix gdb disassembler error
Change-Id: I46e762ba855720827d60e746c99f9810d2b6837b
Reviewed-by: hjk <qthjk@ovi.com>
2012-04-13 14:54:50 +02:00
Aurindam Jana
3d32f42b7d Debugging: Pass a DebuggingLanguage arg in executeDebuggerCommand()
Change-Id: I99eedc86c987615072b7400051b61700b98ebab3
Reviewed-by: hjk <qthjk@ovi.com>
2012-04-10 13:12:10 +02:00
Orgad Shaneh
f220a55991 GDB: Cleanup file name on stop
Task-number: QTCREATORBUG-7241

Change-Id: I88a764765e7b0360a3b9b4115c5bdd480a243270
Reviewed-by: hjk <qthjk@ovi.com>
2012-04-05 20:28:59 +02:00
Eike Ziller
c814538d95 Merge remote-tracking branch 'origin/2.5' 2012-04-04 16:20:10 +02:00
hjk
6830905e96 debugger: don't queue -exec-interrupt
Change-Id: I65da52375872552064ffa4fa9db8292d27f64f67
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: hjk <qthjk@ovi.com>
2012-04-03 14:16:56 +02:00
hjk
c1e7a06e9f debugger: parse build-id-verbose output into tasks
Change-Id: I6bacc697c24185025f3342e43a29109bf75d8196
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-30 19:34:45 +02:00
Kai Koehne
9822654c43 Catch message from gdb when gdbserver connection closes
This is yet another error that gdb 7.4 prints on windows when
the remote gets disconnected.

Change-Id: I7bc5f37bc9d9ae5211f23cf23dc19a8efd1779c8
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-30 14:46:16 +02:00
Aurindam Jana
808097afb1 Debugging: Fix gdb crash on abort debugging
Change-Id: I4e70207b739d5b23d8cddabe5e71d75ce63c7f96
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-30 13:30:28 +02:00
hjk
f67c6dba11 debugger: prepare naive handling of multiple inferiors
Change-Id: I2ea81b1a9407ae7e5045aadf43b0c2d971fc615b
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-28 10:47:06 +02:00
hjk
95e2c9ca57 debugger: make the selection of detach or kill explicit
Change-Id: I6f80047ad229e0be851b06a277ab2f899757828f
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-26 16:37:42 +02:00
hjk
c0accaa3af debugger: add more heuristics to find sources
Change-Id: I78a22b885217ed45c97b992e0d70ef3bc19d24f9
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-23 17:55:07 +01:00
Kai Koehne
22a949b5c1 Gdb: Fix shutdown of engine if app exits (gdbserver)
Sometimes the "Remote connection closed" message is the last
one we get from gdbserver. handleResultRecord might not be called
any more.

Change-Id: Ib4c1155bf21c605ac39d75582c1a26676475cb7a
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-22 12:03:55 +01:00
hjk
24477fd293 debugger: fix handling of watchpoint notification with gdb 7.4
Task-number: QTCREATORBUG-7144
Change-Id: I204062de55e241ea7954f0e3bce123973028e076
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-19 17:11:19 +01:00
hjk
7c0a7a50dc debugger: fix display/use of module name in ModulesView
Change-Id: I335ce9427f4c7abea84e109323869226c07e7f7c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-03-16 13:59:21 +01:00
hjk
34ba6b632b debugger: suppress signal popups during auto tests
Task-number: QTCREATORBUG-6951
Change-Id: I35152a6f0422d4cbca356dab8b95033b166115fb
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-09 16:55:32 +01:00
hjk
3311b294b3 debugger: use target-async/exec-interrupt for remote debugging
This seems to be the only way to make the setup work on Windows at all.

Change-Id: Ib70c8422dceea84ae5cc9e671de977de0887c80e
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-09 15:26:17 +01:00
Francois Ferrand
1c1320c461 Gdb: Fix thread listing command used for older GDB.
Change-Id: I02219e496faa8918439467f72b196bf454b6bc8f
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-09 09:53:28 +01:00
Robert Loehning
9988c471fe Replaced one-char-strings
Change-Id: I0bf982b508a237e5b1e6ba3279cb589bae1b1c1d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-03-07 09:18:15 +01:00
Kai Koehne
aa114a2358 Gdb: Notice when the gdb server process is exited
When terminating from within Qt Creator, we sometimes get a 'Quit'
message instead of 'Remote connection closed'.

Change-Id: I821d436813f1feacfe94ce85bc2175e3646dba27
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-06 16:17:08 +01:00
Robert Loehning
b41171c847 Normalized connect()s
Change-Id: Id353ab140a46e06ffc3abf667ab3b234e749e17c
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2012-03-06 12:46:52 +01:00
cnavarro
2fa4e8e26d fix non-stop mode for executeNext and executeStep
Following the  Change-Id: I18e8b77b615cfceec402b140337709074ad96dc5, I have
found the same behaviour in handleExecuteNext and HandleExecuteStep than in
hanleExecuteContinue. The fix is the same, If you click one of the two
buttons while having a different thread selected, notify the GUI of the gdb
error message but do not kill the debugger neither the inferior as the situation
can be addressed by clicking again step or next after switching to the
stopped thread.

Change-Id: I9f2951ea9846621156ceb3998514d7667d59e7af
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-06 12:03:05 +01:00
hjk
63f3b2feb6 debugger: compile fix after d48136f312
Change-Id: Ibd7c9cafd4b16278e1db19155b285dd0ad2436cc
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-05 17:29:06 +01:00
Kai Koehne
d48136f312 Gdb: Notice when remote gdb process shuts down
Make sure notifyInferiorExited is called when we get a
'Remote connection closed' message.

Change-Id: I578d62e29ed30243eb7693e641ad809cccd0fcae
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-05 17:08:38 +01:00
cnavarro
4e992d8d03 Fix non-stop mode in gdb when you click continue
When you hit a brekpoint in gdb non-stop mode, if you click continue in the
UI the debugger was killed if the current thread is not the one being
stopped. This is anoying as gdb does not change current thread
automatically. The fix shows the error but does not kill the inferior.
Fixed style issues again.

Reviewed-by: hjk <qthjk@ovi.com>
(cherry picked from commit 47def926c7)

Change-Id: I18e8b77b615cfceec402b140337709074ad96dc5
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-05 09:58:48 +01:00
hjk
04f2c01944 debugger: disable a warning that's a bit too eager
Change-Id: Ia24322bfecf8422cb5daec7b4fa4111bc36c00e8
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-01 17:16:13 +01:00
hjk
fe62330c9f debugger: rename 'Break on abort' to 'Break on raise'
Change-Id: I9e1751e890c42cc9f2d7f855b25c3d7e24b5501f
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-23 18:50:11 +01:00