pocl: Debugging using GDB yields invalid/corrupt variables
When debugging a simple test kernel with GDB 8.1 on Ubuntu, (basic thread model, the kernel has only one parameter), GDB is neither able to read the right argument values nor the right locals values.
Can anyone reproduce this, or did I miss anything out?
My command for debugging is:
export POCL_DEBUG=all && export POCL_DEVICES="basic" && export POCL_LEAVE_KERNEL_COMPILER_TEMP_FILES=1 && export POCL_MAX_PTHREAD_COUNT=1 && cd bin && gdb --args ./test
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 24 (11 by maintainers)
Commits related to this issue
- Partial fix for #866 — committed to franz/pocl by franz 4 years ago
- Fix debuginfo for context arrays - issue #866 — committed to franz/pocl by franz 4 years ago
OK, hopefully it works now. Please reopen or create a new issue if there are still problems. Getting close to release 1.6.
When you single step, does the debugger step through the kernel multiple times, once for each WI?