January 11, 2011

doubitchou doubitchou
Lab Rat
26 posts

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):

  1. 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=[]}
  2. dATTEMPT BREAKPOINT SYNC
  3. <25-break-insert -h -f "\"keyboard_dialog.cpp\":63"
  4. dRESET SNAPSHOT (NOTIFY STOPPED) Process 3671, thread 3672 stopped at 0x0: Thread 0xe58 has panicked. Category: KERN-EXEC; Reason: 61
  5. >25^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"}
  6. dATTEMPT BREAKPOINT SYNC
  7. <26info line *0x00502baa
  8. >&"info line *0x00502baa\n"
  9. >~"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"
  10. >26^done
  11. dATTEMPT BREAKPOINT SYNC
  12. dALL COMMANDS DONE; INVOKING CALLBACK
  13. dBREAKPOINTS SET, CONTINUING INFERIOR STARTUP
  14. dState changed from InferiorStopped(13) to InferiorRunningRequested(8).
  15. <27-exec-continue
  16. >27^running
  17. dState changed from InferiorRunningRequested(8) to InferiorRunning(10).
  18. sEn cours d'éxecution...
  19. >*running,thread-id="all"
  20. >&"warning: Invalid remote reply: vCont;c;C;s;S\n"
  21. >=thread-group-exited,id="42000"
  22. sGroupe de thread 42000 terminé
  23. >*stopped,reason="exited-normally"
  24. dState changed from InferiorRunning(10) to InferiorStopping(11).
  25. dState changed from InferiorStopping(11) to InferiorStopped(13).
  26. sL'application s'est terminée normalement
  27. dState changed from InferiorStopped(13) to InferiorShuttingDown(15).
  28. dState changed from InferiorShuttingDown(15) to InferiorShutDown(16).
  29. dINITIATE GDBENGINE SHUTDOWN
  30. <28-gdb-exit
  31. dState changed from InferiorShutDown(16) to EngineShuttingDown(18).
  32. >28^exit
  33. dGDB CLAIMS EXIT; WAITING
  34. dGDB PROCESS FINISHED, status 0, code 0
  35. dGOING TO SHUT DOWN ADAPTER
  36. dState changed from EngineShuttingDown(18) to DebuggerNotReady(0)

[EDIT: fixed formatting, please use @-Tags instead of bq, it’s more readable, Volker]

12 replies

January 11, 2011

Tobias Hunger Tobias Hunger
Mad Scientist
3125 posts

Please file a bug report [bugreports.qt.nokia.com] and include the complete Gdb output. The last couple of lines are not that helpful.

January 12, 2011

doubitchou doubitchou
Lab Rat
26 posts

done . If necesary I can translate some errors

January 12, 2011

Tobias Hunger Tobias Hunger
Mad Scientist
3125 posts

doubitchou: Could you please add a link to your bug report here? It is easier to cross-reference stuff that way. Thanks!

January 12, 2011

doubitchou doubitchou
Lab Rat
26 posts

For sure :

QTCREATORBUG-3488. [bugreports.qt.nokia.com]

January 18, 2011

doubitchou doubitchou
Lab Rat
26 posts

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)

February 1, 2011

doubitchou doubitchou
Lab Rat
26 posts

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 :

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’

wich one to use therefore

February 2, 2011

doubitchou doubitchou
Lab Rat
26 posts

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 :


“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é

February 2, 2011

Tobias Hunger Tobias Hunger
Mad Scientist
3125 posts

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.

February 2, 2011

doubitchou doubitchou
Lab Rat
26 posts

Well if it hard related: I think so :

  • I7 – 8 cores ,
  • 16 GB ram

February 2, 2011

Tobias Hunger Tobias Hunger
Mad Scientist
3125 posts

Capabilities are a security feature. They are required to access sensitive functionality of the device (like network, sensors, etc.).

February 2, 2011

doubitchou doubitchou
Lab Rat
26 posts

in that pov : no capabilities or particular package is added

February 4, 2011

doubitchou doubitchou
Lab Rat
26 posts

Strangely this doesn’t happend to the Desktop version.

 
  ‹‹ QtOpenGL ES 2.0 and QGLPixelBuffer      [SOLVED] weird Qrand behaviour ››

You must log in to post a reply. Not a member yet? Register here!