home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / gdb / bug / 1314 < prev    next >
Encoding:
Text File  |  1992-12-14  |  2.1 KB  |  74 lines

  1. Path: sparky!uunet!olivea!spool.mu.edu!sdd.hp.com!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!sics.se!tw
  2. From: tw@sics.se (Tommy Wallo)
  3. Newsgroups: gnu.gdb.bug
  4. Subject: step in gdb-4.7 on SGI Irix-4.x doesn't work
  5. Message-ID: <9212140322.AA18281@krishna.sics.se>
  6. Date: 14 Dec 92 05:22:40 GMT
  7. Sender: gnulists@ai.mit.edu
  8. Distribution: gnu
  9. Organization: GNUs Not Usenet
  10. Lines: 61
  11. Approved: bug-gdb@prep.ai.mit.edu
  12.  
  13. oliveros:tw> uname -a
  14. IRIX oliveros 4.0.5F 08280217 IP12
  15.  
  16. oliveros:tw> cat config.status 
  17. #!/bin/sh
  18. # This file was generated automatically by configure.  Do not edit.
  19. # This directory was configured as follows:
  20. ../configure --prefix=/usr/gnu --srcdir=.. mips-sgi-irix4 -norecursion 
  21. # using "../config/mh-irix4"
  22.  
  23. oliveros:tw> cat gdbtest.c
  24. #include <stdio.h>
  25. main()
  26. {
  27.         int i;
  28.         for (i=0; i<2; i++) {
  29.                 printf("%d", i);
  30.         }
  31.         exit(0);
  32. }
  33.  
  34. oliveros:tw> gcc -v
  35. Reading specs from /usr/gnu/lib/gcc-lib/iris/2.2.2/specs
  36. gcc version 2.2.2
  37.  
  38. oliveros:tw> gcc -g -o gdbtest gdbtest.c 
  39. (You get the same behaviour if you compile with cc)
  40. oliveros:tw> gdb gdbtest
  41. GDB is free software and you are welcome to distribute copies of it
  42.  under certain conditions; type "show copying" to see the conditions.
  43. There is absolutely no warranty for GDB; type "show warranty" for details.
  44. GDB 4.7, Copyright 1992 Free Software Foundation, Inc...
  45. (gdb) break main
  46. Breakpoint 1 at 0x400234: file gdbtest.c, line 5.
  47. (gdb) run
  48. Starting program: /a/krishna/home1/tw/C/gdbtest 
  49.  
  50. Breakpoint 1, main () at gdbtest.c:5
  51. 5               for (i=0; i<2; i++) {
  52. (gdb) s
  53. 6                       printf("%d", i);
  54. (gdb) s
  55. printf () at printf.c:43
  56. printf.c:43: No such file or directory.
  57. (gdb) s
  58. printf.c:38: No such file or directory.
  59. (gdb) s
  60. printf.c:43: No such file or directory.
  61. (gdb) s
  62. printf.c:54: No such file or directory.
  63.  
  64. And so on..
  65.  
  66. This problem existed in earlier versions of gbd also.
  67.  
  68.     -- Tommy
  69.  
  70. --
  71. Tommy Wallo                                     Internet: tw@sics.se
  72. Swedish Institute of Computer Science (SICS)    Tel:      +46 8 752 15 53
  73. PO Box 1263, S-164 28 KISTA, SWEDEN             Fax:      +46 8 751 72 30
  74.