[Qt-creator] Problem with Android debugging on device

Harri Pasanen harri at mpaja.com
Tue Apr 14 12:42:39 CEST 2020


Hi,

Trying to debug a C++ sample application with Qt 5.13.1 on device, I get a
Waiting
For Debugger message dialog which never goes away.

Running on x86 Emulator debugging works.

The debugger log shows:


Android_for_arm64_v8a_Clang_Qt_5_13_1_for_Android_ARM64_v8a-Debug/libc.so\n"

>*stopped,frame={addr="0x00000075ca062d2c",func="syscall",args=[],from="/home/harri/Qt5.13.1/Examples/Qt-5.13.1/widgets/graphicsview/build-diagramscene-Android_for_arm64_v8a_Clang_Qt_5_13_1_for_Android_ARM64_v8a-Debug/libc.so",arch="aarch64"},thread-id="1",stopped-threads="all",core="3"

dNOTE: INFERIOR RUN OK

Running.

dState changed from InferiorRunRequested(7) to InferiorRunOk(8)

dNOTE: INFERIOR SPONTANEOUS STOP

Stopped.

dState changed from InferiorRunOk(8) to InferiorStopOk(11)

<427importPlainDumpers off

Stopped.

>426^running

eERROR: UNEXPECTED STATE: InferiorStopOk WANTED: InferiorRunRequested IN
/home/qt/work/build/qt-creator/src/plugins/debugger/gdb/gdbengine.cpp:1550

dNOTE: INFERIOR RUN OK

Running.

dState changed from InferiorStopOk(11) to InferiorRunOk(8)

>*running,thread-id="all"

dNOTE: INFERIOR STILL RUNNING IN STATE InferiorRunOk.

<428-thread-info


>&"p 0\n"

>~"$1 = 0"

>~"\n"

>^done


>&"importPlainDumpers off\n"

>~"1 printer disabled\n"

>~"0 of 1 printers enabled\n"

>~"None\n"

>427^done


>428^error,msg="Cannot execute this command while the target is
running.\nUse the \"interrupt\" command to stop the target\nand then try
again."

<429-thread-list-ids


>429^error,msg="Cannot execute this command while the target is
running.\nUse the \"interrupt\" command to stop the target\nand then try
again."

<430python theDumper.fetchStack({"limit":20,"nativemixed":0,"token":430})


>&"python
theDumper.fetchStack({\"limit\":20,\"nativemixed\":0,\"token\":430})\n"

>&"Traceback (most recent call last):\n"

>&" File \"<string>\", line 1, in <module>\n"

>&" File
\"/home/harri/Qt5.13.1/Tools/QtCreator/share/qtcreator/debugger/gdbbridge.py\",
line 1329, in fetchStack\n"

>&" frame = gdb.newest_frame()\n"

>&"gdb.error: Selected thread is running.\n"

>&"Error while executing Python code.\n"

>430^error,msg="Error while executing Python code."


Any ideas?

Harri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20200414/285eda5d/attachment.html>


More information about the Qt-creator mailing list