This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: Patch: restoring multi-line breakpoint commands
- To: Tom Tromey <tromey at redhat dot com>
- Subject: Re: Patch: restoring multi-line breakpoint commands
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Tue, 2 Oct 2001 14:55:18 -0700 (PDT)
- cc: Insight List <insight at sourceware dot cygnus dot com>
On 2 Oct 2001, Tom Tromey wrote:
> Ok to commit?
Yes, but there is still a problem. :-(
I will take a look at it, because it is internals. The list of commands
from gdb_get_breakpoint_info is not correct. :-(
Consider the commands:
(gdb) commands
> printf "Hello!\n"
> set $i=0
> while ($i<10)
> printf "i=%d\n", $i
> set $i=$i+1
> end
> end
This gets us the command list: {printf "Hello\n"} {set $i=0} {($i<10)}
Obviously, we're missing some information here. :-(
I'll see what I can dig up.
Keith
PS. As far as sessions go, should we encapsulate this stuff in a
class/namespace, too? I know it doesn't really matter, but maybe it would
be "cleaner"?