Marco Domingues
2017-04-06 13:51:54 UTC
Hello everyone,
I’m trying to use ‘gdb’ to debug an OpenCL kernel but I’m having trouble using the command: (gdb) break filename:linenum
My idea was to set a breakpoint in the function “clEnqueueNDRangeKernel” (in src/librt/primitives/primitive_util.c) because I read online that kernels are only visible to ‘gdb’ after they are compiled.
But when I run the following commands inside the brlcad main directory:
$ gdb --args build/bin/mged build/bool.g
(gdb) b src/librt/primitives/primitive_util.c:1063
I get “no source file named src/librt/primitives/primitive_util.c”, even when i try to specify the full path to the file
Maybe someone that have used ‘gdb’ with brlcad before could point me what is missing?
Thanks in advance!
Cheers, Marco Domingues
I’m trying to use ‘gdb’ to debug an OpenCL kernel but I’m having trouble using the command: (gdb) break filename:linenum
My idea was to set a breakpoint in the function “clEnqueueNDRangeKernel” (in src/librt/primitives/primitive_util.c) because I read online that kernels are only visible to ‘gdb’ after they are compiled.
But when I run the following commands inside the brlcad main directory:
$ gdb --args build/bin/mged build/bool.g
(gdb) b src/librt/primitives/primitive_util.c:1063
I get “no source file named src/librt/primitives/primitive_util.c”, even when i try to specify the full path to the file
Maybe someone that have used ‘gdb’ with brlcad before could point me what is missing?
Thanks in advance!
Cheers, Marco Domingues