gdb-msvc/libiberty
Les De Ridder f6d5862ceb Add PDB section reading to bfd (using LLVM now) 2020-07-31 13:55:53 +02:00
..
config Import GDB 9.2 2020-06-18 10:11:10 +02:00
testsuite Import GDB 9.2 2020-06-18 10:11:10 +02:00
.gitignore Import GDB 9.2 2020-06-18 10:11:10 +02:00
COPYING.LIB Import GDB 9.2 2020-06-18 10:11:10 +02:00
ChangeLog Import GDB 9.2 2020-06-18 10:11:10 +02:00
ChangeLog.jit Import GDB 9.2 2020-06-18 10:11:10 +02:00
Makefile.in Add MSVC demangling support 2020-06-18 15:38:56 +02:00
README Import GDB 9.2 2020-06-18 10:11:10 +02:00
_doprnt.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
aclocal.m4 Import GDB 9.2 2020-06-18 10:11:10 +02:00
alloca.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
argv.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
asprintf.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
at-file.texi Import GDB 9.2 2020-06-18 10:11:10 +02:00
atexit.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
basename.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
bcmp.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
bcopy.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
bsearch.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
bzero.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
calloc.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
choose-temp.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
clock.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
concat.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
config.h-vms Import GDB 9.2 2020-06-18 10:11:10 +02:00
config.in Import GDB 9.2 2020-06-18 10:11:10 +02:00
configure Import GDB 9.2 2020-06-18 10:11:10 +02:00
configure.ac Import GDB 9.2 2020-06-18 10:11:10 +02:00
configure.com Import GDB 9.2 2020-06-18 10:11:10 +02:00
copying-lib.texi Import GDB 9.2 2020-06-18 10:11:10 +02:00
copysign.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
cp-demangle.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
cp-demangle.h Import GDB 9.2 2020-06-18 10:11:10 +02:00
cp-demint.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
cplus-dem.c Add MSVC demangling support 2020-06-18 15:38:56 +02:00
crc32.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
d-demangle.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
dwarfnames.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
dyn-string.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
fdmatch.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
ffs.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
fibheap.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
filename_cmp.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
floatformat.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
fnmatch.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
fnmatch.txh Import GDB 9.2 2020-06-18 10:11:10 +02:00
fopen_unlocked.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
functions.texi Import GDB 9.2 2020-06-18 10:11:10 +02:00
gather-docs Import GDB 9.2 2020-06-18 10:11:10 +02:00
getcwd.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
getopt.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
getopt1.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
getpagesize.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
getpwd.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
getruntime.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
gettimeofday.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
hashtab.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
hex.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
index.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
insque.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
lbasename.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
libiberty.texi Import GDB 9.2 2020-06-18 10:11:10 +02:00
lrealpath.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
maint-tool Import GDB 9.2 2020-06-18 10:11:10 +02:00
make-relative-prefix.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
make-temp-file.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
makefile.vms Import GDB 9.2 2020-06-18 10:11:10 +02:00
md5.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
memchr.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
memcmp.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
memcpy.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
memmem.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
memmove.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
mempcpy.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
memset.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
mkstemps.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
msdos.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
msvc-demangle.cpp Add PDB section reading to bfd (using LLVM now) 2020-07-31 13:55:53 +02:00
msvc-demangle.h Add MSVC demangling support 2020-06-18 15:38:56 +02:00
objalloc.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
obstack.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
obstacks.texi Import GDB 9.2 2020-06-18 10:11:10 +02:00
partition.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
pex-common.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
pex-common.h Import GDB 9.2 2020-06-18 10:11:10 +02:00
pex-djgpp.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
pex-msdos.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
pex-one.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
pex-unix.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
pex-win32.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
pexecute.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
pexecute.txh Import GDB 9.2 2020-06-18 10:11:10 +02:00
physmem.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
putenv.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
random.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
regex.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
rename.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
rindex.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
rust-demangle.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
rust-demangle.h Import GDB 9.2 2020-06-18 10:11:10 +02:00
safe-ctype.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
setenv.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
setproctitle.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
sha1.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
sigsetmask.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
simple-object-coff.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
simple-object-common.h Import GDB 9.2 2020-06-18 10:11:10 +02:00
simple-object-elf.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
simple-object-mach-o.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
simple-object-xcoff.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
simple-object.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
simple-object.txh Import GDB 9.2 2020-06-18 10:11:10 +02:00
snprintf.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
sort.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
spaces.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
splay-tree.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
stack-limit.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
stpcpy.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
stpncpy.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
strcasecmp.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
strchr.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
strdup.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
strerror.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
strncasecmp.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
strncmp.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
strndup.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
strnlen.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
strrchr.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
strsignal.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
strstr.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
strtod.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
strtol.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
strtoll.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
strtoul.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
strtoull.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
strverscmp.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
timeval-utils.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
tmpnam.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
unlink-if-ordinary.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
vasprintf.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
vfork.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
vfprintf.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
vprintf-support.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
vprintf-support.h Import GDB 9.2 2020-06-18 10:11:10 +02:00
vprintf.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
vsnprintf.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
vsprintf.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
waitpid.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
xasprintf.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
xatexit.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
xexit.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
xmalloc.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
xmemdup.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
xstrdup.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
xstrerror.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
xstrndup.c Import GDB 9.2 2020-06-18 10:11:10 +02:00
xvasprintf.c Import GDB 9.2 2020-06-18 10:11:10 +02:00

README

This directory contains the -liberty library of free software.
It is a collection of subroutines used by various GNU programs.
Current members include:

	getopt -- get options from command line
	obstack -- stacks of arbitrarily-sized objects
	strerror -- error message strings corresponding to errno
	strtol -- string-to-long conversion
	strtoul -- string-to-unsigned-long conversion

We expect many of the GNU subroutines that are floating around to
eventually arrive here.

The library must be configured from the top source directory.  Don't
try to run configure in this directory.  Follow the configuration
instructions in ../README.

Please report bugs to "gcc-bugs@gcc.gnu.org" and send fixes to
"gcc-patches@gcc.gnu.org".  Thank you.

ADDING A NEW FILE
=================

There are two sets of files:  Those that are "required" will be
included in the library for all configurations, while those
that are "optional" will be included in the library only if "needed."

To add a new required file, edit Makefile.in to add the source file
name to CFILES and the object file to REQUIRED_OFILES.

To add a new optional file, it must provide a single function, and the
name of the function must be the same as the name of the file.

    * Add the source file name to CFILES in Makefile.in and the object
      file to CONFIGURED_OFILES.

    * Add the function to name to the funcs shell variable in
      configure.ac.

    * Add the function to the AC_CHECK_FUNCS lists just after the
      setting of the funcs shell variable.  These AC_CHECK_FUNCS calls
      are never executed; they are there to make autoheader work
      better.

    * Consider the special cases of building libiberty; as of this
      writing, the special cases are newlib and VxWorks.  If a
      particular special case provides the function, you do not need
      to do anything.  If it does not provide the function, add the
      object file to LIBOBJS, and add the function name to the case
      controlling whether to define HAVE_func.

Finally, in the build directory of libiberty, configure with
"--enable-maintainer-mode", run "make maint-deps" to update
Makefile.in, and run 'make stamp-functions' to regenerate
functions.texi.

The optional file you've added (e.g. getcwd.c) should compile and work
on all hosts where it is needed.  It does not have to work or even
compile on hosts where it is not needed.

ADDING A NEW CONFIGURATION
==========================

On most hosts you should be able to use the scheme for automatically
figuring out which files are needed.  In that case, you probably
don't need a special Makefile stub for that configuration.

If the fully automatic scheme doesn't work, you may be able to get
by with defining EXTRA_OFILES in your Makefile stub.  This is
a list of object file names that should be treated as required
for this configuration - they will be included in libiberty.a,
regardless of whatever might be in the C library.