Go to file
Joel Brobecker 02aeec7bde Check library name rather than member name when rereading symbols.
On Darwin, we have lots of complaints being emitted when restarting
a program:

    (gdb) start
    `a-except.o' has disappeared; keeping its symbols.
    `unwind-dw2.o' has disappeared; keeping its symbols.
    `s-except.o' has disappeared; keeping its symbols.
    `s-traceb.o' has disappeared; keeping its symbols.

These object files are part of the GNAT runtime, and were never available.
The warning comes from the fact that we're checking whether the .o files
in the GNAT shared runtime have changed whereas we should be checking
whether the GNAT shared library itself has changed.

This patch implements this.  Although it is really only useful on a platform
such as Darwin (debug info stored in .o files), we believe that this is
the right thing to do in general.  This change should be a noop for all
the other platforms in any case.

gdb/ChangeLog (from Tristan Gingold & Pedro Alves):

        * symfile.c (reread_symbols): Also search for file in libraries.
        Update comment.

Tested on x86_64-darwin and x86_64-linux.
2010-04-27 21:01:30 +00:00
bfd 2010-04-27 Kai Tietz <kai.tietz@onevision.com> 2010-04-27 17:26:09 +00:00
binutils 2010-04-27 Kai Tietz <kai.tietz@onevision.com> 2010-04-27 17:28:15 +00:00
config Sync from gcc mainline. 2010-02-15 10:37:55 +00:00
cpu * m32r.cpu (HASH-PREFIX): Delete. 2010-02-12 04:38:21 +00:00
elfcpp include: 2010-03-05 21:04:59 +00:00
etc
gas Restore "call|jmp [xtrn]" in x86 assembler. 2010-04-24 17:41:04 +00:00
gdb Check library name rather than member name when rereading symbols. 2010-04-27 21:01:30 +00:00
gold Properly install gold/ld as default cross linker. 2010-04-27 16:05:54 +00:00
gprof PR gprof/11524 2010-04-27 14:46:09 +00:00
include merge from gcc 2010-04-26 18:04:23 +00:00
intl merge from gcc 2010-04-05 18:02:22 +00:00
ld Properly install gold/ld as default cross linker. 2010-04-27 16:05:54 +00:00
libdecnumber merge from gcc 2010-04-05 18:02:22 +00:00
libiberty merge from gcc 2010-04-24 01:03:21 +00:00
opcodes Updated translation templates. 2010-04-22 14:37:16 +00:00
readline
sim sim: unify target->subdir handling for default tests 2010-04-26 16:23:24 +00:00
texinfo
.cvsignore
ChangeLog * configure.ac (--enable-gold): Support both, both/gold and 2010-04-27 14:24:37 +00:00
compile
config-ml.in
config.guess * config.sub: Update to version 2010-03-22. 2010-03-23 14:27:19 +00:00
config.rpath
config.sub * config.sub: Update to version 2010-03-22. 2010-03-23 14:27:19 +00:00
configure * configure.ac (--enable-gold): Support both, both/gold and 2010-04-27 14:24:37 +00:00
configure.ac * configure.ac (--enable-gold): Support both, both/gold and 2010-04-27 14:24:37 +00:00
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.LIBGLOSS
COPYING.NEWLIB
depcomp
djunpack.bat
install-sh
libtool.m4 Sync Libtool from GCC. 2010-01-09 21:11:44 +00:00
lt~obsolete.m4 Sync Libtool from GCC. 2010-01-09 21:11:44 +00:00
ltgcc.m4
ltmain.sh Sync Libtool from GCC. 2010-01-09 21:11:44 +00:00
ltoptions.m4 Sync Libtool from GCC. 2010-01-09 21:11:44 +00:00
ltsugar.m4
ltversion.m4 Sync Libtool from GCC. 2010-01-09 21:11:44 +00:00
MAINTAINERS
Makefile.def * configure.ac (--enable-gold): Support both, both/gold and 2010-04-27 14:24:37 +00:00
Makefile.in * configure.ac (--enable-gold): Support both, both/gold and 2010-04-27 14:24:37 +00:00
Makefile.tpl * Makefile.tpl: Use "-exec rm {}" rather than "-delete" to delete 2010-02-17 11:02:54 +00:00
makefile.vms
missing
mkdep
mkinstalldirs
move-if-change
README
README-maintainer-mode
setup.com
src-release
symlink-tree
ylwrap

		   README for GNU development tools

This directory contains various GNU compilers, assemblers, linkers, 
debuggers, etc., plus their support routines, definitions, and documentation.

If you are receiving this as part of a GDB release, see the file gdb/README.
If with a binutils release, see binutils/README;  if with a libg++ release,
see libg++/README, etc.  That'll give you info about this
package -- supported targets, how to use it, how to report bugs, etc.

It is now possible to automatically configure and build a variety of
tools with one command.  To build all of the tools contained herein,
run the ``configure'' script here, e.g.:

	./configure 
	make

To install them (by default in /usr/local/bin, /usr/local/lib, etc),
then do:
	make install

(If the configure script can't determine your type of computer, give it
the name as an argument, for instance ``./configure sun4''.  You can
use the script ``config.sub'' to test whether a name is recognized; if
it is, config.sub translates it to a triplet specifying CPU, vendor,
and OS.)

If you have more than one compiler on your system, it is often best to
explicitly set CC in the environment before running configure, and to
also set CC when running make.  For example (assuming sh/bash/ksh):

	CC=gcc ./configure
	make

A similar example using csh:

	setenv CC gcc
	./configure
	make

Much of the code and documentation enclosed is copyright by
the Free Software Foundation, Inc.  See the file COPYING or
COPYING.LIB in the various directories, for a description of the
GNU General Public License terms under which you can copy the files.

REPORTING BUGS: Again, see gdb/README, binutils/README, etc., for info
on where and how to report problems.