Common gdb commands Flashcards

1
Q

Run

A

execute the program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Break

A

set a breakpoint-a place for the program to sotp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Next

A

Run until the next instruction in this function (don’t follow function calls)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Step

A

Stop at the next instruction call anywhere (goes into function calls)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Continue

A

run until the next breakpoint

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Print

A

show the value of a variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Jump

A

Start executing at a different line number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

enable/disable

A

turn breakpoints on or off

How well did you know this?
1
Not at all
2
3
4
5
Perfectly