Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] Remove comments from user_code in gdb_test_multiple
@ 2008-03-27 15:24 Markus Deuling
  2008-03-27 15:32 ` Daniel Jacobowitz
  0 siblings, 1 reply; 11+ messages in thread
From: Markus Deuling @ 2008-03-27 15:24 UTC (permalink / raw)
  To: GDB Patches; +Cc: Ulrich Weigand

[-- Attachment #1: Type: text/plain, Size: 424 bytes --]

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


[-- Attachment #2: gdb_multiple_cmt --]
[-- Type: text/plain, Size: 532 bytes --]

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]
 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-03-31  8:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-27 15:24 [patch] Remove comments from user_code in gdb_test_multiple Markus Deuling
2008-03-27 15:32 ` Daniel Jacobowitz
2008-03-27 15:47   ` Markus Deuling
2008-03-27 15:55     ` Daniel Jacobowitz
2008-03-27 17:52       ` Ulrich Weigand
2008-03-28  9:16         ` Markus Deuling
2008-03-28 16:00           ` Ulrich Weigand
2008-03-31  8:42             ` Markus Deuling
2008-03-27 16:35     ` Andrew STUBBS
2008-03-28  8:57       ` Markus Deuling
2008-03-28  9:40         ` Andrew STUBBS

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox