Visual GDBの助けを借りてRaspberry Pi用に構築しようとしているHello World Linuxプロジェクトがあります。ビルド マシンをローカルに設定しました。
実行中に GDB エラーが発生しました:
Pi マシンで実行可能ファイルを見つけようとしましたが、見つかりません。
それを修正する方法は?
ログの平和:
-gdb-show sysroot
^done,value="c:\\sysgcc\\raspberry\\arm-linux-gnueabihf\\sysroot"
-gdb-show debug-file-directory
^done,value="c:\\mnt\\f\\gnu\\raspberry-buster\\out\\lib\\debug"
-gdb-set debug-file-directory c:/sysgcc/raspberry/arm-linux-gnueabihf/sysroot/usr/lib/debug
^done
-target-select remote 192.168.43.119:2000
&"warning: while parsing target description (at line 1): Target description specified unknown architecture \"i386\"\n"
&"warning: Could not load XML target description; ignoring\n"
=tsv-created,name="trace_timestamp",initial="0"\n
~"Created trace state variable $trace_timestamp for target's variable 1.\n"
=thread-group-started,id="i1",pid="5485"
=thread-created,id="1",group-id="i1"
=thread-group-exited,id="i1"
^error,msg="Remote 'g' packet reply is too long (expected 168 bytes, got 312 bytes): 00000000000000000000000000000000f0dbffff0000000000000000000000007033006000020000230000002b0000002b0000002b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007f03000000000000ffff000023000000000000002b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000801f00000b000000"
info target
&"info target\n"
~"Symbols from \"C:\\cpp_test\\LinuxProject3\\Debug\\LinuxProject3\".\n"
~"Local exec file:\n"
~"\t`C:\\cpp_test\\LinuxProject3\\Debug\\LinuxProject3', file type elf32-littlearm.\n"
~"\tEntry point: 0x105f8\n"
~"\t0x00010154 - 0x0001016d @ 0x00000154 is .interp\n"
~"\t0x00010170 - 0x00010190 @ 0x00000170 is .note.ABI-tag\n"
~"\t0x00010190 - 0x000101b4 @ 0x00000190 is .note.gnu.build-id\n"
~"\t0x000101b4 - 0x000101fc @ 0x000001b4 is .gnu.hash\n"
~"\t0x000101fc - 0x000102dc @ 0x000001fc is .dynsym\n"
~"\t0x000102dc - 0x00010486 @ 0x000002dc is .dynstr\n"
~"\t0x00010486 - 0x000104a2 @ 0x00000486 is .gnu.version\n"
~"\t0x000104a4 - 0x00010514 @ 0x000004a4 is .gnu.version_r\n"
~"\t0x00010514 - 0x00010524 @ 0x00000514 is .rel.dyn\n"
~"\t0x00010524 - 0x0001056c @ 0x00000524 is .rel.plt\n"
~"\t0x0001056c - 0x00010578 @ 0x0000056c is .init\n"
~"\t0x00010578 - 0x000105f8 @ 0x00000578 is .plt\n"
~"\t0x000105f8 - 0x00010830 @ 0x000005f8 is .text\n"
~"\t0x00010830 - 0x00010838 @ 0x00000830 is .fini\n"
~"\t0x00010838 - 0x0001084a @ 0x00000838 is .rodata\n"
~"\t0x0001084c - 0x00010858 @ 0x0000084c is .ARM.extab\n"
~"\t0x00010858 - 0x00010870 @ 0x00000858 is .ARM.exidx\n"
~"\t0x00010870 - 0x00010874 @ 0x00000870 is .eh_frame\n"
~"\t0x00020eec - 0x00020ef4 @ 0x00000eec is .init_array\n"
~"\t0x00020ef4 - 0x00020ef8 @ 0x00000ef4 is .fini_array\n"
~"\t0x00020ef8 - 0x00021000 @ 0x00000ef8 is .dynamic\n"
~"\t0x00021000 - 0x00021034 @ 0x00001000 is .got\n"
~"\t0x00021034 - 0x00021038 @ 0x00001034 is .data\n"
~"\t0x00021038 - 0x000210cc @ 0x00001038 is .bss\n"
^done
-exec-continue
^error,msg="The program is not being run."
--- gdbserver ---
Process /tmp/LinuxProject3 created; pid = 5485
Listening on port 2000
Remote debugging from host 192.168.43.3
Remote side has terminated connection. GDBserver will reopen the connection.
Listening on port 2000
--- gdbserver ---
Process /tmp/LinuxProject3 created; pid = 5485
Listening on port 2000
Remote debugging from host 192.168.43.3
Remote side has terminated connection. GDBserver will reopen the connection.
Listening on port 2000