Qt gdb breakpoint
-
Hi,
I use Qt Creator to develop and have some issues to put a breakpoint into my source code because the gdb doesn't seems to do anything, the compile session ends with nothing.
The only thing I could see is the warning : ":: warning: the Symbian compilation string doesn't handle correctly special chararcters in the path." ; this is not the real sentence as it's a translation I did. Nevertheless, I read from other posts that it could concern empty spaces in the path, that I don't have.
I don't mind to have another debugger than gdb, I only need to set BP.
Thx .
Here are my env :
- Host : Win7 (64 bits)
- Target : Nokia N8
- Qtcreator (4.7.0 32 bits )
- Symbian Nokia SDK 9.2
Output from Gdb (last lines):
@
24^done,BreakpointTable={nr_rows="0",nr_cols="6",hdr=[{width="7",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[]}
dATTEMPT BREAKPOINT SYNC
<25-break-insert -h -f ""keyboard_dialog.cpp":63"
dRESET SNAPSHOT (NOTIFY STOPPED) Process 3671, thread 3672 stopped at 0x0: Thread 0xe58 has panicked. Category: KERN-EXEC; Reason: 6125^done,bkpt={number="1",type="hw breakpoint",disp="keep",enabled="y",addr="0x00502baa",func="Keyboard_Dialog::RandomKeys()",file="/repo_git/version-1.2.3/next.soft/Qt/Mysoft/MySoft_dialog.cpp",fullname="c:\\\\repo_git\\\\version-1.2.3\\\\next.soft\\\\qt\\\\Mysoft\\\\mysoft_dialog.cpp",line="63",times="0",original-location="\\"keyboard_dialog.cpp":63"}
dATTEMPT BREAKPOINT SYNC
<26info line *0x00502baa
&"info line *0x00502baa\n"
~"Line 63 of "/repo_git/version-1.2.3/next.soft/Qt/mysoft/keyboard_dialog.cpp" starts at address 0x502baa <_ZN15Keyboard_Dialog10RandomKeysEv+42> and ends at 0x502bb6 <_ZN15Keyboard_Dialog10RandomKeysEv+54>.\n"
26^done
dATTEMPT BREAKPOINT SYNC
dALL COMMANDS DONE; INVOKING CALLBACK
dBREAKPOINTS SET, CONTINUING INFERIOR STARTUP
dState changed from InferiorStopped(13) to InferiorRunningRequested(8).
<27-exec-continue
27^running
dState changed from InferiorRunningRequested(8) to InferiorRunning(10).
sEn cours d'éxecution...
*running,thread-id="all"
&"warning: Invalid remote reply: vCont;c;C;s;S\n"
=thread-group-exited,id="42000"
sGroupe de thread 42000 terminé
*stopped,reason="exited-normally"
dState changed from InferiorRunning(10) to InferiorStopping(11).
dState changed from InferiorStopping(11) to InferiorStopped(13).
sL'application s'est terminée normalement
dState changed from InferiorStopped(13) to InferiorShuttingDown(15).
dState changed from InferiorShuttingDown(15) to InferiorShutDown(16).
dINITIATE GDBENGINE SHUTDOWN
<28-gdb-exit
dState changed from InferiorShutDown(16) to EngineShuttingDown(18).
28^exit
dGDB CLAIMS EXIT; WAITING
dGDB PROCESS FINISHED, status 0, code 0
dGOING TO SHUT DOWN ADAPTER
dState changed from EngineShuttingDown(18) to DebuggerNotReady(0)
@[EDIT: fixed formatting, please use @-Tags instead of bq, it's more readable, Volker]
-
Please file a "bug report":http://bugreports.qt.nokia.com/ and include the complete Gdb output. The last couple of lines are not that helpful.
-
done . If necesary I can translate some errors
-
doubitchou: Could you please add a link to your bug report here? It is easier to cross-reference stuff that way. Thanks!
-
For sure :
"QTCREATORBUG-3488.":http://bugreports.qt.nokia.com/browse/QTCREATORBUG-3488
-
is it a bug, is there any possibility to get BP ? I don't want to polluate the Bug reporting forum, but this is really needed (qdebug prints are not enough)
-
I removed the previous Qt, and installed this one. I'm lost in version and want to use the correct paths this time; so please indicate me :
[quote] process_begin: CreateProcess((null), sbs -c arm.v5.udeb.gcce4_3_3, ...) failed.
make (e=2): Le fichier spécifié est introuvable.
C:\QtSDK\Symbian\SDKs\Symbian3Qt471\epoc32\tools\make.exe: *** [debug-gcce] Error 2
Le processus "C:\QtSDK\Symbian\SDKs\Symbian3Qt471\epoc32\tools\make.exe" s'est terminé avec le code 2.
Erreur à la compilation du projet Mysoft (cible : Périphérique Symbian)
Lors de l'exécution de l'étape 'Make'
[/quote]
wich one to use therefore -
This is better now: removed the old Qt and replaced it with this one, took care to point all the GDB to it, i.e. :
- C:\QtSDK\pythongdb\python_2.5based\gdb-arm-none-symbianelf.exe
- C:\QtSDK\pythongdb\python_2.5based\gdb-i686-pc-mingw32.exe
and make .
Nevertheless, I was obliged to use the 4.6.3 as the 4.7.1 send me a :
[quote]
"Fichier exécutable : 38135 2011-02-02T11:27:26 C:\QtSDK\Symbian\SDKs\Symbian3Qt471\epoc32\release\armv5\udeb\Mysoft.exe
Démarrage de l'application...
Impossible de démarrer l'application : General OS-related error
Terminé
[/quote] -
General OS-related error is symbians way to tell you that it was unable to start the application. Do you have the required capabilites? They often are to blame for trouble on symbian.
-
Well if it hard related: I think so :
- I7 - 8 cores ,
- 16 GB ram
-
Capabilities are a security feature. They are required to access sensitive functionality of the device (like network, sensors, etc.).
-
in that pov : no capabilities or particular package is added
-
Strangely this doesn't happend to the Desktop version.