Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1745 connectés 

  FORUM HardWare.fr
  Programmation
  ASM

  probleme GDB

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

probleme GDB

n°959174
Profil sup​primé
Posté le 22-01-2005 à 12:24:39  answer
 

bonjour!
j'ai un probleme avec l'utilisation de gdb
 
gdb -q buffer1
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) disass main
Dump of assembler code for function main:
0x0804836c <main+0>:    push   %ebp
0x0804836d <main+1>:    mov    %esp,%ebp
0x0804836f <main+3>:    sub    $0x108,%esp
0x08048375 <main+9>:    and    $0xfffffff0,%esp
0x08048378 <main+12>:   mov    $0x0,%eax
0x0804837d <main+17>:   add    $0xf,%eax
0x08048380 <main+20>:   add    $0xf,%eax
0x08048383 <main+23>:   shr    $0x4,%eax
0x08048386 <main+26>:   shl    $0x4,%eax
0x08048389 <main+29>:   sub    %eax,%esp
0x0804838b <main+31>:   cmpl   $0x1,0x8(%ebp)
0x0804838f <main+35>:   jle    0x80483ab <main+63>
0x08048391 <main+37>:   sub    $0x8,%esp
0x08048394 <main+40>:   mov    0xc(%ebp),%eax
0x08048397 <main+43>:   add    $0x4,%eax
0x0804839a <main+46>:   pushl  (%eax)
0x0804839c <main+48>:   lea    0xfffffef8(%ebp),%eax
0x080483a2 <main+54>:   push   %eax
0x080483a3 <main+55>:   call   0x80482b0 <_init+56>
0x080483a8 <main+60>:   add    $0x10,%esp
0x080483ab <main+63>:   leave
0x080483ac <main+64>:   ret
---Type <return> to continue, or q <return> to quit---
0x080483ad <main+65>:   nop
0x080483ae <main+66>:   nop
0x080483af <main+67>:   nop
End of assembler dump.
(gdb) b *0x80483a3
Breakpoint 1 at 0x80483a3
(gdb) q
 
 
le breakpoint devrais normalement afficher :
Breakpoint 1 at 0x80483a3: file buffer1.c, line 6.
 
ca l'a affiché la premiere fois que je l'ai fais mais maintenant plus rien et j'en ai besoin pour voir l'adresse d'une variable(buffer) dans mon programme!!!!
 
Help :-(

mood
Publicité
Posté le 22-01-2005 à 12:24:39  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  ASM

  probleme GDB

 

Sujets relatifs
[Débutant] Problème de classeprobleme de cookie
Problème de date[openGL] problème de conpilation
Problème avec STRTOK[algo] Problème d'affectation
problème de boucleVB6 problème empaquetage
Probleme accents dans base de donnees mysql...[C] problème avec commande system( )
Plus de sujets relatifs à : probleme GDB


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR