Gdb jumping some parts of the assembly codes
问题 I'm having a difficult to debug a program at assembly level because GDB is jumping some parts of the code. The code is: #include <stdio.h> #define BUF_SIZE 8 void getInput(){ char buf[BUF_SIZE]; gets(buf); puts(buf); } int main(int argc, char* argv){ printf("Digite alguma coisa, tamanho do buffer eh: %d\n", BUF_SIZE); getInput(); return 0; } The program was compiled with gcc -ggdb -fno-stack-protector -mpreferred-stack-boundary=4 -o exploit1 exploit1.c In gdb, I added break getInput and when