[commit: ghc] master: users-guide: Document -g flag (bc06655)

git at git.haskell.org git at git.haskell.org
Mon May 15 22:12:24 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/bc066558e83bfa741a58ec1797ac8fccc507266e/ghc

>---------------------------------------------------------------

commit bc066558e83bfa741a58ec1797ac8fccc507266e
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Mon May 15 14:21:38 2017 -0400

    users-guide: Document -g flag


>---------------------------------------------------------------

bc066558e83bfa741a58ec1797ac8fccc507266e
 docs/users_guide/debug-info.rst | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/docs/users_guide/debug-info.rst b/docs/users_guide/debug-info.rst
index 613936d..2f192f2 100644
--- a/docs/users_guide/debug-info.rst
+++ b/docs/users_guide/debug-info.rst
@@ -5,13 +5,14 @@ Since the 7.10 release GHC can emit a debugging information to help debugging
 tools understand the code that GHC produces. This debugging information is
 useable by most UNIX debugging tools.
 
-.. warning::
+.. ghc-flag:: -g, -g<n>
 
-   This feature is still in technology preview state. There are known cases
-   where requesting a stack-trace can cause your program to segmentation fault
-   (e.g. :ghc-ticket:`11353`, :ghc-ticket:`11338`, and :ghc-ticket:`11337`).
-   Consequently, we can not recommend that stack trace support be used in
-   production code.
+    :since: 7.10, numeric levels since 8.0
+
+    Emit debug information in object code. Currently only DWARF debug
+    information is supported on x86-64 and i386. Currently debug levels 0
+    through 3 are accepted, with 0 disabling debug information production.
+    Levels 1 through 3 are functionally equivalent.
 
 
 Tutorial



More information about the ghc-commits mailing list