<div dir="ltr"><div dir="ltr"><div dir="ltr">I believe this is due to <a href="https://phabricator.haskell.org/D4722">https://phabricator.haskell.org/D4722</a></div><div dir="ltr"><br></div><div>(cc Sergei Azovskov)</div><div><br></div><div>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.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 10 Feb 2019 at 07:50, Ömer Sinan Ağacan <<a href="mailto:omeragacan@gmail.com">omeragacan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm currently working on a bug and one of the things I often want to know is<br>
what's on the stack. The problem is I can't see labels of continuations so the<br>
information is really useless. Example:<br>
<br>
    >>> call printStack(((StgTSO*)0x42000e0198)->stackobj)<br>
    0x42000c8788: RET_SMALL (0x512d70)<br>
    0x42000c8790: RET_SMALL (0x40edf0)<br>
       stk[5] (0x42000c8798) = 0x7b3938<br>
    0x42000c87a0: CATCH_FRAME(0x735a98,0x7d3ff2)<br>
    0x42000c87b8: STOP_FRAME(0x7311b8)<br>
<br>
(I modified the printer to print stack locations when printing stacks)<br>
<br>
Here I need to know which info table the RET_SMALLs return to. Normally I do<br>
this for other kinds of closures:<br>
<br>
    >>> print ((StgClosure*)...)-><a href="http://header.info" rel="noreferrer" target="_blank">header.info</a><br>
    $15 = (const StgInfoTable *) 0x404dc0 <Main_nats_info><br>
<br>
But for continuations that doesn't work:<br>
<br>
    >>> print ((StgClosure*)0x42000c8788)-><a href="http://header.info" rel="noreferrer" target="_blank">header.info</a><br>
    $11 = (const StgInfoTable *) 0x512d80<br>
    >>> info symbol 0x512d80<br>
    No symbol matches 0x512d80.<br>
<br>
Anyone know how to make this work? Can I maybe mark the continuations label in<br>
the generated assembly somehow to make those labels available in gdb?<br>
<br>
Thanks<br>
<br>
Ömer<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div></div>