Como configurar o depurador para o assembly ARM usando qemu e gdb

3

Segui este tutorial , bem como este < href="https://ubuntuforums.org/showthread.php?t=2010979"> um para configurar um compilador + depurador para o Assembly ARM.

Após o primeiro, executei o comando qemu-arm -singlestep -g 1234 empty e iniciei um novo shell, onde tentei conectar o gdb ao qemu copiando e colando as instruções dadas:

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

No entanto, sempre que tento me conectar com target remote localhost:1234 , há um erro de tempo limite. Também segui as instruções do segundo tutorial, mas terminei com o mesmo erro de tempo limite. Preciso pré-configurar o qemu?

    
por Grunwalski 21.05.2018 / 20:17

0 respostas