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: Keith Seitz <keiths at cygnus dot com>
- Subject: Re: Patch: restoring multi-line breakpoint commands
- From: Tom Tromey <tromey at redhat dot com>
- Date: 05 Oct 2001 09:32:21 -0600
- Cc: Insight List <insight at sourceware dot cygnus dot com>
- References: <Pine.GSO.4.33.0110041932190.3696-100000@makita.cygnus.com>
- Reply-To: tromey at redhat dot com
>>>>> "Keith" == Keith Seitz <keiths@cygnus.com> writes:
Keith> + regsub -all -- $expr $commands \
Keith> + {[format "\\%c" [scan {\1} %c x; set x]]} new_commands
>> This is the part of the patch I don't understand.
>> Why is this necessary?
Keith> If you use convenience variable, these will get eval'd by tcl,
Keith> causing all kinds of problems, IIRC. Ditto for "[" and
Keith> "]". (Convenience variables start with "$".)
Where does this evalling happen? I think that it is probably a bug
elsewhere.
I think gdb_run_readline_command_no_output should take a list of
strings as arguments. Each string should be passed unchanged to
gdb_cmd, which should in turn pass them unchanged to the gdb command
interpreter. If Tcl-style evaluation happens to one of these strings
along the way, I think that is probably a bug there.
Tom