c - Attach totalview debugger to a variable -


so trying debug code. reason doesn't pass through section need to. governing variable calls piece of code pointer "*sret". tried lot no luck. c program. there way can attach watch point on variable? wouldn't recognize variable...it recognizes file though.

@ban,

if using totalview debugger great question. yes, provide watchpoints. however, set on memory locations, opposed variables. distinction important because if imagine function calls recursively , local variable x in function. can run program function, dive on x , set watchpoint on it. watchpoint trigger if specific instance of x (which points memory location in stack) written to. won't stop if, example, function calls again (which creates new, distinct, x @ different location in stack) , second x written to.

some other capabilities might find useful:

  • you can set value of variable directly in debugger. can use verify if variable has "right" value program behave expect it.

  • you can step instruction instruction on part of program expect should make decision go down code path looking into. displaying both source , assembly code useful kind of debugging.

  • if on linux-x86-64 platform may find replayengine capability helpful. lets run forwards , backwards through program -- might narrow in on happening keep program doing want.

let me know how on debugging problem. if found solution other way i'd curious well.

good luck!

chris gottbrath

principal product manager totalview @ rogue wave software

email: first dot last @ roguewave dot com


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo