I am reading a book and am trying to follow some examples, but I can't get gdb to work like it does in the book. In the book when gdb is run on the binary, it shows general registers etc... Here is the output on my computer which really shows nothing when gdb is run, any help would be awesome:
Code:
[test@localhost Programs]$ cat HelloWorld.c
#include <stdio.h>
int main ()
{
int i;
for (i = 0; i < 10; i++)
printf ("Hello World\n");
return 0;
}
[test@localhost Programs]$ gcc -g HelloWorld.c
[test@localhost Programs]$ ./a.out
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
[test@localhost Programs]$ gdb -q a.out
Reading symbols from a.out...done.
(gdb) q