* 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
* Re: user defined command
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
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-04-16 10:48 UTC (permalink / raw)
To: Sebastien LE DUC; +Cc: gdb
On Mon, Apr 16, 2007 at 09:13:55AM +0200, Sebastien LE DUC wrote:
> 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?
Please try using a CVS snapshot of GDB. I believe this has been
fixed.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: user defined command
2007-04-16 10:48 ` Daniel Jacobowitz
@ 2007-04-16 19:38 ` Eli Zaretskii
2007-04-17 8:31 ` Denis PILAT
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2007-04-16 19:38 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: sebastien.leduc, gdb
> Date: Mon, 16 Apr 2007 06:47:55 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: gdb@sourceware.org
>
> On Mon, Apr 16, 2007 at 09:13:55AM +0200, Sebastien LE DUC wrote:
> > 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?
>
> Please try using a CVS snapshot of GDB. I believe this has been
> fixed.
It should be fixed yes. If not, please holler.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: user defined command
2007-04-16 19:38 ` Eli Zaretskii
@ 2007-04-17 8:31 ` Denis PILAT
0 siblings, 0 replies; 4+ messages in thread
From: Denis PILAT @ 2007-04-17 8:31 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Daniel Jacobowitz, sebastien.leduc, gdb
Eli Zaretskii wrote:
>> Date: Mon, 16 Apr 2007 06:47:55 -0400
>> From: Daniel Jacobowitz <drow@false.org>
>> Cc: gdb@sourceware.org
>>
>> On Mon, Apr 16, 2007 at 09:13:55AM +0200, Sebastien LE DUC wrote:
>>
>>> 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?
>>>
>> Please try using a CVS snapshot of GDB. I believe this has been
>> fixed.
>>
>
> It should be fixed yes. If not, please holler.
>
>
It has been fixed a few months ago, after 6.6 has been released.
Denis
^ 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