This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -var-create testsuite updates [PATCH]


Nick Roberts wrote:

>2007-02-16  Nick Roberts  <nickrob@snap.net.nz>
>
>        * gdb.mi/mi-var-block.exp, gdb.mi/mi2-var-block.exp
>        * gdb.mi/mi-var-child.exp, gdb.mi/mi2-var-child.exp
>        * gdb.mi/mi-var-child-f.exp, gdb.mi/mi-var-cmd.exp
>        * gdb.mi/mi2-var-cmd.exp, gdb.mi/mi-var-display.exp
>        * gdb.mi/mi2-var-display.exp, gdb.mi/gdb701.exp
>        Revert tests to use mi_gdb_test and include value field in output
>        of -var-create.

>! mi_gdb_test "-var-create lpcharacter * lpcharacter" \
>!       "\\^done,name=\"lpcharacter\",numchild=\"1\",value=\"$hex \\\\\".*\\\\\"\",type=\"char \\*\"" \
>!       "create local variable lpcharacter"

I'm not completely sure what the somewhat complex regular expression after "value"
is supposed to test, but it fails on SPU.  I get:

-var-create lpcharacter * lpcharacter^M
^done,name="lpcharacter",numchild="1",value="0x0",type="char *"^M
(gdb) ^M
FAIL: gdb.mi/mi-var-cmd.exp: create local variable lpcharacter

Is this a testcase problem, or is there really something going wrong?

(B.t.w. the same problem occurs also in mi2-var-cmd.exp.)

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]