Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When debugging or linking, what does the word "symbol" refer to?

I am doing some work with gdb and have found references in the documentation to "symbols". Is this another word for externally (exported) visible variables ?

Thanks,

Scott

like image 923
Scott Davies Avatar asked Dec 28 '22 04:12

Scott Davies


1 Answers

A 'symbol' is a symbolic identifier including function and variable names.

The compiler/linker create a symbol table during the build and this is used by the debugger to provide source-level symbolic names to these entities, as opposed to plain addresses (hence the name "symbolic debugger" which you may come across).

like image 155
Clifford Avatar answered Dec 31 '22 15:12

Clifford