Article View: gnu.gdb.bug
Article #9help with gdb (Solaris 2.0) -- not a bug, I hope
From: 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):
Technical Details
Message-ID:
<9210272135.AA07615@dino.bellcore.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!thumper.bellcore.com!danaShow Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!thumper.bellcore.com!dana From: dana@thumper.bellcore.com (Dana A. Chee) Subject: help with gdb (Solaris 2.0) -- not a bug, I hope Message-ID: <9210272135.AA07615@dino.bellcore.com> Sender: gnulists@ai.mit.edu Reply-To: <dana@thumper.bellcore.com> (Dana Chee) Organization: GNUs Not Usenet Distribution: gnu Date: Tue, 27 Oct 1992 21:35:32 GMT Approved: bug-gdb@prep.ai.mit.edu Lines: 34