[gdb/testsuite] Fix auto-indent in gdb.gdb/python-helper.exp
authorTom de Vries <tdevries@suse.de>
Mon, 24 Apr 2023 20:08:53 +0000 (22:08 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 24 Apr 2023 20:08:53 +0000 (22:08 +0200)
commit6d5d644e3cece1b2bbfe50c9b7e5866d656f81fb
tree0d27e8f88ba2afa3ec505139c84642797fa51a01
parent60732b42936b322a30d2d08618432eabb94b5a67
[gdb/testsuite] Fix auto-indent in gdb.gdb/python-helper.exp

When editing gdb.gdb/python-helper.exp, auto-indent is broken in my editor
(emacs).

The problem is that this:
...
if { 1 } {
    foo "{" "}"<ENTER>bar
}
...
produces this:
...
if { 1 } {
    foo "{" "}"
bar
}
...

Note that this doesn't happen for "{}".

Fix this by using "\{" and "\}".

Tested on x86_64-linux.
gdb/testsuite/gdb.gdb/python-helper.exp