GDB Flashcards

1
Q

How to View the processor registers

A

info all-registers ; info registers

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

How to Set a breakpoint in code

A

break /

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

Find the address of an OS function

A

info address

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

Inspect a memory location

A

x

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

Running gdb with args

A

gdb –args

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

Running gdb with args

A

gdb –args

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

clear all breakpoints

A

clear

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

enable/disable breakpoint

A

enable/disable breakpoint

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

kill the program

A

kill

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

set new watch point

A

watch

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

Examining a frame

A

frame

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

show the call stack

A

backtrace

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

go to the next instruction (stepping through)

A

step

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

go to the next instruction diving into functions (stepping through)

A

step

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

go to next instruction don’t dive into functions

A

next

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

print variables/memory

A

print/format

17
Q

display/format information after each step

A

display/format

18
Q

continue normal execution

A

continue

19
Q

change content of variable to given value

A

set var =

20
Q

force current program to exit immediately passing current value

A

return

21
Q

print the arguments to a function on current stack frame

A

info args

22
Q

list all the threads

A

info threads

23
Q

print type of named variable

A

whatis <var> </var>

24
Q

print local variables in current stackframe

A

info locals

25
Q

print variables in hex

A

print/x