Bonjour
je suis tr�s d�butant en GDB et je sollicite votre aide.
Je travail sur un �mulateur sous QEMU, et j'ai besoin de le debug. Apr�s avoir compil� le code recupere sur internet je l'ai compil�. L'emus fonctionne exactement comme pr�vu (il s'agit d'un prototype).
Je travaille avec MSYS 64 bit.
Dans la fenetre MinGW MSYS 64 bit l'instruction pour lancer l'emus:
Puis j'ouvre une seconde fenetre et je rentre les instruction pour debug sous gdb:
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2 ./qemu-system-xbox -cpu pentium3 -machine xbox,short_animation,bootrom=mcpx_rom.bin -m 128 -drive file=xbox_outrun_2.qcow2,index=0,media=disk,locked=on -drive index=1,media=cdrom -bios xbox_bios.bin -usb -device usb-hub,bus=usb-bus.0,port=3 -device usb-xbox-gamepad,bus=usb-bus.0,port=3.2 -s -S
mais j'ai droit a c emessage:
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2 gdb -ex 'target remote :1234' -ex 'c'
Un autre probleme lorsque je lance la commande:
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 $ gdb -ex 'target remote :1234' -ex 'c' GNU gdb (GDB) 8.0 Copyright (C) 2017 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 "x86_64-w64-mingw32". 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". :1234: Aucune connexion n▒a pu ▒tre ▒tablie car l▒ordinateur cible l▒a express▒ment refus▒e. The program is not being run. (gdb)
j'ai ceci:
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2 /usr/bin/gdb.exe -v
Auriez vus une id�e SVP?
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 /usr/bin/gdb.exe -v GNU gdb (GDB) 7.11.1 Copyright (C) 2016 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 "x86_64-pc-msys". 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".
Merci
Partager