user defined command
Sebastien LE DUC
sebastien.leduc@st.com
Mon Apr 16 07:14:00 GMT 2007
Hi all,
I am trying to define a user defined command in which I want to set a
breakpoint and associate a command to it:
define nextev
tbreak *traceSched if $r2h == 0
commands
silent
tbreak *$r3h
cont
end
cont
end
The problem is that gdb takes the first "end" as the end of the
definition of the command instead of the end of the commands associated
to the breakpoint.
so I get an error for the second "end"
Anybody knows how I can achieve what I want?
Thanks in advance
Sebastien Le Duc
More information about the Gdb
mailing list