Is there a way to set a breakpoint in GDB for when a particular index of an array changes?
That is, can I make it stop when array[25] changes? This would be happening in the kernel, of course.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If it follows the same commands as gdb, the command would be something like
watch array[25]Edit: As of September 2010 watchpoints were not implemented, and you need a watchpoint to do this. http://forums.nvidia.com/index.php?showtopic=180367