Go to file
Tom Tromey 959d6a673e Fix regression in Ada do_full_match
An earlier patch to ada-lang.c:do_full_match introduced a subtle
change to the semantics.  The previous code did:

    -  if (strncmp (sym_name, search_name, search_name_len) == 0
    -      && is_name_suffix (sym_name + search_name_len))
    -    return true;
    -
    -  if (startswith (sym_name, "_ada_")

whereas the new code unconditionally skips a leading "_ada_".

The difference occurs if the lookup name itself starts with "_ada_".
In this case, the symbol won't match.

Normally this doesn't seem to be a problem.  However, it caused a
regression on one particular (internal) test case on one particular
platform.

This patch changes the code to handle this case.  I don't know how to
write a reliable test case for this, so no test is included.

2021-01-07  Tom Tromey  <tromey@adacore.com>

	* ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2021-01-07 07:06:26 -07:00
bfd Fix another path length problem opening files on Win32 systems. 2021-01-07 12:05:43 +00:00
binutils binutils/readelf.c: Correct grammar in comment 2021-01-07 10:40:32 +10:30
config PR27116, Spelling errors found by Debian style checker 2021-01-01 14:36:35 +10:30
contrib
cpu
elfcpp Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
etc Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
gas RISC-V: Add pause hint instruction. 2021-01-07 16:45:43 +08:00
gdb Fix regression in Ada do_full_match 2021-01-07 07:06:26 -07:00
gdbserver [gdb/build] Fix gdbserver build with -fsanitize=address 2021-01-07 10:37:51 +01:00
gdbsupport gdbsupport: common-utils.h: fix typo in header 2021-01-06 05:52:06 -05:00
gnulib Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
gold PR27140, ppc32 segmentation fault in make_stub 2021-01-03 12:49:47 +10:30
gprof PR27116, Spelling errors found by Debian style checker 2021-01-01 14:36:35 +10:30
include RISC-V: Add pause hint instruction. 2021-01-07 16:45:43 +08:00
intl
ld sh-pe ld XPASSes 2021-01-08 00:32:43 +10:30
libctf libctf, testsuite: adjust for real return type of ctf_member_count 2021-01-05 19:34:56 +00:00
libdecnumber
libiberty Update libiberty with latest sources from gcc mainline 2021-01-05 12:36:09 +00:00
opcodes RISC-V: Add pause hint instruction. 2021-01-07 16:45:43 +08:00
readline
sim fix paths in ChangeLog 2021-01-07 01:27:06 -05:00
texinfo
zlib
.cvsignore
.gitattributes
.gitignore Add gnu global outputs to .gitignore 2020-12-02 10:00:27 -05:00
ar-lib
ChangeLog config.sub update broke powerpc-eabivle 2021-01-07 08:56:28 +10:30
compile
config-ml.in
config.guess Update config.sub and config.guess 2021-01-05 15:55:59 +10:30
config.rpath
config.sub config.sub update broke powerpc-eabivle 2021-01-07 08:56:28 +10:30
configure
configure.ac
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.LIBGLOSS
COPYING.NEWLIB
depcomp
djunpack.bat
install-sh
libtool.m4
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4 Sync Libtool from GCC. 2010-01-09 21:11:44 +00:00
MAINTAINERS
Makefile.def libctf: new testsuite 2021-01-05 14:53:40 +00:00
Makefile.in libctf: new testsuite 2021-01-05 14:53:40 +00:00
Makefile.tpl
makefile.vms
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
README
README-maintainer-mode
setup.com
src-release.sh
symlink-tree
test-driver
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.