Other:GDB
From Anope Wiki
NOTE: This page is just a quick reference. For a more in-depth guide, please refer to the extended gdb page.
Why do i need GDB?
GDB is the GNU DeBugger. It's a helpful tool in finding the possible cause of crashes. By running Anope inside of GDB and using GDB to examine a crashed instance of Anope, you can report valuable information about the crashes you've been encountering.
How does it work?
To debug Anope in gdb, follow these instructions instead of simply running ./services:
- Start GDB
gdb ./services
- Run Anope in debug mode inside of GDB
run -debug -nofork
- Make Anope crash while it runs inside of GDB
- Produce a backtrace of the crash spot
bt
- Copy the output of the backtrace onto our paste page
- Exit GDB
quit

