* User-defined commands, breakpoint "commands" hooks, parser bug?
@ 2000-09-13 18:41 tqbf
2000-09-15 11:37 ` Fernando Nasser
0 siblings, 1 reply; 2+ messages in thread
From: tqbf @ 2000-09-13 18:41 UTC (permalink / raw)
To: gdb
Hi. I've got a question about the way GDB processes user-defined
command definitions.
It seems that this is valid:
define foo
if bar
c
end
end
But this is not valid:
define foo
b bar
commands $bpnum
c
end
end
In the first case, GDB recognizes the first "end" as terminating
the "if" statement. In the second, GDB doesn't recognize the "end"
as terminating the "commands" statement.
My version string reads "GNU gdb 5.0".
Thanks for any info you can give me.
-----------------------------------------------------------------------
Thomas H. Ptacek Sonicity, Inc.
-----------------------------------------------------------------------
"If you're so special, why aren't you dead?"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: User-defined commands, breakpoint "commands" hooks, parser bug?
2000-09-13 18:41 User-defined commands, breakpoint "commands" hooks, parser bug? tqbf
@ 2000-09-15 11:37 ` Fernando Nasser
0 siblings, 0 replies; 2+ messages in thread
From: Fernando Nasser @ 2000-09-15 11:37 UTC (permalink / raw)
To: tqbf; +Cc: gdb
Yes, this seems like a bug.
Thanks for letting us know.
Fernando
tqbf@skoda.sockpuppet.org wrote:
>
> Hi. I've got a question about the way GDB processes user-defined
> command definitions.
>
> It seems that this is valid:
>
> define foo
> if bar
> c
> end
> end
>
> But this is not valid:
>
> define foo
> b bar
> commands $bpnum
> c
> end
> end
>
> In the first case, GDB recognizes the first "end" as terminating
> the "if" statement. In the second, GDB doesn't recognize the "end"
> as terminating the "commands" statement.
>
> My version string reads "GNU gdb 5.0".
>
> Thanks for any info you can give me.
>
> -----------------------------------------------------------------------
> Thomas H. Ptacek Sonicity, Inc.
> -----------------------------------------------------------------------
> "If you're so special, why aren't you dead?"
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@cygnus.com
2323 Yonge Street, Suite #300 Tel: 416-482-2661 ext. 311
Toronto, Ontario M4P 2C9 Fax: 416-482-6299
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-09-15 11:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-13 18:41 User-defined commands, breakpoint "commands" hooks, parser bug? tqbf
2000-09-15 11:37 ` Fernando Nasser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).