This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch: restoring multi-line breakpoint commands


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]