Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* user defined command
@ 2007-04-16  7:14 Sebastien LE DUC
  2007-04-16 10:48 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Sebastien LE DUC @ 2007-04-16  7:14 UTC (permalink / raw)
  To: gdb

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-04-17  8:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-16  7:14 user defined command Sebastien LE DUC
2007-04-16 10:48 ` Daniel Jacobowitz
2007-04-16 19:38   ` Eli Zaretskii
2007-04-17  8:31     ` Denis PILAT

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox