[patch] python testsuite disappearing py-objfile-script-gdb.py

Matt Rice ratmice@gmail.com
Thu Jul 7 02:07:00 GMT 2011


this fixes that py-objfile-script-gdb.py disappears when running the
testsuite with an
in-tree build.

had to rename the source file, since the auto-loading API is expecting
the destination
file to use the current name.

I'd also tried special casing the
remote_file host delete ${remote_python_file}

but couldn't figure out some dejagnu equivalent of if is_remote ||
(!is_remote && ${srcdir} == ".")
that special casing leaves it attempting to copy the file onto itself,
but dejagnu
seems to silently ignore that error.

The file hasn't been modified since its initial commit, so we aren't
losing a bunch of history,
just the reference to the atomic commit/other files it was first added with.

2011-07-06  Matt Rice <ratmice@gmail.com>

        * gdb.python/py-objfile-script-gdb.py: Renamed to
        py-objfile-script-gdb.py.in.
        * gdb.python/py-objfile-script-gdb.py.in: Renamed from
        py-objfile-script-gdb.py.
        * gdb.python/py-objfile-script.exp: Update reference to
        py-objfile-script-gdb.py.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.diff
Type: application/octet-stream
Size: 5312 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20110707/d9620fc3/attachment.obj>


More information about the Gdb-patches mailing list