Commit ca688f26 authored by Igor Sheludko's avatar Igor Sheludko Committed by Commit Bot

Make gdb macros work in Chrome when V8 is built in component mode.

... by properly exporting respective functions from the binary.

Change-Id: I6f9b63f65a886e430c1b0e431ebf62e589f4d455
Reviewed-on: https://chromium-review.googlesource.com/1183493Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55278}
parent 2345f952
......@@ -2432,11 +2432,11 @@ void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
//
// The following functions are used by our gdb macros.
//
extern void _v8_internal_Print_Object(void* object) {
V8_EXPORT_PRIVATE extern void _v8_internal_Print_Object(void* object) {
reinterpret_cast<i::Object*>(object)->Print();
}
extern void _v8_internal_Print_Code(void* object) {
V8_EXPORT_PRIVATE extern void _v8_internal_Print_Code(void* object) {
i::Address address = reinterpret_cast<i::Address>(object);
i::Isolate* isolate = i::Isolate::Current();
......@@ -2471,7 +2471,8 @@ extern void _v8_internal_Print_Code(void* object) {
#endif // ENABLE_DISASSEMBLER
}
extern void _v8_internal_Print_LayoutDescriptor(void* object) {
V8_EXPORT_PRIVATE extern void _v8_internal_Print_LayoutDescriptor(
void* object) {
i::Object* o = reinterpret_cast<i::Object*>(object);
if (!o->IsLayoutDescriptor()) {
printf("Please provide a layout descriptor\n");
......@@ -2480,12 +2481,12 @@ extern void _v8_internal_Print_LayoutDescriptor(void* object) {
}
}
extern void _v8_internal_Print_StackTrace() {
V8_EXPORT_PRIVATE extern void _v8_internal_Print_StackTrace() {
i::Isolate* isolate = i::Isolate::Current();
isolate->PrintStack(stdout);
}
extern void _v8_internal_Print_TransitionTree(void* object) {
V8_EXPORT_PRIVATE extern void _v8_internal_Print_TransitionTree(void* object) {
i::Object* o = reinterpret_cast<i::Object*>(object);
if (!o->IsMap()) {
printf("Please provide a valid Map\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment