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
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to