Hello, world!

2008-02-10

Check assembly code in gdb

$ gcc -g -o tp test.s
$ cat << EOF > gd
> break main
> display/t $eflags
> display/x $ecx
> display/t $eax
> display/t $edx
> EOF
$ gdb -x gdbconf tp
cf. info gdb
`-x FILE'
     Execute GDB commands from file FILE.  *Note Command files: Command
     Files.