Fix file name matching on remote host.
authorYao Qi <yao@codesourcery.com>
Mon, 15 Sep 2014 09:40:54 +0000 (17:40 +0800)
committerYao Qi <yao@codesourcery.com>
Wed, 15 Oct 2014 07:33:24 +0000 (15:33 +0800)
commit65d7b369af5b9557cde8fbe6f63cefa215c0af60
tree246905272790ebb0a004cdfdf32b2f6569315306
parent46dc13946233b4b5ac2b34fb78e19fe60cd0606a
Fix file name matching on remote host.

I see the following fails in the remote host testing we do for mingw32
hosted GDB,

python print (symtab[1][0].symtab)^M
python.c^M
(gdb) FAIL: gdb.python/python.exp: Test decode_line current locationn filename

python print (symtab[1][0].symtab)^M
python.c^M
(gdb) FAIL: gdb.python/python.exp: Test decode_line python.c:26 filename

The test cases doesn't consider remote host and assumes that directory
on build also exists on host.  In this patch, we only match file base
name if host is remote, otherwise, match file with dir name.

gdb/testsuite:

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

* gdb.python/py-symbol.exp: Match file base name if host is
remote, otherwise match file name with dir name.
* gdb.python/py-symtab.exp: Likewise.
* gdb.python/python.exp: Likewise.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-symbol.exp
gdb/testsuite/gdb.python/py-symtab.exp
gdb/testsuite/gdb.python/python.exp
This page took 0.024552 seconds and 4 git commands to generate.