| Index: src/gdb-jit.cc
|
| ===================================================================
|
| --- src/gdb-jit.cc (revision 14041)
|
| +++ src/gdb-jit.cc (working copy)
|
| @@ -1021,7 +1021,8 @@
|
| static void CreateSymbolsTable(CodeDescription* desc,
|
| ELF* elf,
|
| int text_section_index) {
|
| - Zone* zone = desc->info()->zone();
|
| + Zone* zone = desc->info() ?
|
| + desc->info()->zone() : Isolate::Current()->gdbjit_zone();
|
| ELFSymbolTable* symtab = new(zone) ELFSymbolTable(".symtab", zone);
|
| ELFStringTable* strtab = new(zone) ELFStringTable(".strtab");
|
|
|
| @@ -1790,7 +1791,8 @@
|
| #endif // V8_TARGET_ARCH_X64
|
|
|
| static void CreateDWARFSections(CodeDescription* desc, DebugObject* obj) {
|
| - Zone* zone = desc->info()->zone();
|
| + Zone* zone = desc->info() ?
|
| + desc->info()->zone() : Isolate::Current()->gdbjit_zone();
|
| if (desc->IsLineInfoAvailable()) {
|
| obj->AddSection(new(zone) DebugInfoSection(desc), zone);
|
| obj->AddSection(new(zone) DebugAbbrevSection(desc), zone);
|
| @@ -1916,7 +1918,8 @@
|
|
|
|
|
| static JITCodeEntry* CreateELFObject(CodeDescription* desc) {
|
| - Zone* zone = desc->info()->zone();
|
| + Zone* zone = desc->info() ?
|
| + desc->info()->zone() : Isolate::Current()->gdbjit_zone();
|
| ZoneScope zone_scope(zone, DELETE_ON_EXIT);
|
| #ifdef __MACH_O
|
| MachO mach_o;
|
|
|