rts: Annotate BCOs with their Name
This introduces a new bytecode instruction, `BCO_NAME`, to aid in debugging bytecode execution. This instruction is injected by `mkProtoBCO` and captures the Haskell name of the BCO. It is then printed by the disassembler, allowing ready correlation with STG dumps.
Showing
- compiler/GHC/ByteCode/Asm.hs 11 additions, 6 deletionscompiler/GHC/ByteCode/Asm.hs
- compiler/GHC/ByteCode/Instr.hs 15 additions, 1 deletioncompiler/GHC/ByteCode/Instr.hs
- compiler/GHC/Driver/Flags.hs 1 addition, 0 deletionscompiler/GHC/Driver/Flags.hs
- compiler/GHC/Driver/Session.hs 1 addition, 0 deletionscompiler/GHC/Driver/Session.hs
- compiler/GHC/StgToByteCode.hs 33 additions, 14 deletionscompiler/GHC/StgToByteCode.hs
- compiler/ghc.cabal.in 1 addition, 0 deletionscompiler/ghc.cabal.in
- docs/users_guide/debugging.rst 14 additions, 2 deletionsdocs/users_guide/debugging.rst
- rts/Disassembler.c 8 additions, 2 deletionsrts/Disassembler.c
- rts/Interpreter.c 4 additions, 0 deletionsrts/Interpreter.c
- rts/include/rts/Bytecodes.h 2 additions, 0 deletionsrts/include/rts/Bytecodes.h
- rts/rts.cabal 1 addition, 1 deletionrts/rts.cabal
Loading
Please register or sign in to comment