summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/hist002.stdout
diff options
context:
space:
mode:
authorJames Clarke <jrtc27@jrtc27.com>2017-10-18 16:33:28 -0400
committerBen Gamari <ben@smart-cactus.org>2017-10-19 16:40:09 -0400
commitb6204f70501ec4ce4015503421c8a83c6f0fa008 (patch)
treee2d5b6daa6738a582700405235cb58a6c7bf6ddd /testsuite/tests/ghci.debugger/scripts/hist002.stdout
parent098dc97b80768a6aeabce4eb6d6d7e6e9a9a75b6 (diff)
downloadhaskell-b6204f70501ec4ce4015503421c8a83c6f0fa008.tar.gz
Untag the potential AP_STACK in stg_getApStackValzh
If the AP_STACK has been evaluated and a GC has run, the BLACKHOLE indirection will have been removed, and the StablePtr for the original AP_STACK referred to be GHCi will therefore now point directly to the value, and may be tagged. Add a hist002 test for this, and make sure hist001 doesn't do an idle GC, so the case when it's still a BLACKHOLE is definitely also tested. Reviewers: austin, bgamari, erikd, simonmar Reviewed By: simonmar Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D4099
Diffstat (limited to 'testsuite/tests/ghci.debugger/scripts/hist002.stdout')
-rw-r--r--testsuite/tests/ghci.debugger/scripts/hist002.stdout37
1 files changed, 37 insertions, 0 deletions
diff --git a/testsuite/tests/ghci.debugger/scripts/hist002.stdout b/testsuite/tests/ghci.debugger/scripts/hist002.stdout
new file mode 100644
index 0000000000..523605b00a
--- /dev/null
+++ b/testsuite/tests/ghci.debugger/scripts/hist002.stdout
@@ -0,0 +1,37 @@
+Breakpoint 0 activated at Test3.hs:1:14-15
+[2,3Stopped in Main.mymap, Test3.hs:1:14-15
+_result :: [a] = _
+-1 : mymap (Test3.hs:2:22-31)
+-2 : mymap (Test3.hs:2:18-20)
+-3 : mymap (Test3.hs:2:18-31)
+-4 : mymap (Test3.hs:2:22-31)
+-5 : mymap (Test3.hs:2:18-20)
+-6 : mymap (Test3.hs:2:18-31)
+<end of history>
+Logged breakpoint at Test3.hs:2:22-31
+_result :: [a]
+f :: t -> a
+xs :: [t]
+Ghci1._result :: [a] = _
+xs :: [t] = []
+f :: t -> a = _
+_result :: [a] = _
+Logged breakpoint at Test3.hs:2:18-20
+_result :: a
+f :: Integer -> a
+x :: Integer
+Ghci1._result :: [a] = _
+xs :: [t] = []
+Ghci2.f :: t -> a = _
+Ghci2._result :: [a] = _
+x :: Integer = 2
+f :: Integer -> a = _
+_result :: a = _
+_result = 3
+Logged breakpoint at Test3.hs:2:18-31
+_result :: [a]
+f :: Integer -> a
+x :: Integer
+xs :: [Integer]
+Logged breakpoint at Test3.hs:2:18-20
+_result :: a