Skip to content

Instantly share code, notes, and snippets.

@sktt
Created March 6, 2019 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sktt/be6ca7034c7ee9a2009e471db088d230 to your computer and use it in GitHub Desktop.
Save sktt/be6ca7034c7ee9a2009e471db088d230 to your computer and use it in GitHub Desktop.
(gdb) b *0x1fafde147e00
Breakpoint 2 at 0x1fafde147e00
(gdb) cont
Continuing.
Thread 1 "d8" hit Breakpoint 2, 0x00001fafde147e00 in LazyCompile:*myfunc test.js:144 ()
=> 0x00001fafde147e00 <LazyCompile:*myfunc test.js:144+0>: 48 8d 1d f9 ff ff ff lea -0x7(%rip),%rbx # 0x1fafde147e00 <LazyCompile:*myfunc test.js:144>
(gdb) i r rbx rcx
rbx 0x5 5
rcx 0x1fafde147e00 34840205622784
(gdb) stepi
0x00001fafde147e07 in LazyCompile:*myfunc test.js:144 ()
=> 0x00001fafde147e07 <LazyCompile:*myfunc test.js:144+7>: 48 3b d9 cmp %rcx,%rbx
(gdb)
0x00001fafde147e0a in LazyCompile:*myfunc test.js:144 ()
=> 0x00001fafde147e0a <LazyCompile:*myfunc test.js:144+10>: 74 18 je 0x1fafde147e24 <LazyCompile:*myfunc test.js:144+36>
(gdb)
0x00001fafde147e0c in LazyCompile:*myfunc test.js:144 ()
=> 0x00001fafde147e0c <LazyCompile:*myfunc test.js:144+12>: 48 ba 00 00 00 00 36 00 00 00 movabs $0x3600000000,%rdx
(gdb)
Thread 1 "d8" hit Breakpoint 1, 0x00001fafde147e16 in LazyCompile:*myfunc test.js:144 ()
=> 0x00001fafde147e16 <LazyCompile:*myfunc test.js:144+22>: 49 ba 40 22 c4 b5 31 7f 00 00 movabs $0x7f31b5c42240,%r10
(gdb) stepi
0x00001fafde147e20 in LazyCompile:*myfunc test.js:144 ()
=> 0x00001fafde147e20 <LazyCompile:*myfunc test.js:144+32>: 41 ff d2 callq *%r10
(gdb) stepi
0x00007f31b5c42240 in Builtins_Abort () from /home/jnes/misc/chromium/src/out/x64.debug/./libv8.so
=> 0x00007f31b5c42240 <Builtins_Abort+0>: 55 push %rbp
(gdb) i r rbx rcx
rbx 0x1fafde147e00 34840205622784
rcx 0x1fafde147e07 34840205622791
(gdb) set $rip=0x1fafde147e00
(gdb) x/i $rip
=> 0x1fafde147e00 <LazyCompile:*myfunc test.js:144>:
lea -0x7(%rip),%rbx # 0x1fafde147e00 <LazyCompile:*myfunc test.js:144>
(gdb) stepi
0x00001fafde147e07 in LazyCompile:*myfunc test.js:144 ()
=> 0x00001fafde147e07 <LazyCompile:*myfunc test.js:144+7>: 48 3b d9 cmp %rcx,%rbx
(gdb) i r rbx
rbx 0x1fafde147e00 34840205622784
(gdb) stepi
0x00001fafde147e0a in LazyCompile:*myfunc test.js:144 ()
=> 0x00001fafde147e0a <LazyCompile:*myfunc test.js:144+10>: 74 18 je 0x1fafde147e24 <LazyCompile:*myfunc test.js:144+36>
(gdb)
0x00001fafde147e0c in LazyCompile:*myfunc test.js:144 ()
=> 0x00001fafde147e0c <LazyCompile:*myfunc test.js:144+12>: 48 ba 00 00 00 00 36 00 00 00 movabs $0x3600000000,%rdx
(gdb)
Thread 1 "d8" hit Breakpoint 1, 0x00001fafde147e16 in LazyCompile:*myfunc test.js:144 ()
=> 0x00001fafde147e16 <LazyCompile:*myfunc test.js:144+22>: 49 ba 40 22 c4 b5 31 7f 00 00 movabs $0x7f31b5c42240,%r10
(gdb)
0x00001fafde147e20 in LazyCompile:*myfunc test.js:144 ()
=> 0x00001fafde147e20 <LazyCompile:*myfunc test.js:144+32>: 41 ff d2 callq *%r10
(gdb) i r rbx rcx
rbx 0x1fafde147e00 34840205622784
rcx 0x1fafde147e07 34840205622791
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment