Commit Graph

1274 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
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
hjk
ce6a80f337 debugger: extend semi-automanated tests to one level of expansion
Change-Id: I9063f4eecfe4c42926771cc46539932b4e353b8d
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-05 17:17:51 +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
hjk
9144cb24be debugger: implement direct interrupt of the gdb process on windows
Change-Id: I1882f1a49cca84456e9f94e608308d2c571fed67
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2012-02-23 12:36:29 +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
08e9329502 Fixed detection of QNX gdb for NDK 2.0
Change-Id: Ibf62cd0812eb113bec1ff49dec6d0017f57ccabf
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-15 15:43:05 +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
Friedemann Kleint
38510a482d Debugger: Fix interrupting code.
- Windows: Always use DebugBreakProcess if Qt Creator is compiled
  64bit. Else always use win64interrupt.exe if Qt Creator
  is a WOW64 application.
- Remove redundant code (procinterrupt/hostutils, gdb adapters).
- Give interruptProcess an errorMessage parameter such that it can
  be used by all C++ engines and a proper error is displayed.
- Improve error messages.
- Build win64interrupt if target architecture is 64 bit (clean tools
  profile, add a profile), borrowing the check from
  qtcreatorcdbext.pro.

Change-Id: I2a6caf98e46051c49c84e1f3aac4c8d2aba66e8b
Reviewed-by: David Schulz <david.schulz@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-02-02 16:25:42 +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
Kai Koehne
079fc49e91 RemoteGdb: Fix setup for attaching via dialog
Fix regression introduced in 9e8f935a while at the same time decoupling
the 'useServerStartScript' setting from whether the engine uses
requestRemoteSetup, or not.

Task-number: QTCREATORBUG-6841
Change-Id: I0850ec60e0f45ac66ba6736bcb9f75fdf73c1d23
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2012-01-23 16:19:53 +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
Kai Koehne
9e8f935a03 RemoteGdb: Request remote setup also if no start script should be used
Change-Id: I75ac2792b19cdb2f06ae07a59b6c9c2b2574084a
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-12 13:45:05 +01:00
hjk
818081b32b debugger: don't accept rich text in the gdb startup commands
Task-number: QTCREATORBUG-6771
Change-Id: I9fbb1f275561d9ea422781af3740257235269197
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-10 13:30:04 +01:00
David Schulz
785b82177f changed mode of stub to Utils::ConsoleProcess::Suspend
for gdb under Vista an newer Windows versions
fixes skipping a breakpoint in the first lines in these versions

Change-Id: I611ef0244cb7ceca9e86ed35220ab3200cc55c45
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-09 15:01:41 +01:00
hjk
4f891e9901 debugger: remove the "expert start modes"
This reverts most of 12f7a439d. It was a bad idea.

Task-number: QTCREATORBUG-6752
Change-Id: I048749a9dc888f36045f641de8fd2a1e3ae5d979
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-07 17:22:23 +01:00
Friedemann Kleint
4e2a4bb87c Compile fix in debugger.
Change-Id: Ib0557fe1f2810879350c2de687ab00c261f0365f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-01-06 14:29:37 +01:00
David Schulz
fad4599174 added a detailed error description if ptrace is not permitted
Change-Id: I555fddcabdd2311e55907073c15d5627d3283a73
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-06 13:06:59 +01:00