Skip to content

Instantly share code, notes, and snippets.

Created November 27, 2015 23:15
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 anonymous/ff8f5134886cdda9e7f4 to your computer and use it in GitHub Desktop.
Save anonymous/ff8f5134886cdda9e7f4 to your computer and use it in GitHub Desktop.
(gdb) r "C:/Ruby200-x64/bin/gem" install json
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /cygdrive/c/Ruby200-x64/bin/ruby.exe "C:/Ruby200-x64/bin/gem" install json
[New Thread 75412.0x12698]
[New Thread 75412.0x1269c]
[New Thread 75412.0x126a0]
[New Thread 75412.0x126a4]
[New Thread 75412.0x126a8]
[New Thread 75412.0x126ac]
[New Thread 75412.0x126b0]
Breakpoint 2, 0x00007fff94f125df in getaddrinfo () from /cygdrive/c/WINDOWS/system32/WS2_32.dll
(gdb) info frame
Stack level 0, frame at 0x24dbb0:
rip = 0x7fff94f125df in getaddrinfo; saved rip = 0x6fd4e85d
called by frame at 0x24dbe0
Arglist at 0x24db08, args:
Locals at 0x24db08, Previous frame's sp is 0x24dbb0
Saved registers:
rbx at 0x24da70, rsi at 0x24da68, rdi at 0x24da60, rbp at 0x24dba0, r12 at 0x24db98, r13 at 0x24db90,
r14 at 0x24db88, r15 at 0x24db80, rip at 0x24dba8
(gdb) finish
Run till exit from #0 0x00007fff94f125df in getaddrinfo () from /cygdrive/c/WINDOWS/system32/WS2_32.dll
[New Thread 75412.0x127e8]
[New Thread 75412.0x127ec]
[New Thread 75412.0x127f0]
[New Thread 75412.0x127f4]
[New Thread 75412.0x127f8]
[New Thread 75412.0x127fc]
[New Thread 75412.0x12440]
0x000000006fd4e85d in socket!Init_socket () from /cygdrive/c/Ruby200-x64/lib/ruby/2.0.0/x64-mingw32/socket.so
(gdb) info frame
Stack level 0, frame at 0x24dbe0:
rip = 0x6fd4e85d in socket!Init_socket; saved rip = 0x6f2929d3
called by frame at 0x24dc70
Arglist at 0x24dbd0, args:
Locals at 0x24dbd0, Previous frame's sp is 0x24dbe0
Saved registers:
rbp at 0x24dbd0, rip at 0x24dbd8
(gdb) p $eax
$3 = 0
(gdb) r "C:/Ruby200-x64/bin/gem" install json
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /cygdrive/c/Ruby200-x64/bin/ruby.exe "C:/Ruby200-x64/bin/gem" install json
[New Thread 76520.0x12aec]
[New Thread 76520.0x12af0]
[New Thread 76520.0x12af4]
[New Thread 76520.0x12af8]
[New Thread 76520.0x12b04]
[New Thread 76520.0x12b10]
[New Thread 76520.0x12b14]
Breakpoint 2, 0x00007fff94f125df in getaddrinfo () from /cygdrive/c/WINDOWS/system32/WS2_32.dll
(gdb) info frame
Stack level 0, frame at 0x24dbb0:
rip = 0x7fff94f125df in getaddrinfo; saved rip = 0x6fd4e85d
called by frame at 0x24dbe0
Arglist at 0x24db08, args:
Locals at 0x24db08, Previous frame's sp is 0x24dbb0
Saved registers:
rbx at 0x24da70, rsi at 0x24da68, rdi at 0x24da60, rbp at 0x24dba0, r12 at 0x24db98, r13 at 0x24db90,
r14 at 0x24db88, r15 at 0x24db80, rip at 0x24dba8
(gdb) n
Single stepping until exit from function getaddrinfo,
which has no line number information.
0x00007fff925d4560 in MultiByteToWideChar () from /cygdrive/c/WINDOWS/system32/KERNELBASE.dll
(gdb) finish
Run till exit from #0 0x00007fff925d4560 in MultiByteToWideChar () from /cygdrive/c/WINDOWS/system32/KERNELBASE.dll
0x00007fff94f127cd in getaddrinfo () from /cygdrive/c/WINDOWS/system32/WS2_32.dll
(gdb) p $eax
$4 = 13
(gdb) info frame
Stack level 0, frame at 0x24db10:
rip = 0x7fff94f127cd in getaddrinfo; saved rip = 0x7fff94f12666
called by frame at 0x24dbb0
Arglist at 0x24dac8, args:
Locals at 0x24dac8, Previous frame's sp is 0x24db10
Saved registers:
rbx at 0x24da90, rsi at 0x24da80, rdi at 0x24db00, rbp at 0x24da88, rip at 0x24db08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment