Go to file
Tom de Vries 4b3d893ac8 [gdb/symtab] Do more zero-initialization of type::fields
Now that we've introduced type::{alloc_fields,copy_fields}, the places where
no zero-initialization of allocated fields is done are easy to spot:
...
$ find gdb* -type f | grep -v ChangeLog | xargs grep alloc_fields | grep false
gdb/coffread.c:  type->alloc_fields (nfields, false);
gdb/coffread.c:  type->alloc_fields (nsyms, false);
gdb/stabsread.c:	  ftype->alloc_fields (nsemi, false);
gdb/gdbtypes.c:  resolved_type->alloc_fields (nfields, false);
gdb/gdbtypes.c:  alloc_fields (nfields, false);
gdb/gdbtypes.c:  alloc_fields (nfields, false);
gdb/mdebugread.c:	t->alloc_fields (nfields, false);
gdb/mdebugread.c:		  ftype->alloc_fields (nparams, false);
...

All hits in gdbtypes.c are ok.  There are two hits in the two variants of
copy_fields, and there's already a comment for the third.

AFAICT, the other ones are not ok, so fix those by dropping the "false"
argument.

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
2023-08-31 09:37:44 +02:00
bfd elf: Check DT_SYMTAB only on non-IR object 2023-08-30 17:17:31 -07:00
binutils objdump: Free sorted_syms on error path 2023-08-30 11:22:23 +09:30
config
contrib
cpu sim --enable-cgen-maint 2023-08-19 12:41:32 +09:30
elfcpp
etc
gas Revert "MIPS: Use 64-bit a ABI by default for `mipsisa64*-*-linux*' targets" 2023-08-30 18:45:14 +01:00
gdb [gdb/symtab] Do more zero-initialization of type::fields 2023-08-31 09:37:44 +02:00
gdbserver gdbserver, linux-low: add a couple of nullptr assertions. 2023-08-30 06:32:05 +00:00
gdbsupport x86: Remove X86_XSTATE_SIZE and related constants. 2023-08-28 14:18:19 -07:00
gnulib
gold Revert "Gold: Add targ_extra_little_endian to configure.ac" 2023-08-30 18:45:14 +01:00
gprof
gprofng gprofng: Use execvp instead of execv 2023-08-17 13:15:10 -07:00
include PE dos_message 2023-08-27 21:21:38 +09:30
intl
ld arc: Update elfarcv2 script template 2023-08-31 08:13:53 +03:00
libbacktrace
libctf
libdecnumber
libiberty
libsframe
opcodes RISC-V: Make XVentanaCondOps RV64 only 2023-08-30 04:00:40 +00:00
readline
sim Simplify definition of GUILE 2023-08-26 13:09:38 -06:00
texinfo
zlib
.cvsignore
.editorconfig
.gitattributes
.gitignore
ar-lib
ChangeLog
compile
config-ml.in
config.guess
config.rpath
config.sub
configure generated bfd files, and kvx regen 2023-08-17 21:44:04 +09:30
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
MAINTAINERS
Makefile.def
Makefile.in
Makefile.tpl
makefile.vms
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
README
README-maintainer-mode
SECURITY.txt
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.