Thread View: gnu.gdb.bug
1 messages
1 total messages
Started by Dana A. Chee
Tue, 27 Oct 1992 21:35
help with gdb (Solaris 2.0) -- not a bug, I hope
Author: Dana A. Chee
Date: Tue, 27 Oct 1992 21:35
Date: Tue, 27 Oct 1992 21:35
33 lines
1743 bytes
1743 bytes
I'm having a problem with gdb on a Solaris machine:
Sun Microsystems Inc. SunOS 5.0 fcs June 1992
I'm trying to get gdb to work, but it keeps complaining about shared
libraries that aren't there. Below is the session, am I doing
something wrong (my gdb came from the binary distribution on
ftp.uu.net as of today).
BAMBI(/6): make CFLAGS=-g LDFLAGS="-static" dana
cc -g -static -o dana dana.c
BAMBI(/6): ldd dana
ldd: dana: file is not a dynamic executable or shared object
BAMBI(/6): gdb dana
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.5.4, Copyright 1992 Free Software Foundation, Inc...
(gdb) l main
1 main()
2 {
3 printf("getenv returned %s\n", getenv("TERM"));
4 }
(gdb) b 3
Breakpoint 1 at 0x100f4: file dana.c, line 3.
(gdb) r
Starting program: /tmp/dana
warning: stopped at unknown breakpoint while handling shared libraries
Program received signal 5, Trace/breakpoint trap
0xef7652b4 in execve ()
(gdb) quit
The program is running. Quit anyway? (y or n) y
BAMBI(/6):
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