This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] Remove comments from user_code in gdb_test_multiple
- From: Markus Deuling <deuling at de dot ibm dot com>
- To: GDB Patches <gdb-patches at sourceware dot org>
- Cc: Ulrich Weigand <uweigand at de dot ibm dot com>
- Date: Thu, 27 Mar 2008 16:23:38 +0100
- Subject: [patch] Remove comments from user_code in gdb_test_multiple
Hi,
this patch removes all comments from user_code given to gdb_test_multiple. This allows
to have comments in code snippets given to gdb_test_multiple like for exmaple proposed
in this patch:
http://sourceware.org/ml/gdb-patches/2008-03/msg00290.html
ChangeLog:
* lib/gdb.exp (gdb_test_multiple): Remove comments from user_code.
Ok ?
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
diff -urpN src/gdb/testsuite/lib/gdb.exp dev/gdb/testsuite/lib/gdb.exp
--- src/gdb/testsuite/lib/gdb.exp 2008-03-10 11:23:52.000000000 +0100
+++ dev/gdb/testsuite/lib/gdb.exp 2008-03-27 16:15:08.000000000 +0100
@@ -566,6 +566,7 @@ proc gdb_test_multiple { command message
# input doesn't contain a pattern which contains actual embedded newlines
# at this point!
+ regsub -all {[;#].*?[\n]} ${user_code} { } user_code
regsub -all {\n} ${user_code} { } subst_code
set subst_code [uplevel list $subst_code]