home *** CD-ROM | disk | FTP | other *** search
- exit with status 17: 159 instructions
- exit with status 18: 52 instructions
- exit with status 0: 138 instructions
- exit with status 0: 87 instructions
- exit with status 0: 288 instructions
- exit with status 0: 154 instructions
- exit with status 0: 115 instructions
- exit with status 61: 48582 instructions
- exit with status 23: 82 instructions
- exit with status 32: 1458 instructions
- ssim> # debug test file
- ssim> list
- 1: !
- 2: ! echo command line arguments
- 3: !
- 4: add %sp,64,%l0
- 5: ld [%l0],%l1 ! argc
- 6: inc 4,%l0
- 7: L1:
- 8: call print_string
- 9: ld [%l0],%o0
- 10: deccc %l1
- ssim> break 14
- Breakpoint 1 at 0x2020
- ssim> display $pc
- 1: $pc = 0x0
- ssim> display $o1
- 2: $o1 = 0x0
- ssim> disa 0x2000 0x200c
- 0x2000: 0xa003a040 add %sp,0x40,%l0
- 0x2004: 0xe2042000 ld [%l0],%l1
- 0x2008: 0xa0042004 inc 0x4,%l0
- 0x200c: 0x40000009 call 0x2030
- ssim> address L1
- L1: 0x200c
- ssim> run 1 2 3
- a.out
- 1
- 2
- 3
-
- Breakpoint 1: line 14, address 0x2020
- 14: ld [%sp+64],%o0 ! exit with status = argc
- 1: $pc = 0x2020
- 2: $o1 = 0x0
- ssim> next
-
- Stepped to line 15, address 0x2024
- 15: mov 1,%g1
- 1: $pc = 0x2024
- 2: $o1 = 0x0
- ssim> list 5 10
- 5: ld [%l0],%l1 ! argc
- 6: inc 4,%l0
- 7: L1:
- 8: call print_string
- 9: ld [%l0],%o0
- 10: deccc %l1
- ssim> cont
- exit with status 4: 158 instructions
- ssim>
- ssim> quit
-