I'm currently working on a bug and one of the things I often want to know is
what's on the stack. The problem is I can't see labels of continuations so the
information is really useless. Example:
>>> call printStack(((StgTSO*)0x42000e0198)->stackobj)
0x42000c8788: RET_SMALL (0x512d70)
I believe this is due to https://phabricator.haskell.org/D4722
(cc Sergei Azovskov)
I'm a bit surprised that gdb isn't showing anything though, it should know
that the address corresponds to a temporary symbol like `.L1234`. Perhaps
you need to compile with -g to make this work, I'm not sure.
On
I'm already using -g3. Here's my build.mk:
BuildFlavour = quick
ifneq "$(BuildFlavour)" ""
include mk/flavours/$(BuildFlavour).mk
endif
GhcRtsHcOpts += -O0 -g3
SRC_HC_OPTS += -g3
GhcStage1HcOpts += -g3
GhcStage2HcOpts += -g3
GhcLibHcOpts += -g3
STRIP_CMD
019 6:45 PM
> To: Simon Marlow
> Cc: ghc-devs; Sergei Azovskov
> Subject: Re: How do I find out which info table a continuation belongs to?
>
> I'm already using -g3. Here's my build.mk:
>
> BuildFlavour = quick
>
> ifneq "$(BuildFlavour)" &quo
> > Sent: Sunday, February 10, 2019 6:45 PM
> > To: Simon Marlow
> > Cc: ghc-devs; Sergei Azovskov
> > Subject: Re: How do I find out which info table a continuation belongs to?
> >
> > I'm already using -g3. Here's my build.mk:
> >
> >
Fixed in https://gitlab.haskell.org/ghc/ghc/merge_requests/1654
Ömer
Ömer Sinan Ağacan , 10 Şub 2019 Paz, 10:49
tarihinde şunu yazdı:
>
> I'm currently working on a bug and one of the things I often want to know is
> what's on the stack. The problem is I can't see labels of continuations so the
>