Fix py-parameter.exp for remote host
authorYao Qi <yao@codesourcery.com>
Mon, 15 Sep 2014 11:06:22 +0000 (19:06 +0800)
committerYao Qi <yao@codesourcery.com>
Wed, 15 Oct 2014 07:33:24 +0000 (15:33 +0800)
commit10c5f0a8a83c4fcec433a2498c4d205921413e6a
tree06f22c7b8052cc633556b64cc51168f30e8b8c19
parent65d7b369af5b9557cde8fbe6f63cefa215c0af60
Fix py-parameter.exp for remote host

Test gdb.python/py-parameter.exp expects output "$srcdir/$subdir:\$cdir:\$cwd",
but proc gdb_reinitialize_dir doesn't set $srcdir/$subdir in search
directories on remote host because it doesn't exist on remote host.

proc gdb_reinitialize_dir { subdir } {
    global gdb_prompt

    if [is_remote host] {
return ""
    }

It causes the fail below:

(gdb) python print (gdb.parameter ('directories'))^M
/tmp/gdb:$cdir:$cwd^M
(gdb) FAIL: gdb.python/py-parameter.exp: python print (gdb.parameter ('directories'))

This patch is to fix this fail by not matching $srcdir/$subdir on remote host.

gdb/testsuite:

2014-10-15  Yao Qi  <yao@codesourcery.com>

* gdb.python/py-parameter.exp: Don't match $srcdir/$subdir on
remote host.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-parameter.exp
This page took 0.036076 seconds and 4 git commands to generate.