Re: [Numpy-discussion] Help needed GDB

2020-12-29 Thread Amardeep Singh
Hi Apologies Once last issue is pending.Any pointers are helpful. I am following the below docs. Next you need to write a Python script that invokes the C code whose execution you want to debug. For instance mytest.py: import numpy as npx = np.arange(5)np.empty_like(x) Now, you can run: $ g

Re: [Numpy-discussion] Help needed GDB

2020-12-29 Thread Amardeep Singh
Hi All I was able to fix. >import sys >print(sys.version_info) >end sys.version_info(major=3, minor=9, micro=1, releaselevel='final', serial=0) (gdb) quit https://github.com/crosstool-ng/crosstool-ng/issues/1308 this was the issue. The solution is to open /gdb/python/python-config.py

Re: [Numpy-discussion] Help needed GDB

2020-12-29 Thread Amardeep Singh
Hi All when i. try to use python3 installed on my macbook i get this. checking for libmpfr... no configure: WARNING: MPFR is missing or unusable; some features may be unavailable. checking whether to use python... /usr/local/bin/python3 checking for python... no configure: error: no usable py

Re: [Numpy-discussion] Help needed GDB

2020-12-29 Thread Amardeep Singh
Hi All, I was able to fix it but one thing i am not getting. it is building with python 2. I need python 3 enabled gdb. ./configure --with-python. --> how to make it to use python 3 installed on my machine? thx On Tue, Dec 29, 2020 at 1:55 PM Amardeep Singh wrote: > Hi All, > > I am try

[Numpy-discussion] Help needed GDB

2020-12-28 Thread Amardeep Singh
Hi All, I am trying to debug c code of numpy via gdb.Can someone help me with this? i am getting " Python scripting is not supported in this copy of GDB". How to install python supported gdb on win10? https://numpy.org/doc/stable/dev/development_environment.html I am following the steps in the