Commit Graph

1053 Commits

Author SHA1 Message Date
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
Eike Ziller
d66acb51d0 Rename IFile->IDocument and FileManager->DocumentManager
And adapt the other API respectively.

Change-Id: I1e04e555409be09242db6890f9e013396f83aeed
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2012-02-20 13:32:49 +01:00
hjk
b9d15b113f debugger: remove a few too-fancy typedefs
Change-Id: I0c8ba3c2d22ca7128527da42b81919dabbd82d14
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-16 11:15:28 +01:00
Denis Mingulov
87b1dc25a1 Debugger: use QString::fromLatin1 instead of QString::fromAscii
By source - latin1 is really expected as there is no any check
or usage of QTextCodec::setCodecForCStrings() currently.

QString::fromAscii() might break 'Latin1' input in some cases.

A quote from documentation about QString::fromAscii():

"Note that, despite the name, this function actually uses the
codec defined by QTextCodec::setCodecForCStrings() to convert str
to Unicode. Depending on the codec, it may not accept valid
US-ASCII (ANSI X3.4-1986) input. If no codec has been set, this
function does the same as fromLatin1()."

Change-Id: I49cf047ca674d2ec621b517c635d1927bb2e796f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-16 10:27:04 +01:00
Erik Verbruggen
3fa55b7ab9 Removed module names from #include directives.
Getting the #include directives ready for Qt5. This includes the
new-project wizards.

Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2012-02-15 16:24:46 +01:00
Tobias Nätterlund
17c18623ef Add support for the remote QNX debugging protocol
Change-Id: Ifb2a378cdc000eb84b65f25c2132783d3a3f53c4
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-10 16:15:40 +01:00
hjk
2beb5ec6e2 debugger: switch on remotecache
Change-Id: I938affc8768c98aabcbde0250f8042cc6bf4a59e
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-08 14:32:53 +01:00
hjk
9c57b1000f debugger: Do not display empty tooltips
Task-number: QTCREATORBUG-6893
Change-Id: Idb780e97c23f6cc5d1bcede149959b2e58f9eaa2
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-07 15:48:42 +01:00
hjk
c466dcf084 debugger: handle new *stopped output indication reasons in gdb 7.4
Task-number: QTCREATORBUG-6763
Change-Id: I7a95bdbb9ab7b85beb19b7d390a10a5d629dc7e7
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-07 14:37:07 +01:00
Orgad Shaneh
87de819729 GDB/Windows: Break on abort
Task-number: QTCREATORBUG-6773
Change-Id: I082b7d04730a5014ad935d6a079a1829dfcdd34c
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-02 13:02:32 +01:00
Friedemann Kleint
c27a463fe7 Debugger: Add Disassembling of functions.
- Add "Disassemble function..." action with dialog for name
  to stack window.
- Add "Disassemble" with function name from code model to
  the Editor context menu.
- Change the engines to be able to disassemble a function without
  address.

Change-Id: I812f4672d97d9a866ee7f5a38dbd18b2876bccfa
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-01 17:57:43 +01:00
Orgad Shaneh
8c2bcd14da Debugger: Reload locals on dynamic type toggle
Change-Id: I2ff075bcc5607fec9bd9dc8596108ec5f076d48d
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-01 09:48:05 +01:00
Orgad Shaneh
5e3cebd0f4 Debugger: Remove unneeded setUseDebuggingHelpers slot
Change-Id: I62be12e5afe6d2b9a81c03e980e01a49dc4e4632
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-01 09:47:47 +01:00
Kai Koehne
2a02841383 Debugger: Simplify handling of requestRemoteSetup in QmlCppEngine
Just emit the requestRemoteSetup on your own in QmlCppEngine. Also
properly check the related state transitions in DebuggerEngine.

Change-Id: I15dc4236303911126de7eee63ed996bdd8e5c5a8
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-31 14:14:05 +01:00
Eike Ziller
284f7dfb2f Fix debugging with Mac gdb.
gdb was not answering to "set breakpoint always-inserted on" at all.

Change-Id: I5fead2e735097236ba094d80bfbd4fa43143e5f7
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-31 12:06:03 +01:00
Daniel Molkentin
b44e541dca bugreports.qt.nokia.com -> bugreports.qt-project.org
Change-Id: Ifc258886f7d6e7d5b02caae8994210aeef221554
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
2012-01-26 19:58:08 +01:00
hjk
2931a499e6 Long live the king!
Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-01-26 19:55:36 +01:00
hjk
828139a7db debugger: integrate state test into test automation framework
Change-Id: If3c6b5095a10a92683bf2214e45408e8d885085f
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-25 17:57:39 +01:00
hjk
c51e7aa7be debugger: set breakpoint always-inserted and trust-readonly-sections on
Change-Id: I13eec92d703e9bb6478f6cc2ba8a125bdd0e3d3e
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-24 20:08:46 +01:00
hjk
4a21f0c3c8 Use new static ICore interface.
Change-Id: I9b690d9b150c8d162b15370f9f8986267c9128f1
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-01-24 18:48:47 +01:00
hjk
7201923562 debugger: move isCppBreakpoint to Breakpoint
Change-Id: I241401fa010166982e5a95a699c99fbaa87188ef
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-24 17:10:28 +01:00
hjk
cd2dec1af8 debugger: remove SymbianDebugClient enum
There is only CODA nowadays.

Change-Id: I8350baed5b66947593c5850491ac9606af3b737c
Reviewed-by: Paweł Polański <pawel.3.polanski@nokia.com>
2012-01-24 12:55:12 +01:00
hjk
1ef6c2b1f0 debugger: work on autotest integration
Change-Id: Iafd07a55e20cd2a65c3bcd23208c24855aeb429f
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-24 10:05:04 +01:00
hjk
496e9fafd0 debugger: replace static capability check by something potentially dynamic
This does not yet use the potential.

Change-Id: I087311fb7d59b46e49f65a84c4420c72a1227ebb
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
2012-01-16 16:33:43 +01:00
hjk
e96c5237cb debugger: we do not need the output of -stack-select-frame
Change-Id: I4eac412f0505efa356bf6e185e8d45d669b9f511
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-12 18:02:38 +01:00
hjk
bd308acfcf debugger: adjust supported/unsupported gdb version hint to reality
Change-Id: I5d45b37e5967804275913c6311741eca83eac539
Reviewed-by: hjk <qthjk@ovi.com>
2011-12-16 14:14:52 +01:00
hjk
f1d633a254 debugger: remove old workaround recording the entry point
This was for kernel i386 2.6.24-23-ubuntu and gdb 6.8.
This is pre-python, i.e. not supported anymore.

Change-Id: I1d73dbd6fd7730e15ebab334eb9d043b210eb631
Reviewed-by: hjk <qthjk@ovi.com>
2011-12-15 12:44:26 +01:00
hjk
3913d8ced0 debugger: fix inverted logic in m_nonDiscardableCount soft assert
Change-Id: I88dc1be2232608bcf158212fcbd6e82db4cad860
Reviewed-by: hjk <qthjk@ovi.com>
2011-12-15 12:43:39 +01:00
hjk
b60f464c64 debugger: run tests only after view is fully populated.
Change-Id: I730b35f9384d672a613e79842b21709a12b9a95f
Reviewed-by: hjk <qthjk@ovi.com>
2011-12-14 15:36:19 +01:00