Thread View: gnu.gdb.bug
1 messages
1 total messages
Started by John S Cooper
Fri, 08 Jan 1993 10:28
gdb fails on Solaris 2.1
Author: 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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads