home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11380 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  2.1 KB

  1. Path: sparky!uunet!mcsun!chsun!zurich!kor
  2. From: kor@zurich.spectrospin.ch (Reto Koradi)
  3. Newsgroups: comp.sys.sgi
  4. Subject: dbx problem with 4.0.4
  5. Keywords: dbx
  6. Message-ID: <170@zurich.spectrospin.ch>
  7. Date: 23 Jul 92 08:38:23 GMT
  8. Organization: Spectrospin AG, Fallanden Switzerland
  9. Lines: 67
  10.  
  11. I have a problem with dbx that I seem to have since I upgraded my
  12. PI 4D/35 to IRIX 4.0.4. When I give the 'next' or 'step' command in
  13. dbx, it ofthen displays the line with the opening brace of the function.
  14. Another 'next' brings me back to the original line, another one to
  15. the next line.
  16.  
  17. The following program 'tt.c' illustrates the problem:
  18.  
  19. int f(k)
  20. int k;
  21. {
  22.   return k + 1;
  23. }
  24.  
  25. main ()
  26. {
  27.   int i = 5;
  28.   i = f(i);
  29.   return 0;
  30. }
  31.  
  32. I compile it and start the debugger:
  33.  
  34. > cc -o tt -g tt.c
  35. > dbx tt
  36.  
  37. The debugging session looks like this:
  38.  
  39. dbx version 2.40 3/7/92 1:12
  40. Type 'help' for help.
  41. Reading symbolic information of `tt' . . .
  42. main:9    9  int i = 5;
  43. (dbx) stop in main
  44. Process     0: [2] stop in main
  45. (dbx) run
  46. Process  4440 (tt) started
  47. [2] Process  4440 (tt) stopped at [main:9 ,0x400220]
  48.    9  int i = 5;
  49. (dbx) next
  50. Process  4440 (tt) stopped at [main:10 ,0x400228]
  51.   10  i = f(i);
  52. (dbx) next
  53. Process  4440 (tt) stopped at [main:8? ,0x40022c]
  54.    8  {
  55. (dbx) next
  56. Process  4440 (tt) stopped at [main:10 +0x8,0x400230]
  57.   10  i = f(i);
  58. (dbx) next
  59. Process  4440 (tt) stopped at [main:11 ,0x40023c]
  60.   11  return 0;
  61. (dbx) quit
  62.  
  63. Does anybody have any clue? Fixed in 4.0.5???
  64.  
  65. Please reply by e-mail, I'm on vacation next week.
  66.  
  67. Thanks
  68. Reto
  69.  
  70. ***************************************************************************
  71. *     _  _    * Industriestr. 26           * We had some good machines,   *
  72. *    / */ \   * CH-8117 Faellanden         * but they don't work no more. *
  73. *    \ /\ /   *                            * I loved you once,            *
  74. * SPECTROSPIN * Reto Koradi                * don't love you anymore.      *
  75. *    / \/ \   * phone: 01 825 94 77        *                              *
  76. *    \_*\_/   * e-mail: kor@spectrospin.ch * (Shriekback: Faded Flowers)  *
  77. ***************************************************************************
  78.