gdb & objcopy Flashcards

1
Q

objcopy –add-gnu-debuglink=

A

Add a debug symbol file to an existing binary

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

info functions

A

Shows function info in gdb

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

info source

A

Shows source info in gdb if the source file is present

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

info variables

A

Shows variable info in gdb

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

info scope FUNCTIONNAME

A

Info on variables ina specific scope

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

info scope

A

Shows functions with scoped variables

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

objcopy –only-keep-debug

A

Strips symbols from binary into a separate file

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

strip –strip-debug –strip-unneeded

A

Removes all possible symbols from a binary

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

(gdb) symbol-file FILENAME

A

Loads a symbol file into gdb

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

maint print symbols FILENAME

A

Dumps symbols to file. Not sure whether this is inside of gdb or not.

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