Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (gdb) r
- Starting program: /Users/doob/development/d/test
- Reading symbols for shared libraries +......................... done
- Program received signal EXC_BAD_ACCESS, Could not access memory.
- Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
- 0x00002689 in D4test3barFZS4test3Foo ()
- (gdb) bt
- #0 0x00002689 in D4test3barFZS4test3Foo ()
- #1 0x00002647 in _Dmain ()
- #2 0x000140c5 in D2rt6dmain211_d_run_mainUiPPaPUAAaZiZi7runMainMFZv ()
- #3 0x00013c78 in D2rt6dmain211_d_run_mainUiPPaPUAAaZiZi7tryExecMFMDFZvZv ()
- #4 0x00014113 in D2rt6dmain211_d_run_mainUiPPaPUAAaZiZi6runAllMFZv ()
- #5 0x00013c78 in D2rt6dmain211_d_run_mainUiPPaPUAAaZiZi7tryExecMFMDFZvZv ()
- #6 0x00013c46 in _d_run_main ()
- #7 0x00013ae9 in main ()
- (gdb) disas
- Dump of assembler code for function D4test3barFZS4test3Foo:
- 0x00002668 <D4test3barFZS4test3Foo+0>: push %ebp
- 0x00002669 <D4test3barFZS4test3Foo+1>: mov %esp,%ebp
- 0x0000266b <D4test3barFZS4test3Foo+3>: sub $0x20,%esp
- 0x0000266e <D4test3barFZS4test3Foo+6>: push %esi
- 0x0000266f <D4test3barFZS4test3Foo+7>: push %edi
- 0x00002670 <D4test3barFZS4test3Foo+8>: mov %eax,-0x4(%ebp)
- 0x00002673 <D4test3barFZS4test3Foo+11>: sub $0x8,%esp
- 0x00002676 <D4test3barFZS4test3Foo+14>: push $0x0
- 0x00002678 <D4test3barFZS4test3Foo+16>: lea -0x10(%ebp),%ecx
- 0x0000267b <D4test3barFZS4test3Foo+19>: push %ecx
- 0x0000267c <D4test3barFZS4test3Foo+20>: call 0x26a0 <foo>
- 0x00002681 <D4test3barFZS4test3Foo+25>: add $0xc,%esp
- 0x00002684 <D4test3barFZS4test3Foo+28>: mov %eax,%esi
- 0x00002686 <D4test3barFZS4test3Foo+30>: mov -0x4(%ebp),%edi
- 0x00002689 <D4test3barFZS4test3Foo+33>: movsl %ds:(%esi),%es:(%edi)
- 0x0000268a <D4test3barFZS4test3Foo+34>: movsl %ds:(%esi),%es:(%edi)
- 0x0000268b <D4test3barFZS4test3Foo+35>: movsl %ds:(%esi),%es:(%edi)
- 0x0000268c <D4test3barFZS4test3Foo+36>: mov -0x4(%ebp),%eax
- 0x0000268f <D4test3barFZS4test3Foo+39>: pop %edi
- 0x00002690 <D4test3barFZS4test3Foo+40>: pop %esi
- 0x00002691 <D4test3barFZS4test3Foo+41>: leave
- 0x00002692 <D4test3barFZS4test3Foo+42>: ret
- 0x00002693 <D4test3barFZS4test3Foo+43>: nop
- 0x00002694 <D4test3barFZS4test3Foo+44>: nop
- 0x00002695 <D4test3barFZS4test3Foo+45>: nop
- 0x00002696 <D4test3barFZS4test3Foo+46>: nop
- 0x00002697 <D4test3barFZS4test3Foo+47>: nop
- 0x00002698 <D4test3barFZS4test3Foo+48>: nop
- 0x00002699 <D4test3barFZS4test3Foo+49>: nop
- 0x0000269a <D4test3barFZS4test3Foo+50>: nop
- 0x0000269b <D4test3barFZS4test3Foo+51>: nop
- 0x0000269c <D4test3barFZS4test3Foo+52>: nop
- 0x0000269d <D4test3barFZS4test3Foo+53>: nop
- 0x0000269e <D4test3barFZS4test3Foo+54>: nop
- 0x0000269f <D4test3barFZS4test3Foo+55>: nop
- End of assembler dump.
- (gdb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement