GDB is gnu’s very own debugger
b main
orb 72
(set breakpoint onmain
function or line72
)r args
(run with args)p thingname
orp 3+5
(print a variable or return value)p/t
print as binaryp/x
print as hex
info
(get args, locals)n
s
continue
next, step, continue
int test;
short lsb = 0xff;
test |= lsb
printf("%d\n",lsb);
int test;