Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ gdb -q $(readlink -f $(command -v gforth))
- Reading symbols from /usr/bin/gforth-0.7.3...(no debugging symbols found)...done.
- (gdb) r
- Starting program: /usr/bin/gforth-0.7.3
- Gforth 0.7.3, Copyright (C) 1995-2008 Free Software Foundation, Inc.
- Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
- Type `bye' to exit
- ' */ HEX U. 41F130 ok
- Program received signal SIGINT, Interrupt.
- eax 0xfffffe00 -512
- ecx 0xbffff20b -1073745397
- edx 0x1 1
- ebx 0x0 0
- esp 0xbffff158 0xbffff158
- ebp 0xbffff20b 0xbffff20b
- esi 0xb7f515a0 -1208674912
- edi 0x1 1
- eip 0xb7fd9cf9 0xb7fd9cf9 <__kernel_vsyscall+9>
- eflags 0x246 [ PF ZF IF ]
- cs 0x73 115
- ss 0x7b 123
- ds 0x7b 123
- es 0x7b 123
- fs 0x0 0
- gs 0x33 51
- 0xb7fd9cf9 in __kernel_vsyscall ()
- (gdb) x/x 0x41F130
- 0x41f130: 0x00409e89
- (gdb) b *0x00409e89
- Breakpoint 1 at 0x409e89
- (gdb) def hook-stop
- Redefine command "hook-stop"? (y or n) y
- Type commands for definition of "hook-stop".
- End with a line saying just "end".
- >info reg
- >end
- (gdb) display/4i $pc
- 3: x/4i $pc
- => 0xb7fd9cf9 <__kernel_vsyscall+9>: pop %ebp
- 0xb7fd9cfa <__kernel_vsyscall+10>: pop %edx
- 0xb7fd9cfb <__kernel_vsyscall+11>: pop %ecx
- 0xb7fd9cfc <__kernel_vsyscall+12>: ret
- (gdb) c
- Continuing.
- 7FFFFFFF 2 1 */
- eax 0x41f130 4321584
- ecx 0x409e89 4234889
- edx 0x433d34 4406580
- ebx 0xb7999f50 -1214668976
- esp 0xbffff230 0xbffff230
- ebp 0x41edd0 0x41edd0
- esi 0xb7fc4ff4 -1208201228
- edi 0xb799c598 -1214659176
- eip 0x409e89 0x409e89 <gforth_engine+3289>
- eflags 0x282 [ SF IF ]
- cs 0x73 115
- ss 0x7b 123
- ds 0x7b 123
- es 0x7b 123
- fs 0x0 0
- gs 0x33 51
- Breakpoint 1, 0x00409e89 in gforth_engine ()
- 3: x/4i $pc
- => 0x409e89 <gforth_engine+3289>: lea 0x4b10(%ebp),%eax
- 0x409e8f <gforth_engine+3295>: mov %ebx,0x24(%esp)
- 0x409e93 <gforth_engine+3299>: mov %ebx,(%eax)
- 0x409e95 <gforth_engine+3301>: mov %esi,%edi
- (gdb) stepi
- eax 0x4238e0 4339936
- ecx 0x409e89 4234889
- edx 0x433d34 4406580
- ebx 0xb7999f50 -1214668976
- esp 0xbffff230 0xbffff230
- ebp 0x41edd0 0x41edd0
- esi 0xb7fc4ff4 -1208201228
- edi 0xb799c598 -1214659176
- eip 0x409e8f 0x409e8f <gforth_engine+3295>
- eflags 0x282 [ SF IF ]
- cs 0x73 115
- ss 0x7b 123
- ds 0x7b 123
- es 0x7b 123
- fs 0x0 0
- gs 0x33 51
- 0x00409e8f in gforth_engine ()
- 3: x/4i $pc
- => 0x409e8f <gforth_engine+3295>: mov %ebx,0x24(%esp)
- 0x409e93 <gforth_engine+3299>: mov %ebx,(%eax)
- 0x409e95 <gforth_engine+3301>: mov %esi,%edi
- 0x409e97 <gforth_engine+3303>: mov 0x4(%esi),%eax
- (gdb) stepi
- eax 0x4238e0 4339936
- ecx 0x409e89 4234889
- edx 0x433d34 4406580
- ebx 0xb7999f50 -1214668976
- esp 0xbffff230 0xbffff230
- ebp 0x41edd0 0x41edd0
- esi 0xb7fc4ff4 -1208201228
- edi 0xb799c598 -1214659176
- eip 0x409e93 0x409e93 <gforth_engine+3299>
- eflags 0x282 [ SF IF ]
- cs 0x73 115
- ss 0x7b 123
- ds 0x7b 123
- es 0x7b 123
- fs 0x0 0
- gs 0x33 51
- 0x00409e93 in gforth_engine ()
- 3: x/4i $pc
- => 0x409e93 <gforth_engine+3299>: mov %ebx,(%eax)
- 0x409e95 <gforth_engine+3301>: mov %esi,%edi
- 0x409e97 <gforth_engine+3303>: mov 0x4(%esi),%eax
- 0x409e9a <gforth_engine+3306>: mov (%esi),%ebx
- (gdb) stepi
- eax 0x4238e0 4339936
- ecx 0x409e89 4234889
- edx 0x433d34 4406580
- ebx 0xb7999f50 -1214668976
- esp 0xbffff230 0xbffff230
- ebp 0x41edd0 0x41edd0
- esi 0xb7fc4ff4 -1208201228
- edi 0xb799c598 -1214659176
- eip 0x409e95 0x409e95 <gforth_engine+3301>
- eflags 0x282 [ SF IF ]
- cs 0x73 115
- ss 0x7b 123
- ds 0x7b 123
- es 0x7b 123
- fs 0x0 0
- gs 0x33 51
- 0x00409e95 in gforth_engine ()
- 3: x/4i $pc
- => 0x409e95 <gforth_engine+3301>: mov %esi,%edi
- 0x409e97 <gforth_engine+3303>: mov 0x4(%esi),%eax
- 0x409e9a <gforth_engine+3306>: mov (%esi),%ebx
- 0x409e9c <gforth_engine+3308>: imull 0x8(%edi)
- (gdb) stepi
- eax 0x4238e0 4339936
- ecx 0x409e89 4234889
- edx 0x433d34 4406580
- ebx 0xb7999f50 -1214668976
- esp 0xbffff230 0xbffff230
- ebp 0x41edd0 0x41edd0
- esi 0xb7fc4ff4 -1208201228
- edi 0xb7fc4ff4 -1208201228
- eip 0x409e97 0x409e97 <gforth_engine+3303>
- eflags 0x282 [ SF IF ]
- cs 0x73 115
- ss 0x7b 123
- ds 0x7b 123
- es 0x7b 123
- fs 0x0 0
- gs 0x33 51
- 0x00409e97 in gforth_engine ()
- 3: x/4i $pc
- => 0x409e97 <gforth_engine+3303>: mov 0x4(%esi),%eax
- 0x409e9a <gforth_engine+3306>: mov (%esi),%ebx
- 0x409e9c <gforth_engine+3308>: imull 0x8(%edi)
- 0x409e9f <gforth_engine+3311>: lea 0x8(%esi),%esi
- (gdb) stepi
- eax 0x2 2
- ecx 0x409e89 4234889
- edx 0x433d34 4406580
- ebx 0xb7999f50 -1214668976
- esp 0xbffff230 0xbffff230
- ebp 0x41edd0 0x41edd0
- esi 0xb7fc4ff4 -1208201228
- edi 0xb7fc4ff4 -1208201228
- eip 0x409e9a 0x409e9a <gforth_engine+3306>
- eflags 0x282 [ SF IF ]
- cs 0x73 115
- ss 0x7b 123
- ds 0x7b 123
- es 0x7b 123
- fs 0x0 0
- gs 0x33 51
- 0x00409e9a in gforth_engine ()
- 3: x/4i $pc
- => 0x409e9a <gforth_engine+3306>: mov (%esi),%ebx
- 0x409e9c <gforth_engine+3308>: imull 0x8(%edi)
- 0x409e9f <gforth_engine+3311>: lea 0x8(%esi),%esi
- 0x409ea2 <gforth_engine+3314>: mov %edx,%ecx
- (gdb) stepi
- eax 0x2 2
- ecx 0x409e89 4234889
- edx 0x433d34 4406580
- ebx 0x1 1
- esp 0xbffff230 0xbffff230
- ebp 0x41edd0 0x41edd0
- esi 0xb7fc4ff4 -1208201228
- edi 0xb7fc4ff4 -1208201228
- eip 0x409e9c 0x409e9c <gforth_engine+3308>
- eflags 0x282 [ SF IF ]
- cs 0x73 115
- ss 0x7b 123
- ds 0x7b 123
- es 0x7b 123
- fs 0x0 0
- gs 0x33 51
- 0x00409e9c in gforth_engine ()
- 3: x/4i $pc
- => 0x409e9c <gforth_engine+3308>: imull 0x8(%edi)
- 0x409e9f <gforth_engine+3311>: lea 0x8(%esi),%esi
- 0x409ea2 <gforth_engine+3314>: mov %edx,%ecx
- 0x409ea4 <gforth_engine+3316>: idiv %ebx
- (gdb) x/4wx $edi
- 0xb7fc4ff4: 0x00000001 0x00000002 0x7fffffff 0x00000000
- (gdb) stepi
- eax 0xfffffffe -2
- ecx 0x409e89 4234889
- edx 0x0 0
- ebx 0x1 1
- esp 0xbffff230 0xbffff230
- ebp 0x41edd0 0x41edd0
- esi 0xb7fc4ff4 -1208201228
- edi 0xb7fc4ff4 -1208201228
- eip 0x409e9f 0x409e9f <gforth_engine+3311>
- eflags 0xa83 [ CF SF IF OF ]
- cs 0x73 115
- ss 0x7b 123
- ds 0x7b 123
- es 0x7b 123
- fs 0x0 0
- gs 0x33 51
- 0x00409e9f in gforth_engine ()
- 3: x/4i $pc
- => 0x409e9f <gforth_engine+3311>: lea 0x8(%esi),%esi
- 0x409ea2 <gforth_engine+3314>: mov %edx,%ecx
- 0x409ea4 <gforth_engine+3316>: idiv %ebx
- 0x409ea6 <gforth_engine+3318>: xor %ecx,%ebx
- (gdb) x/4wx $esi
- 0xb7fc4ff4: 0x00000001 0x00000002 0x7fffffff 0x00000000
- (gdb) stepi
- eax 0xfffffffe -2
- ecx 0x409e89 4234889
- edx 0x0 0
- ebx 0x1 1
- esp 0xbffff230 0xbffff230
- ebp 0x41edd0 0x41edd0
- esi 0xb7fc4ffc -1208201220
- edi 0xb7fc4ff4 -1208201228
- eip 0x409ea2 0x409ea2 <gforth_engine+3314>
- eflags 0xa83 [ CF SF IF OF ]
- cs 0x73 115
- ss 0x7b 123
- ds 0x7b 123
- es 0x7b 123
- fs 0x0 0
- gs 0x33 51
- 0x00409ea2 in gforth_engine ()
- 3: x/4i $pc
- => 0x409ea2 <gforth_engine+3314>: mov %edx,%ecx
- 0x409ea4 <gforth_engine+3316>: idiv %ebx
- 0x409ea6 <gforth_engine+3318>: xor %ecx,%ebx
- 0x409ea8 <gforth_engine+3320>: mov %eax,0x18(%esp)
- (gdb) stepi
- eax 0xfffffffe -2
- ecx 0x0 0
- edx 0x0 0
- ebx 0x1 1
- esp 0xbffff230 0xbffff230
- ebp 0x41edd0 0x41edd0
- esi 0xb7fc4ffc -1208201220
- edi 0xb7fc4ff4 -1208201228
- eip 0x409ea4 0x409ea4 <gforth_engine+3316>
- eflags 0xa83 [ CF SF IF OF ]
- cs 0x73 115
- ss 0x7b 123
- ds 0x7b 123
- es 0x7b 123
- fs 0x0 0
- gs 0x33 51
- 0x00409ea4 in gforth_engine ()
- 3: x/4i $pc
- => 0x409ea4 <gforth_engine+3316>: idiv %ebx
- 0x409ea6 <gforth_engine+3318>: xor %ecx,%ebx
- 0x409ea8 <gforth_engine+3320>: mov %eax,0x18(%esp)
- 0x409eac <gforth_engine+3324>: jns 0x409ecf <gforth_engine+3359>
- (gdb) stepi
- Program received signal SIGFPE, Arithmetic exception.
- eax 0xfffffffe -2
- ecx 0x0 0
- edx 0x0 0
- ebx 0x1 1
- esp 0xbffff230 0xbffff230
- ebp 0x41edd0 0x41edd0
- esi 0xb7fc4ffc -1208201220
- edi 0xb7fc4ff4 -1208201228
- eip 0x409ea4 0x409ea4 <gforth_engine+3316>
- eflags 0x10a83 [ CF SF IF OF RF ]
- cs 0x73 115
- ss 0x7b 123
- ds 0x7b 123
- es 0x7b 123
- fs 0x0 0
- gs 0x33 51
- 0x00409ea4 in gforth_engine ()
- 3: x/4i $pc
- => 0x409ea4 <gforth_engine+3316>: idiv %ebx
- 0x409ea6 <gforth_engine+3318>: xor %ecx,%ebx
- 0x409ea8 <gforth_engine+3320>: mov %eax,0x18(%esp)
- 0x409eac <gforth_engine+3324>: jns 0x409ecf <gforth_engine+3359>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement