As an example, of you want to watch the value of a loop variable count, you should type
watch COUNT
|
Or if you want stop when a certain function (e.g MyFunction) is called, type
break MYFUNCTION
|
You can also use the following user function to print strings:
define pst
set $pos=&$arg0 set $strlen = {byte}$pos print {char}&$arg0.st@($strlen+1) end document pst Print out a Pascal string end |
If you insert it in your gdb.ini