Mike Ash
b726056f5f
[RemoteMirror] Fix up test.py to pass python_lint.
...
rdar://problem/59909982
2020-03-25 10:06:58 -04:00
Mike Ash
15468ee70a
[RemoteMirror] Remove C++isms from interop header and clean up.
...
* Change nullptr to NULL.
* Change bool to int.
* Fix missing DataLayout parameter in createReflectionContext.
* Silence unused parameter warnings in the minimalDataLayoutQueryFunctions.
rdar://problem/59909982
2020-03-23 13:53:35 -04:00
Mike Ash
b51b60b227
[RemoteMirror] Add missing test.swift file for interop tests.
2019-03-25 20:51:17 -04:00
Mike Ash
2b89074944
[RemoteMirror] Add a call to the interop header to set the upcoming classIsSwiftMask value.
2019-02-13 14:59:05 -05:00
Mike Ash
4ae12f3c3b
[RemoteMirror] Fix lint errors in RemoteMirrorInterop/test.py, and make relative path args work when the working directory is not the script's enclosing directory.
2018-11-26 11:12:16 -05:00
Mike Ash
47be50cccc
[RemoteMirror] Update interop to handle 4.2 libraries.
...
The Remote Mirror interop header now accepts an arbitrary number of remote mirror libraries so that it can have 4.1, 4.2, and 5.0 loaded side by side.
rdar://problem/45808282
2018-11-26 11:12:16 -05:00
Mike Ash
32b48f4082
[RemoteMirrors] Use RTLD_LOCAL when loading the remote mirrors dylibs in the test program to avoid symbol clashes when loading two of them.
...
rdar://problem/37538580
2018-03-08 13:25:41 -05:00
Mike Ash
ac026128d1
[RemoteMirrors] Provide interop function for converting a raw metadata pointer into a swift_metadata_interop_t.
...
rdar://problem/37538580
2018-03-08 13:25:09 -05:00
Mike Ash
0e3044bd3a
[RemoteMirrors] Provide interop types for typeinfo and childinfo.
...
rdar://problem/37538580
2018-03-08 10:28:11 -05:00
Mike Ash
83837ccd12
[RemoteMirrors] Clean up some documentation, comments and macros. Add an assert for pointer sizes that don't match what SwiftRemoteMirror.cpp was built with.
2018-03-01 15:39:14 -05:00
Mike Ash
b3522fa139
[RemoteMirrors] Read the TEXT segment into local memory when getting legacy reflection sections. Test that this works when memory is read into a dynamic buffer.
2018-03-01 13:56:29 -05:00
Mike Ash
c059ff2a5c
[RemoteMirrors] Fix the ownership check for legacy libraries. The working implementation requires a non-legacy library to be present. Fall back to always saying "yes" otherwise.
2018-02-27 17:06:37 -05:00
Mike Ash
0b5876607e
[RemoteMirrors] Implement object ownership interop for the legacy library. This avoids crashing when inspecting newer metadata with only the legacy library loaded.
2018-02-27 15:16:16 -05:00
Mike Ash
16c571f65f
[RemoteMirrors] Make the test script work when executed from a different directory.
2018-02-27 15:16:15 -05:00
Mike Ash
71f1c391ab
[RemoteMirrors] Move FreeBytesFunction from an out-parameter on ReadBytesFunction to a function pointer passed in when creating a reflection context.
2018-02-27 12:51:04 -05:00
Mike Ash
ff3a3ec44f
[Reflection] Add some ad-hoc manually-run tests for the remote mirrors interop header.
...
rdar://problem/37538580
2018-02-26 16:40:09 -05:00