How can you list all functions in a program with GDB? Answer info functions prints the names and data types of all defined functions. See 16 Examining the Symbol Table.
Tag: gdb
gdb how to get thread name displayed
There are many threads created in my application. some of the threads name are visible in the gdb while i execute the command ‘info threads’, others are not displayed. How to get all the thread name itself instead of the hex value like 0xb7fe1424 Answer If you upgrade to gdb 7.3 or later, “info thread” will show thread names; at
Permanently Change Disassembly Flavor in GDB
How can I permanently change the disassembly flavor in GDB. I tried:set disassembly-flavor intel in GDB, but when I fire up GDB later it still has the att flavor. Answer gdb executes a ~/.gdbinit file when it starts, if present; you should be able to add the line to it.
Setting GDB hardware watchpoint/how to set software watchpoint
An earlier question explained that on x86 the size of objects being watched is limited by debug registers. As expected, I can “watch” a double variable. But I can’t watch a double datamember, for example, produces But when you try to continue execution, it says Could not insert hardware breakpoints: You may have requested too many hardware breakpoints/watchpoints. even though