node-bin-darwin-arm64 16.8.0 → 16.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +126 -0
- package/LICENSE +11 -0
- package/README.md +8 -2
- package/bin/node +0 -0
- package/include/node/common.gypi +1 -1
- package/include/node/config.gypi +1 -0
- package/include/node/node_version.h +2 -2
- package/include/node/openssl/archs/BSD-x86/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/BSD-x86/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/BSD-x86/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/BSD-x86_64/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/BSD-x86_64/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/BSD-x86_64/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/VC-WIN32/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/VC-WIN32/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/VC-WIN32/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/VC-WIN64A/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/VC-WIN64A/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/VC-WIN64A/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/aix-gcc/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/aix-gcc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/aix-gcc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/aix64-gcc/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/aix64-gcc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/aix64-gcc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin-i386-cc/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin-i386-cc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin64-arm64-cc/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin64-x86_64-cc/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-aarch64/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-aarch64/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-aarch64/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-armv4/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-armv4/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-armv4/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-elf/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-elf/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-elf/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc64/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc64/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc64/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc64le/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc64le/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-ppc64le/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-x32/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-x32/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-x32/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-x86_64/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-x86_64/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux-x86_64/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux32-s390x/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux32-s390x/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux32-s390x/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux64-mips64/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux64-mips64/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux64-mips64/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux64-s390x/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux64-s390x/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/linux64-s390x/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/solaris-x86-gcc/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/solaris-x86-gcc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/crypto/buildinf.h +1 -1
- package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/crypto/buildinf.h +1 -1
- package/include/node/openssl/e_os2.h +3 -2
- package/include/node/openssl/opensslv.h +2 -2
- package/include/node/openssl/ssl.h +1 -0
- package/include/node/openssl/sslerr.h +4 -1
- package/include/node/openssl/x509v3err.h +3 -1
- package/include/node/v8-internal.h +1 -0
- package/include/node/v8-version.h +3 -3
- package/include/node/v8.h +38 -3
- package/package.json +1 -1
- package/share/doc/node/gdbinit +5 -1
- package/share/doc/node/lldb_commands.py +17 -2
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
#define PLATFORM "platform: solaris64-x86_64-gcc"
|
|
14
|
-
#define DATE "built on:
|
|
14
|
+
#define DATE "built on: Tue Aug 24 15:11:49 2021 UTC"
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
17
|
* Generate compiler_flags as an array of individual characters. This is a
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
#define PLATFORM "platform: solaris64-x86_64-gcc"
|
|
14
|
-
#define DATE "built on:
|
|
14
|
+
#define DATE "built on: Tue Aug 24 15:12:00 2021 UTC"
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
17
|
* Generate compiler_flags as an array of individual characters. This is a
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
#define PLATFORM "platform: solaris64-x86_64-gcc"
|
|
14
|
-
#define DATE "built on:
|
|
14
|
+
#define DATE "built on: Tue Aug 24 15:12:11 2021 UTC"
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
17
|
* Generate compiler_flags as an array of individual characters. This is a
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 1995-
|
|
2
|
+
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
|
5
5
|
* this file except in compliance with the License. You can obtain a copy
|
|
@@ -279,7 +279,8 @@ typedef unsigned __int64 uint64_t;
|
|
|
279
279
|
# define ossl_inline inline
|
|
280
280
|
# endif
|
|
281
281
|
|
|
282
|
-
# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
|
282
|
+
# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && \
|
|
283
|
+
!defined(__cplusplus)
|
|
283
284
|
# define ossl_noreturn _Noreturn
|
|
284
285
|
# elif defined(__GNUC__) && __GNUC__ >= 2
|
|
285
286
|
# define ossl_noreturn __attribute__((noreturn))
|
|
@@ -39,8 +39,8 @@ extern "C" {
|
|
|
39
39
|
* (Prior to 0.9.5a beta1, a different scheme was used: MMNNFFRBB for
|
|
40
40
|
* major minor fix final patch/beta)
|
|
41
41
|
*/
|
|
42
|
-
# define OPENSSL_VERSION_NUMBER
|
|
43
|
-
# define OPENSSL_VERSION_TEXT "OpenSSL 1.1.
|
|
42
|
+
# define OPENSSL_VERSION_NUMBER 0x101010cfL
|
|
43
|
+
# define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1l+quic 24 Aug 2021"
|
|
44
44
|
|
|
45
45
|
/*-
|
|
46
46
|
* The macros below are to be used for shared library (.so, .dll, ...)
|
|
@@ -1921,6 +1921,7 @@ int SSL_get_key_update_type(const SSL *s);
|
|
|
1921
1921
|
int SSL_renegotiate(SSL *s);
|
|
1922
1922
|
int SSL_renegotiate_abbreviated(SSL *s);
|
|
1923
1923
|
__owur int SSL_renegotiate_pending(const SSL *s);
|
|
1924
|
+
int SSL_new_session_ticket(SSL *s);
|
|
1924
1925
|
int SSL_shutdown(SSL *s);
|
|
1925
1926
|
__owur int SSL_verify_client_post_handshake(SSL *s);
|
|
1926
1927
|
void SSL_CTX_set_post_handshake_auth(SSL_CTX *ctx, int val);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Generated by util/mkerr.pl DO NOT EDIT
|
|
3
|
-
* Copyright 1995-
|
|
3
|
+
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
|
6
6
|
* this file except in compliance with the License. You can obtain a copy
|
|
@@ -70,6 +70,7 @@ int ERR_load_SSL_strings(void);
|
|
|
70
70
|
# define SSL_F_FINAL_EMS 486
|
|
71
71
|
# define SSL_F_FINAL_KEY_SHARE 503
|
|
72
72
|
# define SSL_F_FINAL_MAXFRAGMENTLEN 557
|
|
73
|
+
# define SSL_F_FINAL_PSK 639
|
|
73
74
|
# define SSL_F_FINAL_QUIC_TRANSPORT_PARAMS 3012
|
|
74
75
|
# define SSL_F_FINAL_RENEGOTIATE 483
|
|
75
76
|
# define SSL_F_FINAL_SERVER_NAME 558
|
|
@@ -609,6 +610,7 @@ int ERR_load_SSL_strings(void);
|
|
|
609
610
|
# define SSL_R_MISSING_ECDSA_SIGNING_CERT 381
|
|
610
611
|
# define SSL_R_MISSING_FATAL 256
|
|
611
612
|
# define SSL_R_MISSING_PARAMETERS 290
|
|
613
|
+
# define SSL_R_MISSING_PSK_KEX_MODES_EXTENSION 310
|
|
612
614
|
# define SSL_R_MISSING_QUIC_TRANSPORT_PARAMETERS_EXTENSION 801
|
|
613
615
|
# define SSL_R_MISSING_RSA_CERTIFICATE 168
|
|
614
616
|
# define SSL_R_MISSING_RSA_ENCRYPTING_CERT 169
|
|
@@ -651,6 +653,7 @@ int ERR_load_SSL_strings(void);
|
|
|
651
653
|
# define SSL_R_NO_VERIFY_COOKIE_CALLBACK 403
|
|
652
654
|
# define SSL_R_NULL_SSL_CTX 195
|
|
653
655
|
# define SSL_R_NULL_SSL_METHOD_PASSED 196
|
|
656
|
+
# define SSL_R_OCSP_CALLBACK_FAILURE 294
|
|
654
657
|
# define SSL_R_OLD_SESSION_CIPHER_NOT_RETURNED 197
|
|
655
658
|
# define SSL_R_OLD_SESSION_COMPRESSION_ALGORITHM_NOT_RETURNED 344
|
|
656
659
|
# define SSL_R_OVERFLOW_ERROR 237
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Generated by util/mkerr.pl DO NOT EDIT
|
|
3
|
-
* Copyright 1995-
|
|
3
|
+
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
|
6
6
|
* this file except in compliance with the License. You can obtain a copy
|
|
@@ -38,6 +38,7 @@ int ERR_load_X509V3_strings(void);
|
|
|
38
38
|
# define X509V3_F_I2S_ASN1_IA5STRING 149
|
|
39
39
|
# define X509V3_F_I2S_ASN1_INTEGER 120
|
|
40
40
|
# define X509V3_F_I2V_AUTHORITY_INFO_ACCESS 138
|
|
41
|
+
# define X509V3_F_I2V_AUTHORITY_KEYID 173
|
|
41
42
|
# define X509V3_F_LEVEL_ADD_NODE 168
|
|
42
43
|
# define X509V3_F_NOTICE_SECTION 132
|
|
43
44
|
# define X509V3_F_NREF_NOS 133
|
|
@@ -78,6 +79,7 @@ int ERR_load_X509V3_strings(void);
|
|
|
78
79
|
# define X509V3_F_V2I_TLS_FEATURE 165
|
|
79
80
|
# define X509V3_F_V3_GENERIC_EXTENSION 116
|
|
80
81
|
# define X509V3_F_X509V3_ADD1_I2D 140
|
|
82
|
+
# define X509V3_F_X509V3_ADD_LEN_VALUE 174
|
|
81
83
|
# define X509V3_F_X509V3_ADD_VALUE 105
|
|
82
84
|
# define X509V3_F_X509V3_EXT_ADD 104
|
|
83
85
|
# define X509V3_F_X509V3_EXT_ADD_ALIAS 106
|
|
@@ -145,6 +145,7 @@ enum ExternalPointerTag : uint64_t {
|
|
|
145
145
|
kForeignForeignAddressTag = 0x01f7000000000000, // 0b000000111110111
|
|
146
146
|
kNativeContextMicrotaskQueueTag = 0x01fb000000000000, // 0b000000111111011
|
|
147
147
|
kEmbedderDataSlotPayloadTag = 0x01fd000000000000, // 0b000000111111101
|
|
148
|
+
kCodeEntryPointTag = 0x01fe000000000000, // 0b000000111111110
|
|
148
149
|
};
|
|
149
150
|
|
|
150
151
|
constexpr uint64_t kExternalPointerTagMask = 0xffff000000000000;
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
// NOTE these macros are used by some of the tool scripts and the build
|
|
10
10
|
// system so their names cannot be changed without changing the scripts.
|
|
11
11
|
#define V8_MAJOR_VERSION 9
|
|
12
|
-
#define V8_MINOR_VERSION
|
|
13
|
-
#define V8_BUILD_NUMBER
|
|
14
|
-
#define V8_PATCH_LEVEL
|
|
12
|
+
#define V8_MINOR_VERSION 3
|
|
13
|
+
#define V8_BUILD_NUMBER 345
|
|
14
|
+
#define V8_PATCH_LEVEL 16
|
|
15
15
|
|
|
16
16
|
// Use 1 for candidates and 0 otherwise.
|
|
17
17
|
// (Boolean macro values are not supported by all preprocessors.)
|
package/include/node/v8.h
CHANGED
|
@@ -50,6 +50,7 @@ class CFunction;
|
|
|
50
50
|
class CallHandlerHelper;
|
|
51
51
|
class Context;
|
|
52
52
|
class CppHeap;
|
|
53
|
+
class CTypeInfo;
|
|
53
54
|
class Data;
|
|
54
55
|
class Date;
|
|
55
56
|
class EscapableHandleScope;
|
|
@@ -885,6 +886,8 @@ class TracedReferenceBase {
|
|
|
885
886
|
std::memory_order_relaxed);
|
|
886
887
|
}
|
|
887
888
|
|
|
889
|
+
V8_EXPORT void CheckValue() const;
|
|
890
|
+
|
|
888
891
|
// val_ points to a GlobalHandles node.
|
|
889
892
|
internal::Address* val_ = nullptr;
|
|
890
893
|
|
|
@@ -926,8 +929,18 @@ class BasicTracedReference : public TracedReferenceBase {
|
|
|
926
929
|
const_cast<BasicTracedReference<T>&>(*this));
|
|
927
930
|
}
|
|
928
931
|
|
|
929
|
-
T* operator->() const {
|
|
930
|
-
|
|
932
|
+
T* operator->() const {
|
|
933
|
+
#ifdef V8_ENABLE_CHECKS
|
|
934
|
+
CheckValue();
|
|
935
|
+
#endif // V8_ENABLE_CHECKS
|
|
936
|
+
return reinterpret_cast<T*>(val_);
|
|
937
|
+
}
|
|
938
|
+
T* operator*() const {
|
|
939
|
+
#ifdef V8_ENABLE_CHECKS
|
|
940
|
+
CheckValue();
|
|
941
|
+
#endif // V8_ENABLE_CHECKS
|
|
942
|
+
return reinterpret_cast<T*>(val_);
|
|
943
|
+
}
|
|
931
944
|
|
|
932
945
|
private:
|
|
933
946
|
enum DestructionMode { kWithDestructor, kWithoutDestructor };
|
|
@@ -4427,6 +4440,7 @@ class V8_EXPORT Array : public Object {
|
|
|
4427
4440
|
static Local<Array> New(Isolate* isolate, Local<Value>* elements,
|
|
4428
4441
|
size_t length);
|
|
4429
4442
|
V8_INLINE static Array* Cast(Value* obj);
|
|
4443
|
+
|
|
4430
4444
|
private:
|
|
4431
4445
|
Array();
|
|
4432
4446
|
static void CheckCast(Value* obj);
|
|
@@ -4913,6 +4927,12 @@ class V8_EXPORT Promise : public Object {
|
|
|
4913
4927
|
*/
|
|
4914
4928
|
void MarkAsHandled();
|
|
4915
4929
|
|
|
4930
|
+
/**
|
|
4931
|
+
* Marks this promise as silent to prevent pausing the debugger when the
|
|
4932
|
+
* promise is rejected.
|
|
4933
|
+
*/
|
|
4934
|
+
void MarkAsSilent();
|
|
4935
|
+
|
|
4916
4936
|
V8_INLINE static Promise* Cast(Value* obj);
|
|
4917
4937
|
|
|
4918
4938
|
static const int kEmbedderFieldCount = V8_PROMISE_INTERNAL_FIELD_COUNT;
|
|
@@ -8811,7 +8831,7 @@ class V8_EXPORT Isolate {
|
|
|
8811
8831
|
kDateToLocaleTimeString = 68,
|
|
8812
8832
|
kAttemptOverrideReadOnlyOnPrototypeSloppy = 69,
|
|
8813
8833
|
kAttemptOverrideReadOnlyOnPrototypeStrict = 70,
|
|
8814
|
-
kOptimizedFunctionWithOneShotBytecode = 71,
|
|
8834
|
+
kOptimizedFunctionWithOneShotBytecode = 71, // Unused.
|
|
8815
8835
|
kRegExpMatchIsTrueishOnNonJSRegExp = 72,
|
|
8816
8836
|
kRegExpMatchIsFalseishOnJSRegExp = 73,
|
|
8817
8837
|
kDateGetTimezoneOffset = 74, // Unused.
|
|
@@ -8913,6 +8933,14 @@ class V8_EXPORT Isolate {
|
|
|
8913
8933
|
*/
|
|
8914
8934
|
static Isolate* GetCurrent();
|
|
8915
8935
|
|
|
8936
|
+
/**
|
|
8937
|
+
* Returns the entered isolate for the current thread or NULL in
|
|
8938
|
+
* case there is no current isolate.
|
|
8939
|
+
*
|
|
8940
|
+
* No checks are performed by this method.
|
|
8941
|
+
*/
|
|
8942
|
+
static Isolate* TryGetCurrent();
|
|
8943
|
+
|
|
8916
8944
|
/**
|
|
8917
8945
|
* Clears the set of objects held strongly by the heap. This set of
|
|
8918
8946
|
* objects are originally built when a WeakRef is created or
|
|
@@ -8979,6 +9007,13 @@ class V8_EXPORT Isolate {
|
|
|
8979
9007
|
*/
|
|
8980
9008
|
void MemoryPressureNotification(MemoryPressureLevel level);
|
|
8981
9009
|
|
|
9010
|
+
/**
|
|
9011
|
+
* Drop non-essential caches. Should only be called from testing code.
|
|
9012
|
+
* The method can potentially block for a long time and does not necessarily
|
|
9013
|
+
* trigger GC.
|
|
9014
|
+
*/
|
|
9015
|
+
void ClearCachesForTesting();
|
|
9016
|
+
|
|
8982
9017
|
/**
|
|
8983
9018
|
* Methods below this point require holding a lock (using Locker) in
|
|
8984
9019
|
* a multi-threaded environment.
|
package/package.json
CHANGED
package/share/doc/node/gdbinit
CHANGED
|
@@ -31,7 +31,11 @@ end
|
|
|
31
31
|
|
|
32
32
|
# Print Code objects containing given PC.
|
|
33
33
|
define jco
|
|
34
|
-
|
|
34
|
+
if $argc == 0
|
|
35
|
+
call (void) _v8_internal_Print_Code((void*)($pc))
|
|
36
|
+
else
|
|
37
|
+
call (void) _v8_internal_Print_Code((void*)($arg0))
|
|
38
|
+
end
|
|
35
39
|
end
|
|
36
40
|
document jco
|
|
37
41
|
Print a v8 Code object from an internal code address
|
|
@@ -8,9 +8,11 @@
|
|
|
8
8
|
# for py2/py3 compatibility
|
|
9
9
|
from __future__ import print_function
|
|
10
10
|
|
|
11
|
-
import
|
|
11
|
+
import os
|
|
12
12
|
import re
|
|
13
13
|
|
|
14
|
+
import lldb
|
|
15
|
+
|
|
14
16
|
#####################
|
|
15
17
|
# Helper functions. #
|
|
16
18
|
#####################
|
|
@@ -21,7 +23,8 @@ def current_frame(debugger):
|
|
|
21
23
|
return current_thread(debugger).GetSelectedFrame()
|
|
22
24
|
|
|
23
25
|
def no_arg_cmd(debugger, cmd):
|
|
24
|
-
|
|
26
|
+
cast_to_void_expr = '(void) {}'.format(cmd)
|
|
27
|
+
evaluate_result = current_frame(debugger).EvaluateExpression(cast_to_void_expr)
|
|
25
28
|
# When a void function is called the return value type is 0x1001 which
|
|
26
29
|
# is specified in http://tiny.cc/bigskz. This does not indicate
|
|
27
30
|
# an error so we check for that value below.
|
|
@@ -112,7 +115,19 @@ def bta(debugger, *args):
|
|
|
112
115
|
print("%s -> %s %s (%s)\033[0m" % (
|
|
113
116
|
color, prefix, match.group(2), match.group(1)))
|
|
114
117
|
|
|
118
|
+
def setup_source_map_for_relative_paths(debugger):
|
|
119
|
+
# Copied from Chromium's tools/lldb/lldbinit.py.
|
|
120
|
+
# When relative paths are used for debug symbols, lldb cannot find source
|
|
121
|
+
# files. Set up a source map to point to V8's root.
|
|
122
|
+
this_dir = os.path.dirname(os.path.abspath(__file__))
|
|
123
|
+
source_dir = os.path.join(this_dir, os.pardir)
|
|
124
|
+
|
|
125
|
+
debugger.HandleCommand(
|
|
126
|
+
'settings set target.source-map ../.. ' + source_dir)
|
|
127
|
+
|
|
128
|
+
|
|
115
129
|
def __lldb_init_module(debugger, dict):
|
|
130
|
+
setup_source_map_for_relative_paths(debugger)
|
|
116
131
|
debugger.HandleCommand('settings set target.x86-disassembly-flavor intel')
|
|
117
132
|
for cmd in ('job', 'jlh', 'jco', 'jld', 'jtt', 'jst', 'jss', 'bta'):
|
|
118
133
|
debugger.HandleCommand(
|