Skip to content
Snippets Groups Projects
Select Git revision
  • d2d0f7c472a77fd951652c6ed0e7c6dee26d9849
  • master default protected
  • 1-package-installations
3 results

gdbinit

Blame
  • gdbinit 6.25 KiB
    # Copyright 2014 the V8 project authors. All rights reserved.
    # Use of this source code is governed by a BSD-style license that can be
    # found in the LICENSE file.
    
    # Print tagged object.
    define job
    call (void) _v8_internal_Print_Object((void*)($arg0))
    end
    document job
    Print a v8 JavaScript object
    Usage: job tagged_ptr
    end
    
    # Print content of v8::internal::Handle.
    define jh
    call (void) _v8_internal_Print_Object(*((v8::internal::Object**)($arg0).location_))
    end
    document jh
    Print content of a v8::internal::Handle
    Usage: jh internal_handle
    end
    
    # Print content of v8::Local handle.
    define jlh
    call (void) _v8_internal_Print_Object(*((v8::internal::Object**)($arg0).val_))
    end
    document jlh
    Print content of a v8::Local handle
    Usage: jlh local_handle
    end
    
    # Print Code objects containing given PC.
    define jco
    call (void) _v8_internal_Print_Code((void*)($arg0))
    end
    document jco
    Print a v8 Code object from an internal code address
    Usage: jco pc
    end
    
    # Print LayoutDescriptor.
    define jld
    call (void) _v8_internal_Print_LayoutDescriptor((void*)($arg0))
    end
    document jld
    Print a v8 LayoutDescriptor object
    Usage: jld tagged_ptr
    end
    
    # Print TransitionTree.
    define jtt
    call (void) _v8_internal_Print_TransitionTree((void*)($arg0))
    end
    document jtt
    Print the complete transition tree of the given v8 Map.
    Usage: jtt tagged_ptr
    end
    
    # Print JavaScript stack trace.
    define jst
    call (void) _v8_internal_Print_StackTrace()
    end
    document jst
    Print the current JavaScript stack trace
    Usage: jst
    end
    
    # Print TurboFan graph node.
    define pn
    call _v8_internal_Node_Print((void*)($arg0))