Other:GDB

From Anope Wiki

Jump to: navigation, search

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:

  1. Start GDB
    gdb ./services
  2. Run Anope in debug mode inside of GDB
    run -debug -nofork
  3. Make Anope crash while it runs inside of GDB
  4. Produce a backtrace of the crash spot
    bt
  5. Copy the output of the backtrace onto our paste page
  6. Exit GDB
    quit
Personal tools