IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

GDB Discussion :

Probleme de debug sous GDB


Sujet :

GDB

  1. #1
    Membre régulier Avatar de Nono Sto
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    350
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 350
    Points : 74
    Points
    74
    Par défaut Probleme de debug sous GDB
    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:

    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
    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
     
    gdb -ex 'target remote :1234' -ex 'c'
    mais j'ai droit a c emessage:

    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)
    Un autre probleme lorsque je lance la commande:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
     /usr/bin/gdb.exe -v
    j'ai ceci:

    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".
    Auriez vus une idée SVP?

    Merci

  2. #2
    Membre régulier Avatar de Nono Sto
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    350
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 350
    Points : 74
    Points
    74
    Par défaut
    J'ai oublié je suis sous win7 64 bit.

Discussions similaires

  1. probleme tomcat en mode debug sous windows
    Par mazizou dans le forum Tomcat et TomEE
    Réponses: 3
    Dernier message: 03/04/2007, 09h28
  2. Problème de partitions sous Mandrake
    Par kaygee dans le forum Administration système
    Réponses: 12
    Dernier message: 30/01/2004, 08h26
  3. Problème Window manager sous Slackware 9.1
    Par Riko dans le forum Applications et environnements graphiques
    Réponses: 4
    Dernier message: 30/01/2004, 07h38
  4. [TP]Probleme de compilation sous TP7
    Par yffick dans le forum Turbo Pascal
    Réponses: 7
    Dernier message: 18/12/2003, 20h32
  5. [Kylix] Probleme d'installation sous Mdk 9.1
    Par anderson2 dans le forum EDI
    Réponses: 4
    Dernier message: 25/05/2003, 18h27

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo