home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / gdb / bug / 1358 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.7 KB  |  71 lines

  1. Newsgroups: gnu.gdb.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!eng.SUn.COM!John.Cooper
  3. From: John.Cooper@eng.SUn.COM (John S Cooper)
  4. Subject: gdb fails on Solaris 2.1
  5. Message-ID: <9301081028.AA28770@saxon.Eng.Sun.COM>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Fri, 8 Jan 1993 10:28:28 GMT
  10. Approved: bug-gdb@prep.ai.mit.edu
  11. Lines: 58
  12.  
  13. Configuration: gdb4.7 built with gcc2.3.3 on Solaris 2.1
  14.  
  15. Whenever I step over any function in a shared library (in this case,
  16. printf() in libc.so), gdb gives the following segmentation fault:
  17.  
  18. gdb-4.7/gdb/gdb hello
  19. GDB is free software and you are welcome to distribute copies of it
  20.  under certain conditions; type "show copying" to see the conditions.
  21. There is absolutely no warranty for GDB; type "show warranty" for details.
  22. GDB 4.7, Copyright 1992 Free Software Foundation, Inc...
  23. (gdb) b main
  24. Breakpoint 1 at 0x10778: file hello.c, line 8.
  25. (gdb) r
  26. Starting program: /saxon/jsc/hello 
  27.  
  28. Breakpoint 1, main (argc=1, argv=0xeffff9cc) at hello.c:8
  29. 8        a = 2;
  30. (gdb) n
  31. 9        printf("Hello World\n");
  32. (gdb) n
  33. 0x208d0 in __DTOR_END__ ()
  34. (gdb) 
  35. Current function has no line number information.
  36. Single stepping until function exit.
  37.  
  38. Program received signal 11, Segmentation fault
  39. 0xef7d906c in _fp_current_direction ()
  40. (gdb)
  41.  
  42. The source program is as follows:
  43.  
  44. #include <stdio.h>
  45.  
  46. static void bar(int ef);
  47.  
  48. main(int argc, char **argv)
  49. {
  50.     int a;
  51.     a = 2;
  52.     printf("Hello World\n");
  53.     bar(a);
  54. }
  55.  
  56. static void
  57. bar(int ef)
  58. {
  59.     printf("%d\n", ef);
  60. }
  61.  
  62.  
  63. I posted the same bug a while ago when I had built gdb4.7 with the
  64. SparcWorks compilers, but had no response. Is gdb supported on Solaris
  65. 2.x yet?
  66.  
  67. Thanks for any help,
  68.  
  69.        --- John.
  70.  
  71.