Bump google.golang.org/api
This commit is contained in:
58
vendor/github.com/google/pprof/internal/binutils/testdata/build_binaries.sh
generated
vendored
Executable file
58
vendor/github.com/google/pprof/internal/binutils/testdata/build_binaries.sh
generated
vendored
Executable file
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash -x
|
||||
|
||||
# Copyright 2019 Google Inc. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# This is a script that generates the test executables for MacOS and Linux
|
||||
# in this directory. It should be needed very rarely to run this script.
|
||||
# It is mostly provided as a future reference on how the original binary
|
||||
# set was created.
|
||||
|
||||
# When a new executable is generated, hardcoded addresses in the
|
||||
# functions TestObjFile, TestMachoFiles in binutils_test.go must be updated.
|
||||
|
||||
set -o errexit
|
||||
|
||||
cat <<EOF >/tmp/hello.c
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
printf("Hello, world!\n");
|
||||
return 0;
|
||||
}
|
||||
EOF
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||
rm -rf exe_linux_64*
|
||||
cc -g -o exe_linux_64 /tmp/hello.c
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
cat <<EOF >/tmp/lib.c
|
||||
int foo() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
int bar() {
|
||||
return 2;
|
||||
}
|
||||
EOF
|
||||
|
||||
rm -rf exe_mac_64* lib_mac_64*
|
||||
clang -g -o exe_mac_64 /tmp/hello.c
|
||||
clang -g -o lib_mac_64 -dynamiclib /tmp/lib.ca
|
||||
else
|
||||
echo "Unknown OS: $OSTYPE"
|
||||
exit 1
|
||||
fi
|
BIN
vendor/github.com/google/pprof/internal/binutils/testdata/exe_linux_64
generated
vendored
Executable file
BIN
vendor/github.com/google/pprof/internal/binutils/testdata/exe_linux_64
generated
vendored
Executable file
Binary file not shown.
BIN
vendor/github.com/google/pprof/internal/binutils/testdata/exe_mac_64
generated
vendored
Executable file
BIN
vendor/github.com/google/pprof/internal/binutils/testdata/exe_mac_64
generated
vendored
Executable file
Binary file not shown.
20
vendor/github.com/google/pprof/internal/binutils/testdata/exe_mac_64.dSYM/Contents/Info.plist
generated
vendored
Normal file
20
vendor/github.com/google/pprof/internal/binutils/testdata/exe_mac_64.dSYM/Contents/Info.plist
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.apple.xcode.dsym.exe_mac_64</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>dSYM</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
</plist>
|
BIN
vendor/github.com/google/pprof/internal/binutils/testdata/exe_mac_64.dSYM/Contents/Resources/DWARF/exe_mac_64
generated
vendored
Normal file
BIN
vendor/github.com/google/pprof/internal/binutils/testdata/exe_mac_64.dSYM/Contents/Resources/DWARF/exe_mac_64
generated
vendored
Normal file
Binary file not shown.
34
vendor/github.com/google/pprof/internal/binutils/testdata/fake-llvm-symbolizer
generated
vendored
Executable file
34
vendor/github.com/google/pprof/internal/binutils/testdata/fake-llvm-symbolizer
generated
vendored
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright 2014 Google Inc. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# Fake llvm-symbolizer to use in tests
|
||||
|
||||
set -f
|
||||
IFS=" "
|
||||
|
||||
while read line; do
|
||||
# line has form:
|
||||
# filename 0xaddr
|
||||
# Emit dummy output that matches llvm-symbolizer output format.
|
||||
set -- $line
|
||||
fname=$1
|
||||
addr=$2
|
||||
echo "Inlined_$addr"
|
||||
echo "$fname.h"
|
||||
echo "Func_$addr"
|
||||
echo "$fname.c:2"
|
||||
echo
|
||||
done
|
BIN
vendor/github.com/google/pprof/internal/binutils/testdata/lib_mac_64
generated
vendored
Executable file
BIN
vendor/github.com/google/pprof/internal/binutils/testdata/lib_mac_64
generated
vendored
Executable file
Binary file not shown.
20
vendor/github.com/google/pprof/internal/binutils/testdata/lib_mac_64.dSYM/Contents/Info.plist
generated
vendored
Normal file
20
vendor/github.com/google/pprof/internal/binutils/testdata/lib_mac_64.dSYM/Contents/Info.plist
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.apple.xcode.dsym.lib_mac_64</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>dSYM</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
</plist>
|
BIN
vendor/github.com/google/pprof/internal/binutils/testdata/lib_mac_64.dSYM/Contents/Resources/DWARF/lib_mac_64
generated
vendored
Normal file
BIN
vendor/github.com/google/pprof/internal/binutils/testdata/lib_mac_64.dSYM/Contents/Resources/DWARF/lib_mac_64
generated
vendored
Normal file
Binary file not shown.
1
vendor/github.com/google/pprof/internal/binutils/testdata/malformed_elf
generated
vendored
Normal file
1
vendor/github.com/google/pprof/internal/binutils/testdata/malformed_elf
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
ELF<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
1
vendor/github.com/google/pprof/internal/binutils/testdata/malformed_macho
generated
vendored
Normal file
1
vendor/github.com/google/pprof/internal/binutils/testdata/malformed_macho
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
Reference in New Issue
Block a user