This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
User-defined commands, breakpoint "commands" hooks, parser bug?
- To: gdb at sourceware dot cygnus dot com
- Subject: User-defined commands, breakpoint "commands" hooks, parser bug?
- From: tqbf at skoda dot sockpuppet dot org
- Date: Wed, 13 Sep 2000 20:41:44 -0500
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?"