Hi there, I remember having seen some numpy-aware gdb macros at some point, but cannot find any reference. Does anyone know of any ? David
On Sun, Nov 30, 2014 at 4:54 AM, David Cournapeau <cournape@gmail.com> wrote:
Hi there,
I remember having seen some numpy-aware gdb macros at some point, but cannot find any reference. Does anyone know of any ?
What would numpy aware gdb macros be? Never heard of them. Chuck
On Sun, Nov 30, 2014 at 5:45 PM, Charles R Harris <charlesr.harris@gmail.com
wrote:
On Sun, Nov 30, 2014 at 4:54 AM, David Cournapeau <cournape@gmail.com> wrote:
Hi there,
I remember having seen some numpy-aware gdb macros at some point, but cannot find any reference. Does anyone know of any ?
What would numpy aware gdb macros be? Never heard of them.
Python itself has some gdb macros ( https://wiki.python.org/moin/DebuggingWithGdb). You can do things like: # p is a PyObject * pointer to the list [1, 2]
pyo p [1, 2]
The idea would be to have a nice representation for arrays, dtypes, etc... David
Chuck
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
On Sun, Nov 30, 2014 at 10:41 PM, David Cournapeau <cournape@gmail.com> wrote:
On Sun, Nov 30, 2014 at 5:45 PM, Charles R Harris < charlesr.harris@gmail.com> wrote:
On Sun, Nov 30, 2014 at 4:54 AM, David Cournapeau <cournape@gmail.com> wrote:
Hi there,
I remember having seen some numpy-aware gdb macros at some point, but cannot find any reference. Does anyone know of any ?
What would numpy aware gdb macros be? Never heard of them.
Python itself has some gdb macros ( https://wiki.python.org/moin/DebuggingWithGdb).
You can do things like:
# p is a PyObject * pointer to the list [1, 2]
pyo p [1, 2]
The idea would be to have a nice representation for arrays, dtypes, etc...
David
this wiki entry is very very old or not aware of the official python gdb macros (which are built into gdb in typical linux distributions, no extra configuration required). and the macros are awesome, they are extremely helpful in debugging python extension codes. The current commands are: py-list py-bt py-print py-locals py-up/py-down having similar macros for numpy types might be useful, but at least I more often than not one does want the actual C structure than a pretty representation which is just *(type*)PyArray_DATA(arr)@10 away.
On Mon, Dec 1, 2014 at 1:44 AM, Julian Taylor <jtaylor.debian@googlemail.com
wrote:
On Sun, Nov 30, 2014 at 10:41 PM, David Cournapeau <cournape@gmail.com> wrote:
On Sun, Nov 30, 2014 at 5:45 PM, Charles R Harris < charlesr.harris@gmail.com> wrote:
On Sun, Nov 30, 2014 at 4:54 AM, David Cournapeau <cournape@gmail.com> wrote:
Hi there,
I remember having seen some numpy-aware gdb macros at some point, but cannot find any reference. Does anyone know of any ?
What would numpy aware gdb macros be? Never heard of them.
Python itself has some gdb macros ( https://wiki.python.org/moin/DebuggingWithGdb).
You can do things like:
# p is a PyObject * pointer to the list [1, 2]
pyo p [1, 2]
The idea would be to have a nice representation for arrays, dtypes, etc...
David
this wiki entry is very very old or not aware of the official python gdb macros (which are built into gdb in typical linux distributions, no extra configuration required).
ups I scrolled to far to the legacy section, the earlier parts do mention the new macros :)
On 30.11.2014 12:54, David Cournapeau wrote:
I remember having seen some numpy-aware gdb macros at some point, but cannot find any reference. Does anyone know of any ?
Though I have no idea what a NumPy-aware GDB macro looked like, I'd be interested in other people's input on debugging cross-language projects (Cython/Python/C/Fortran) involving NumPy. I use cygdb but find it hard (or rather impossible) to maintain debug builds of all parts of the toolchain I use. Python itself is fine, but how do you deal with debug builds for the scientific parts of the toolchain if you build from source? Thanks for your answers! Alex
participants (4)
-
Alexander Eberspächer -
Charles R Harris -
David Cournapeau -
Julian Taylor