FAQ

1. Where is the main GDB project page?

2. Is there online documentation available?

3. How do I disable the "Type <return> to continue, or q <return> to quit" pagination prompt in GDB?

4. How do I redirect output from GDB to a file?

5. GDB reports a nonsensical return value from an inferior function call. What's going on?

6. How do I load/unload a shared library in GDB?

7. How to show the current instruction when single-stepping instructions?

8. GDB reports "Cannot find user-level thread for LWP 23957: generic error", how do I fix this?

9. GDB does not see any threads besides the one in which crash occurred; or SIGTRAP kills my program when I set a breakpoint.

10. GDB 6.8 doesn't compile with GCC x.y because of -Werror, what should I do?

11. Why doesn't anybody on the GDB IRC channel answer my question about my small distro's GDB, or my custom GDB?

12. I've run into a bug in GDB while using XCode. Can you help?

13. How do I print an STL container?

14. When connecting to gdbserver I get "Remote register badly formatted", "g packet reply to long" etc.

15. When I try "break 1" or "list" I get: "No symbol table is loaded."

16. Ending of the string is truncated with "...", is there a way to get the whole string?

17. How to trace every function entry and return?

18. Getting an internal error or other error while attaching to processes on GNU/Linux

19. Is there a way to set commands to be run on a segfault?

20. Is there a way to step into the last call (foo) without stepping into the inner calls (bar, baz)? "foo (bar (), baz ());"

All content (C) 2008 Free Software Foundation. For terms of use, redistribution, and modification, please see the WikiLicense page.