home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / emulate / sparc / expect.out < prev    next >
Text File  |  1992-02-03  |  1KB  |  63 lines

  1. exit with status 17: 159 instructions
  2. exit with status 18: 52 instructions
  3. exit with status 0: 138 instructions
  4. exit with status 0: 87 instructions
  5. exit with status 0: 288 instructions
  6. exit with status 0: 154 instructions
  7. exit with status 0: 115 instructions
  8. exit with status 61: 48582 instructions
  9. exit with status 23: 82 instructions
  10. exit with status 32: 1458 instructions
  11. ssim> # debug test file
  12. ssim> list
  13. 1: !
  14. 2: ! echo command line arguments
  15. 3: !
  16. 4:     add    %sp,64,%l0
  17. 5:     ld    [%l0],%l1   ! argc
  18. 6:     inc    4,%l0
  19. 7: L1:
  20. 8:     call    print_string
  21. 9:     ld    [%l0],%o0
  22. 10:     deccc    %l1
  23. ssim> break 14
  24. Breakpoint 1 at 0x2020
  25. ssim> display $pc
  26. 1: $pc = 0x0
  27. ssim> display $o1
  28. 2: $o1 = 0x0
  29. ssim> disa 0x2000 0x200c
  30. 0x2000: 0xa003a040 add      %sp,0x40,%l0
  31. 0x2004: 0xe2042000 ld       [%l0],%l1
  32. 0x2008: 0xa0042004 inc      0x4,%l0
  33. 0x200c: 0x40000009 call     0x2030
  34. ssim> address L1
  35. L1: 0x200c
  36. ssim> run 1 2 3
  37. a.out
  38. 1
  39. 2
  40. 3
  41.  
  42. Breakpoint 1: line 14, address 0x2020
  43. 14:     ld    [%sp+64],%o0  ! exit with status = argc
  44. 1: $pc = 0x2020
  45. 2: $o1 = 0x0
  46. ssim> next
  47.  
  48. Stepped to line 15, address 0x2024
  49. 15:     mov    1,%g1
  50. 1: $pc = 0x2024
  51. 2: $o1 = 0x0
  52. ssim> list 5 10
  53. 5:     ld    [%l0],%l1   ! argc
  54. 6:     inc    4,%l0
  55. 7: L1:
  56. 8:     call    print_string
  57. 9:     ld    [%l0],%o0
  58. 10:     deccc    %l1
  59. ssim> cont
  60. exit with status 4: 158 instructions
  61. ssim> 
  62. ssim> quit
  63.