How to make GDB substitute variables with their current value when a conditional breakpoint is created?

Use the eval command (apparently in gdb 7.2 and later).

Thank you - that works perfectly. Much appreciated. – user556144 Dec 31 '10 at 16:33.

For completness here is how to use the eval command with my original example: set variable $my_value = 1 eval "b my_function if my_param == %d", $my_value set variable $my_value = 5 eval "b my_function if my_param == %d", $my_value This generates two breakpoints for the values 1 and 5 as desired!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions