Как настроить отладчик для сборки ARM с помощью qemu и gdb

Я следовал этому руководству, а также этому, чтобы настроить компилятор + отладчик для сборки ARM.

Следуя первому, я запустил команду qemu-arm -singlestep -g 1234 empty и начал новую оболочку, где я попытался подключить gdb к qemu путем копирования и вставки данных инструкций:

➜ arm-none-eabi-gdb GNU gdb (GDB) 7.9.1 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=x86_64-unknown-linux-gnu --target=arm-none-eabi". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) file empty Reading symbols from empty...done. (gdb) target remote localhost:1234 Remote debugging using localhost:1234 _start () at empty.s:4 4 mov r0, #1 (gdb)

Однако всякий раз, когда я пытаюсь соединиться с target remote localhost:1234, появляется ошибка тайм-аута. Я также следовал инструкциям во втором учебнике, но закончил с той же ошибкой тайм-аута. Нужно ли предварительно настроить qemu?

3
задан 21 May 2018 в 23:17

0 ответов

Другие вопросы по тегам:

Похожие вопросы: