More Info

นอกจากการอ่าน memory และตัวแปรแล้ว GDB ยังสามารถดูข้อมูลอื่นๆเกี่ยวกับโปรแกรมและ OS ได้อีกมหาศาลเลย

ทั้งนี้เวลาพิมพ์แล้ว ต้องการหาข้อมูลต่างๆ สามารถหาจาก search engine หรือแม้แต่กด tab ใน GDB เลือกเอาก็ได้ครับ เช่น พิมพ์ info ลงใน GDB console แล้วกด tab ดู

(gdb) info
address                    proc
all-registers              program
args                       record
auto-load                  registers
auxv                       scope
bookmarks                  selectors
breakpoints                set
checkpoints                sharedlibrary
classes                    signals
common                     skip
copying                    source
dcache                     sources
display                    stack
exceptions                 static-tracepoint-markers
extensions                 symbol
files                      target
float                      tasks
frame                      terminal
frame-filter               threads
functions                  tracepoints
guile                      tvariables
handle                     type-printers
inferiors                  types

Info breakpoints

Info functions

Info registers

Info threads

Info files

Info variables

มีหลายคำสั่ง ผลลัพธ์ขึ้นอยู่กับ stack ที่เลือก (เลือกดีๆ)

Info Operating System

info os ต่างๆ เช่น cpus

Memory mappings

เรียกได้ว่าแทบมีทุกอย่างทีคุณต้องการแล้ว อยากได้อะไรหาไม่เจอ ลอง search engine ดูครับ มักจะเจอที่ต้องการเสมอเลย

Last updated

Was this helpful?