Btw, after installing the gdb optional package, we faced the following
problem:
./sage -gdb
sage: CTRL-C (to get the gdb prompt)
We set a break point in sage/structure/element.pyx:
(gdb) cy break sage.structure.element.ModuleElement.__add__
(gdb) c
sage: x = (ZZ^3)((2,-3,1))
sage: x + x
Breakpoint 1, __pyx_pw_4sage_9structure_7element_13ModuleElement_1__add__ (
__pyx_v_left=<sage.modules.vector_integer_dense.Vector_integer_dense at
remote 0x7fffb86f5fc8>,
__pyx_v_right=<sage.modules.vector_integer_dense.Vector_integer_dense
at remote 0x7fffb86f5fc8>) at
build/cythonized/sage/structure/element.c:11700
11700 static PyObject
*__pyx_pw_4sage_9structure_7element_13ModuleElement_1__add__(PyObject
*__pyx_v_left, PyObject *__pyx_v_right) {
(gdb) cy list
1294 """
1295
1296 ##################################################
1297 # Addition
1298 ##################################################
> 1299 def __add__(left, right):
1300 """
1301 Top-level addition operator for ModuleElements.
1302
1303 See extensive documentation at the top of element.pyx.
So far, so good.
But when we try to step in by
(gdb) cy step
the code hangs for ever.
Stepping in by
(gdb) s
seems to work though.
When we launched ./sage -gdb, we got the following warnings:
Python was not compiled with debug symbols (or it was stripped). Some
functionality may not work (properly).
warning: .cygdbinit: Aucun fichier ou dossier de ce type
Maybe this could be related ?
Eric.
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.