[14482] in Athena Bugs

home help back first fref pref prev next nref lref last post

gdb does hokey things with shareable lib symbols under Solaris

daemon@ATHENA.MIT.EDU (John Hawkinson)
Sun Jul 21 15:24:00 1996

Date: Sun, 21 Jul 1996 15:23:37 -0400
To: gnu@MIT.EDU, bugs@MIT.EDU, cygnus-users@MIT.EDU
From: John Hawkinson <jhawk@MIT.EDU>


This happened to be under 8.0F, but I don't think that's pertinent -- I
remember seeing similar lossage.

I would normally have sent this as a PR to Cygnus, but pre Reid's mail:

Subject: Restrictions on sending in bug reports to Cygnus
To: cygnus-users@MIT.EDU
Date: Mon, 05 Feb 1996 15:09:02 EST

I won't do so. I'm not sure what's right though -- should I format
this in the form of a PR and expect someone to submit it? If so,
will any interaction on the bug report be forwarded from the site
contact back to me, or will I end up dealing directly with the Cygnus
support person? Some clarification would be appreciated.

Anyhow, the problem happens both with the GNU locker gdb and with the
Cygnus 96q1 version. They don't seem to correctly handle shared library
symbols.

In particular, state is gained after you run and exit a program.
This seems bogus, but it may be an operating system limitation.

The problem where you cannot specify a breakpoint symbolically
but can do so via an address is totally bogus, however :-)

I've attached scripts of the problem with the GNU locker gdb
and the Cygnus locker gdb. Both behave identically.

--jhawk

[portnoy!jhawk] /usr/bin# /mit/gnu/bin/gdb savecore
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.14 (sparc-sun-solaris2.3), 
Copyright 1995 Free Software Foundation, Inc...(no debugging symbols found)...
(gdb) break _doprnt
Function "_doprnt" not defined.
(gdb) run
Starting program: /usr/bin/savecore 
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...usage: /usr/bin/savecore [-v] dirname [ system ]

Program exited with code 01.
(gdb) break _doprnt
Cannot access memory at address 0xef70d700.
(gdb) break *0xef70d700
Breakpoint 1 at 0xef70d700
(gdb) run
Starting program: /usr/bin/savecore 

Breakpoint 1, 0xef70d700 in _doprnt ()
(gdb) 

[portnoy!jhawk] /usr/bin# /mit/cygnus/sun4bin/gdb savecore
attach: /afs/athena/software/cygnus/cygnus-96q1 linked to /mit/cygnus-96q1 for filesystem cygnus-96q1
Xlib: connection to "pickled-herring:0.0" refused by server
Xlib: Client is not authorized to connect to Server
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.15-96q1 (sparc-sun-solaris2), 
Copyright 1995 Free Software Foundation, Inc...(no debugging symbols found)...
(gdb) break _doprnt
Function "_doprnt" not defined.
(gdb) run
Starting program: /usr/bin/savecore 
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...usage: /usr/bin/savecore [-v] dirname [ system ]

Program exited with code 01.
(gdb) break _doprnt
Cannot access memory at address 0xef70d700.
(gdb) break *0xef70d700
Breakpoint 1 at 0xef70d700
(gdb) run
Starting program: /usr/bin/savecore 

Breakpoint 1, 0xef70d700 in _doprnt ()
(gdb) 

home help back first fref pref prev next nref lref last post