[GHC] #9952: Add -g<level>

minimal information, enough for making backtraces in parts of the
#9952: Add -g<level> -------------------------------------+------------------------------------- Reporter: tibbe | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.4 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- We should add debug info levels, just like GCC and LLVM has. In particular, I'd like to have -g1 which has (from https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html) program that you don't plan to debug. This includes descriptions of functions and external variables, and line number tables, but no information about local variables. This should let us have -g1 turned on even in production code, as it should grow binary sizes by much. This in turn should be a boon for debugability of programs. It should also allow us to offer some for of stack traces without any runtime cost (except when an exception with a stack trace is actually raised.) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9952 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9952: Add -g<level> -------------------------------------+------------------------------------- Reporter: tibbe | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.4 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by tibbe): * type: bug => feature request -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9952#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9952: Add -g<level>
-------------------------------------+-------------------------------------
Reporter: tibbe | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone: 8.0.1
Component: Compiler | Version: 7.8.4
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Changes (by thomie):
* status: new => closed
* resolution: => fixed
* milestone: => 8.0.1
Comment:
This is done I think. Please reopen if I misunderstood.
commit 7aaeaf81ea95c36fe1dc4da449cf6092a792fd09:
{{{
Author: Ben Gamari

#9952: Add -g<level> -------------------------------------+------------------------------------- Reporter: tibbe | Owner: Type: feature request | Status: closed Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.8.4 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Indeed. Thanks thomie! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9952#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC