[GHC] #15955: Cannot get debugging symbols for compiled c-sources
GHC
ghc-devs at haskell.org
Mon Nov 26 23:07:42 UTC 2018
#15955: Cannot get debugging symbols for compiled c-sources
-------------------------------------+-------------------------------------
Reporter: nh2 | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.8.1
Component: Compiler | Version: 8.2.2
Resolution: | 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 nh2):
Thanks to bgamari and slyfox on IRC, I found that all that matters is that
the symbols are in the generated `.s` assembly file. When that is the
case, it isn't necessary to pass `-g` to `as`.
And it turned out the issue is somewhere completely different.
https://github.com/haskell/cabal/commit/81017f44
Looks like Cabal strips the executable at install time; if I had run the
executable in `dist/`, it wouldn't have, and indeed that one has my
symbols.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15955#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list