-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Labels
Milestone
Description
info functions
command does not output information if the program is stopped in a nested function.
(gdb_dev) vperevez@ansatnuc05:/localdisk/work/vperevez/numba-dppy/numba_dppy/examples/debug$ NUMBA_OPT=0 gdb-oneapi -q python
Reading symbols from python...
(gdb) break simple_dppy_func.py:22
No source file named simple_dppy_func.py.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (simple_dppy_func.py:22) pending.
(gdb) run simple_dppy_func.py
Starting program: /localdisk/work/vperevez/miniconda3/envs/gdb_dev/bin/python simple_dppy_func.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after fork from child process 2736192]
[Detaching after fork from child process 2736193]
[Detaching after fork from child process 2736194]
[New Thread 0x7fffdb97d700 (LWP 2736196)]
intelgt: gdbserver-gt started for process 2736186.
intelgt: attached to device 1 of 1; id 0x9bca (Gen9) on inferior 2.
[New Thread 0x7fffca8c9700 (LWP 2736200)]
[Detaching after fork from child process 2736201]
[Detaching after fork from child process 2736202]
[Detaching after fork from child process 2736203]
[Detaching after fork from child process 2736204]
[Detaching after fork from child process 2736205]
[New Thread 0x7fffbb1d5700 (LWP 2736206)]
[New Thread 0x7fffbadd4700 (LWP 2736207)]
[New Thread 0x7fffba9d3700 (LWP 2736208)]
[New Thread 0x7fffba5d2700 (LWP 2736209)]
[New Thread 0x7fffb9dd0700 (LWP 2736211)]
[New Thread 0x7fffba1d1700 (LWP 2736210)]
[New Thread 0x7fffb99cf700 (LWP 2736212)]
[New Thread 0x7fffb91cd700 (LWP 2736214)]
[New Thread 0x7fffb8dcc700 (LWP 2736215)]
[New Thread 0x7fffb95ce700 (LWP 2736213)]
[New Thread 0x7fffb89cb700 (LWP 2736216)]
[Detaching after fork from child process 2736217]
[Detaching after fork from child process 2736218]
[New Thread 1.1073741824]
[New Thread 1.1073742080]
[Switching to Thread 1.1073741824 lane 0]
Thread 2.2 hit Breakpoint 1, with SIMD lanes [0-7], __main__::func_sum () at simple_dppy_func.py:22
22 result = a_in_func + b_in_func
(gdb) info func func_sum
All functions matching regular expression "func_sum":
(gdb) info func __main__::func_sum
All functions matching regular expression "__main__::func_sum":
(gdb) bt
#0 __main__::func_sum () at simple_dppy_func.py:22
#1 __main__::kernel_sum () at simple_dppy_func.py:29
(gdb) info break
Num Type Disp Enb Address What
1 breakpoint keep y 0x00000000fffeafe0 in __main__::func_sum(float, float) at simple_dppy_func.py:22 inf 2
breakpoint already hit 1 time
(gdb) info kernel_sum
Undefined info command: "kernel_sum". Try "help info".
(gdb) info func kernel_sum
All functions matching regular expression "kernel_sum":
File simple_dppy_func.py:
26: void __main__::kernel_sum(DPPYArray<float, 1, C, mutable, aligned>, DPPYArray<float, 1, C, mutable, aligned>, DPPYArray<float, 1, C, mutable, aligned>);