Alex Bennee wrote:
> Yep I had been trying that. The main problem was not being able to do
> ith progamatically:
>
> b 869 if awatch (void *) *&n->timer
>
> Would of been useful. But conditinal breakpoints aren't really
> designed for setting newer breakpoints.
>
>
>   

In GDB you can use the "comm(and)" command to run an GDB command when a 
break point is hit, for example,
if you want to watch the first time the function "goo" is entered after 
"foo" has been entered, do this

b foo
b goo
disable 2
comm 1
enable 2
cont
<blank line>

run


This sets breakpoint 1 on "foo", breakpoint 2 on "goo".
It then disables breakpoint 2.
breakpoint 1, when hit, runs
"enable 2" and "cont"
to re-enable breakpoint 2, and then continue the debuggee.

The should work if  breakpoint 1  is conditional.

HTH,
Colin S. Miller



------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to