Tuesday, July 20, 2010

How to set data break point?

Data break point is call watch break point in gdb.

use watch command with variable name like this:

watch [variable-name]

this command have gdb to stop the execution every time variable-name's value is changed.

No comments:

Post a Comment