I\'d like to predefine some breakpoints in a gdb script and to invoke some special commands at these breakpoints and afterwards to automatically continue the program executi
You should take a look at the command
command, which enables you to add gdb commands as a breakpoint is hit. See the breakpoint command list section of the gdb manual.
For example:
break someFunction
commands
print var1
end
will, when the breakpoint on someFunction
is hit, automatically print var1
.