.text
.globl main
.type main, @function
main:
pushq %rbp ;
movq %rsp, %rbp ;
pushq %rbx ;
pushq %rcx ;
movq $0xFFFFFFFFFFFFFFFF, %rbx ;
movb %bl, %cl ;
movw %bx, %cx ;
movl %ebx, %ecx ;
movq %rbx, %rcx ;
xorq %rax, %rax ;
popq %rcx ;
popq %rbx ;
movq %rbp, %rsp ;
popq %rbp ;
ret ;
main: main.o
gcc -o main main.o
main.o: main.s
as --gstabs+ -o main.o main.s
clean:
rm -f main
rm -f main.o
If you want to use the custom .gdbinit
, you can download it using wget
, then
move/rename/copy it to ~/.gdbinit
:
$ wget http://cobweb.cs.uga.edu/~mec/csx730/gdbinit
$ cp gdbinit ~/.gdbinit
If you would rather go back to regular GDB, then simply remove ~/.gdbinit
.