diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/gdb.python/py-send-packet.exp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.python/py-send-packet.exp b/gdb/testsuite/gdb.python/py-send-packet.exp index 11f0043..5cb2f5a 100644 --- a/gdb/testsuite/gdb.python/py-send-packet.exp +++ b/gdb/testsuite/gdb.python/py-send-packet.exp @@ -80,9 +80,9 @@ if { ! $skip_auxv_test } { } } - # Expand the '\x' in the output, so we can pass a string through - # to Python. - set reply_data [string map {\x \\x} $reply_data] + # Escape any backslash characters in the output, so we can safely + # pass a string through to Python. + set reply_data [string map {\\ \\\\} $reply_data] gdb_assert { ![string equal "$reply_data" ""] } # Run the test, fetches the auxv data in Python and confirm it |