[commit: ghc] master: Libdw: Remove special treatment for stg_stop_thread (bb446b2)

git at git.haskell.org git at git.haskell.org
Sun Nov 1 14:20:55 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/bb446b2636da7f3eda240863a0369396c4c2e419/ghc

>---------------------------------------------------------------

commit bb446b2636da7f3eda240863a0369396c4c2e419
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sat Sep 5 13:51:27 2015 +0200

    Libdw: Remove special treatment for stg_stop_thread
    
    This is no longer necessary since this symbol can be unwound through
    with its DWARF information.


>---------------------------------------------------------------

bb446b2636da7f3eda240863a0369396c4c2e419
 rts/Libdw.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/rts/Libdw.c b/rts/Libdw.c
index 70aee75..c8f945a 100644
--- a/rts/Libdw.c
+++ b/rts/Libdw.c
@@ -230,10 +230,7 @@ static int frame_cb(Dwfl_Frame *frame, void *arg) {
         backtrace_push(session->cur_bt, (StgPtr) pc);
     }
 
-    if ((void *) pc == &stg_stop_thread_info)
-        return DWARF_CB_ABORT;
-    else
-        return DWARF_CB_OK;
+    return DWARF_CB_OK;
 }
 
 Backtrace *libdw_get_backtrace(LibDwSession *session) {



More information about the ghc-commits mailing list