Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for readSymbols (0.11 sec)

  1. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/binaryinfo/ReadelfBinaryInfo.groovy

            def lines = process.inputStream.readLines()
            return readSymbols(lines)
        }
    
        /**
         * This parses the command-line output of readelf -s and extracts all FILE symbols.
         *
         * @return list of symbols representing the source files included in the binary
         */
        @VisibleForTesting
        static List<Symbol> readSymbols(List<String> lines) {
            def symbols = []
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 15:17:55 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/platform/internal/ReadelfBinaryInfoTest.groovy

        52: 0000000000401090     0 FUNC    GLOBAL DEFAULT  UND _ZNSt8ios_base4I[...]
    """
            def inputLines = input.readLines()
            def symbols = ReadelfBinaryInfo.readSymbols(inputLines)
    
            then:
            symbols.size() == 4
            symbols*.name.containsAll(['multiply.cpp', 'sum.cpp', 'greeter.cpp', 'main.cpp'])
        }
    
        @Unroll("reads soname value with #language readelf output")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 23:09:11 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top