GDB question - how do I go through disassembled code line by line?
        Posted  
        
            by user324994
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user324994
        
        
        
        Published on 2010-05-04T01:10:26Z
        Indexed on 
            2010/05/04
            1:18 UTC
        
        
        Read the original article
        Hit count: 423
        
I'd like to go through a binary file my teacher gave me line by line to check addresses on the stack and the contents of different registers, but I'm not extremely familiar with using gdb. Although I have the C code, we're supposed to work entirely from a binary file. Here are the commands I've used so far:
(gdb) file SomeCode
Which gives me this message:
Reading symbols from ../overflow/SomeCode ...(no debugging symbols found)...done.
Then I use :
(gdb) disas main
which gives me all of the assembly. I wanted to set up a break point and use the "next" command, but none of the commands I tried work. Does anyone know the syntax I would use?
© Stack Overflow or respective owner