Article View: gnu.gdb.bug
Article #586gdb fails on Solaris 2.1
From: John S Cooper
Date: Fri, 08 Jan 1993 10:28
Date: Fri, 08 Jan 1993 10:28
57 lines
1783 bytes
1783 bytes
Configuration: gdb4.7 built with gcc2.3.3 on Solaris 2.1
Whenever I step over any function in a shared library (in this case,
printf() in libc.so), gdb gives the following segmentation fault:
gdb-4.7/gdb/gdb hello
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.7, Copyright 1992 Free Software Foundation, Inc...
(gdb) b main
Breakpoint 1 at 0x10778: file hello.c, line 8.
(gdb) r
Starting program: /saxon/jsc/hello
Breakpoint 1, main (argc=1, argv=0xeffff9cc) at hello.c:8
8 a = 2;
(gdb) n
9 printf("Hello World\n");
(gdb) n
0x208d0 in __DTOR_END__ ()
(gdb)
Current function has no line number information.
Single stepping until function exit.
Program received signal 11, Segmentation fault
0xef7d906c in _fp_current_direction ()
(gdb)
The source program is as follows:
#include <stdio.h>
static void bar(int ef);
main(int argc, char **argv)
{
int a;
a = 2;
printf("Hello World\n");
bar(a);
}
static void
bar(int ef)
{
printf("%d\n", ef);
}
I posted the same bug a while ago when I had built gdb4.7 with the
SparcWorks compilers, but had no response. Is gdb supported on Solaris
2.x yet?
Thanks for any help,
--- John.
Technical Details
Message-ID:
<9301081028.AA28770@saxon.Eng.Sun.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!eng.SUn.COM!John.CooperShow Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!eng.SUn.COM!John.Cooper From: John.Cooper@eng.SUn.COM (John S Cooper) Subject: gdb fails on Solaris 2.1 Message-ID: <9301081028.AA28770@saxon.Eng.Sun.COM> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Fri, 8 Jan 1993 10:28:28 GMT Approved: bug-gdb@prep.ai.mit.edu Lines: 58