query
On this page

enableDWARFDebugging

pkgs.haskell.lib.enableDWARFDebugging

Docs pulled from | This Revision | 13 minutes ago


Useful for debugging segfaults with gdb.

  • This includes dontStrip.

Noogle detected

Implementation

The following is the current implementation of this function.

enableDWARFDebugging = drv:
   # -g: enables debugging symbols
   # --disable-*-stripping: tell GHC not to strip resulting binaries
   # dontStrip: see above
   appendConfigureFlag "--ghc-options=-g --disable-executable-stripping --disable-library-stripping" (dontStrip drv);