Subject: [Solaris] pkg gdb doesn't... just for me?
To: None <tech-pkg@netbsd.org>
From: Ignatios Souvatzis <ignatios@theory.cs.uni-bonn.de>
List: tech-pkg
Date: 01/22/2003 11:59:57
--mJm6k4Vb/yFcL9ZU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

gdb 5.foo as built from pkg doesn't work with a program that uses it's own
shared library. See below for details.

Does it work for anybody on Solaris (or other non-NetBSD)?

Regards,
	-is

SunOS newton.cs.uni-bonn.de 5.8 Generic_108528-09 sun4u sparc SUNW,Sun-Blad=
e-100

Information for gdb-5.2.1:

Comment:
symbolic debugger for multiple language frontends

Requires:
gettext-lib>=3D0.10.35nb1
gtexinfo>=3D3.12

Description:
   The purpose of a debugger such as GDB is to allow you to see what
is going on "inside" another program while it executes--or what
another program was doing at the moment it crashed.

   GDB can do four main kinds of things (plus other things in support
of these) to help you catch bugs in the act:

   * Start your program, specifying anything that might affect its
     behavior.

   * Make your program stop on specified conditions.

   * Examine what has happened, when your program has stopped.

   * Change things in your program, so you can experiment with
     correcting the effects of one bug and go on to learn about
     another.

Homepage:
http://www.gnu.org/software/gdb/gdb.html


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D what doesn't work:=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20


ignatios@newton 18 % gdb ~yasha/video/bin/ertdecvideo
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain condition=
s.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) run
Starting program: /home/theory2/yasha/video/bin/ertdecvideo=20
dbxread.c:1717: gdb-internal-error: sect_index_data not initialized
An internal GDB error was detected.  This may make further
debugging unreliable.  Quit this debugging session? (y or n) y

Create a core file containing the current state of GDB? (y or n) n

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D What works: =3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20

ignatios@newton 20 % /usr/local/gnu/bin/gdb ~yasha/video/bin/ertdecvideo
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.16 (sparc-sun-solaris2.5),=20
Copyright 1996 Free Software Foundation, Inc...
(gdb) ignatios@newton 20 % /usr/local/gnu/bin/gdb ~yasha/video/bin/ertdecvi=
deo
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.16 (sparc-sun-solaris2.5),=20
Copyright 1996 Free Software Foundation, Inc...
(gdb) run
Starting program: /home/theory2/yasha/video/bin/ertdecvideo=20
warning: Unable to find dynamic linker breakpoint function.
warning: GDB will be unable to debug shared library initializers
warning: and track explicitly loaded dynamic code.
Usage:  /home/theory2/yasha/video/bin/ertdecvideo description bitstream ...=
 - [reference]

Program exited with code 01.
(gdb)=20


--mJm6k4Vb/yFcL9ZU
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQEVAgUBPi55aDCn4om+4LhpAQEtcgf/bN6xbbZ/CoUIZNeUn1VMX3nj1hm6R9fj
50DbP7bUmCRSTySS56D6bFiSGSqgz+WWIbq2svLk4Z/LrPMu85/V7HNWI8fLOpO+
KCXKUEUwn5px2WzvQwgeS8dGsJ2M4skCzlTYesxagcQ+f9gH9Gsp3ob6oEJfPS27
fZo3gI1dcJJ32Bz2/Fh0uoUmBghfGnXs7kqi/zgsq6zGtytSh6nfs/L5e7y/w7LZ
7HjsOYV3GXWCuIYRDYVvkWLu717nf4bukydXtecma1JSnvFW6fPL/SXoSrMBxtFf
NNOrPt+3IzFXzst9eyKyPE78vFEzXNiOHfObAmyJvf76m6RFOC1Bog==
=jsNK
-----END PGP SIGNATURE-----

--mJm6k4Vb/yFcL9ZU--