• yangguo's avatar
    Add gdb macro to find assertion scopes on the stack. · 6ab61037
    yangguo authored
    This is how it would look like.
    
    (gdb) bta
    [1 ] V8_Fatal                                         ../../src/base/logging.cc:67
    [2 ] v8::internal::Heap::AllocateRaw                  ../../src/heap/heap-inl.h:298
    [3 ] v8::internal::Heap::AllocateHeapNumber           ../../src/heap/heap.cc:2432
    [4 ] v8::internal::Factory::NewHeapNumber             ../../src/factory.cc:1253
    [5 ] v8::internal::Factory::NewNumber                 ../../src/factory.cc:1228
    [6 ] v8::internal::__RT_impl_Runtime_ConstructDouble  ../../src/runtime/runtime-test.cc:32
     -> Allow HEAP_ALLOCATION (yes_gc)
     -> Disallow HEAP_ALLOCATION (no_gc)
    [7 ] v8::internal::Runtime_ConstructDouble            ../../src/runtime/runtime-test.cc:24
    
    R=jochen@chromium.org
    
    Review-Url: https://codereview.chromium.org/2466263007
    Cr-Commit-Position: refs/heads/master@{#40748}
    6ab61037
gdbinit 2.29 KB