Re: [patch] Remove comments from user_code in gdb_test_multiple

Daniel Jacobowitz
2008-03-27T15:32:30Z

On Thu, Mar 27, 2008 at 04:23:38PM +0100, Markus Deuling wrote:
> 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 ?

Won't this eat quoted # signs in the middle of patterns?
I suggest you move the comment inside the code block where it would be
valid, instead.

--
Daniel Jacobowitz
CodeSourcery