(gdb) info sharedlibrary
(gdb) set solib-search-path /path/to/symbol/folder
(gdb) info threads
(gdb) thread 1
(gdb) thread 2
(gdb) info proc all
(gdb) info proc status
(gdb) info proc stat
(gdb) info proc mappings
(gdb) info files
(gdb) info frame
(gdb) bt
(gdb) bt full
In a running system, print the mappings of a process:
# cat /proc/<pid>/pmap
Examine the stack usage in a core dump:
(gdb) info threads
(gdb) thread <crashed_thread_id>
(gdb) info stack
# select the frame on top
(gdb) frame 0
(gdb) set $topsp=$sp
# select the frame on bottom
(gdb) frame <earliest_frame_id>
(gdb) print (char *)$sp - (char *)$topsp
# the value is an approximation of the stack usage