What kind of programs can gdb be used to debug?
Can GDB 开发者_运维技巧be used to debug programs in languages other than C or C++, like Java?
GDB can debug a variety of file formats, but it doesn't support scripted languages (Perl, PHP, Python, etc) nor languages that run over a VM (Java, C#, etc). Nowadays it can even debug Java. It was made to debug native binaries like ELF, Mach-O, etc.
You can read the complete list of supported file formats on the official GDB documentation. Here!
精彩评论