GDB

Set break point in GDB

Set a break point in a source file

cmd: b file:function

e.g.

1
b debug.c:func

Set a break point at a line

cmd: b file:num

e.g.

1
b debug.c:7

Set a break point at an address

cmd: b *address

e.g.

1
b *0x0000000000000

Set condition break point

cmd: b file:num if cond

e.g.

1
b debug:10 if a=1

Set temp? break

cmd: tbreak

C

c printf unsigned long long

1
printf("%llu", 285212672);