Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r938:d9fa9535eaa1
Date: 2014-03-03 12:14 +0100
http://bitbucket.org/pypy/stmgc/changeset/d9fa9535eaa1/

Log:    Useful addition for gdb

diff --git a/c7/demo/demo_random.c b/c7/demo/demo_random.c
--- a/c7/demo/demo_random.c
+++ b/c7/demo/demo_random.c
@@ -43,6 +43,11 @@
 };
 __thread struct thread_data td;
 
+struct thread_data *_get_td(void)
+{
+    return &td;     /* for gdb */
+}
+
 
 ssize_t stmcb_size_rounded_up(struct object_s *ob)
 {
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to