binutils-gdb/gdbsupport
Andrew Burgess 9664849417 gdbsupport: make use of safe-ctype functions from libiberty
Make use of the safe-ctype replacements for the standard ctype
character checking functions in gdbsupport/common-utils.cc.  The
gdbsupport library is included into both gdb and gdbserver, and on the
gdbserver side there are two targets, gdbserver itself, and also
libinproctrace.so.

libiberty was already being included in the gdbserver link command,
but was missing from the libinproctrace.so link.  As a result, after
changing gdbsupport/common-utils.cc to depend on libiberty,
libinproctrace.so would no longer link until I modified its link line.

gdbserver/ChangeLog:

	* Makefile.in (IPA_LIB): Include libiberty library.

gdbsupport/ChangeLog:

	* gdbsupport/common-utils.cc: Change 'ctype.h' include to
	'safe-ctype.h'.
	(extract_string_maybe_quoted): Use safe-ctype function versions.
	(is_digit_in_base): Likewise.
	(digit_to_int): Likewise.
	(strtoulst): Likewise.
	(skip_spaces): Likewise.
	(skip_to_space): Likewise.
2020-12-11 22:04:28 +00:00
..
.dir-locals.el
.gitattributes
acinclude.m4 gdb: move ptrace.m4 to gdbsupport 2020-10-25 21:08:49 -04:00
aclocal.m4 gdb: use AC_PROG_CC_STDC instead of AM_PROG_CC_STDC 2020-10-31 08:30:57 -04:00
agent.cc Preinitialize the sockaddr_un variable to zero 2020-10-02 00:38:12 +02:00
agent.h
alt-stack.h
array-view.h
ax.def
block-signals.h
break-common.h
btrace-common.cc
btrace-common.h
buffer.cc
buffer.h
byte-vector.h
ChangeLog gdbsupport: make use of safe-ctype functions from libiberty 2020-12-11 22:04:28 +00:00
check-defines.el
cleanups.cc
cleanups.h
common-debug.cc gdb, gdbsupport: add debug_prefixed_printf, remove boilerplate functions 2020-10-31 09:15:13 -04:00
common-debug.h gdb: factor out debug_prefixed_printf_cond 2020-12-11 14:01:12 -05:00
common-defs.h
common-exceptions.cc
common-exceptions.h gdb, gdbserver, gdbsupport: fix leading space vs tabs issues 2020-11-02 10:28:45 -05:00
common-gdbthread.h
common-inferior.cc
common-inferior.h
common-regcache.cc
common-regcache.h
common-types.h
common-utils.cc gdbsupport: make use of safe-ctype functions from libiberty 2020-12-11 22:04:28 +00:00
common-utils.h
common.m4 gdbsupport: replace AC_TRY_COMPILE in common.m4 2020-10-31 08:31:00 -04:00
config.in Require kinfo_get_file and kinfo_get_vmmap for FreeBSD hosts. 2020-09-16 11:40:05 -07:00
configure gdbsupport: replace AC_TRY_COMPILE in common.m4 2020-10-31 08:31:00 -04:00
configure.ac gdb: use AC_PROG_CC_STDC instead of AM_PROG_CC_STDC 2020-10-31 08:30:57 -04:00
create-version.sh
def-vector.h
default-init-alloc.h
eintr.h gdb::handle_eintr, remove need to specify return type 2020-10-26 18:57:40 +00:00
enum-flags.h Rewrite enum_flags, add unit tests, fix problems 2020-09-14 22:21:07 +01:00
environ.cc
environ.h
errors.cc
errors.h
event-loop.cc gdb, gdbserver, gdbsupport: fix leading space vs tabs issues 2020-11-02 10:28:45 -05:00
event-loop.h gdb: factor out debug_prefixed_printf_cond 2020-12-11 14:01:12 -05:00
fileio.cc gdb, gdbserver, gdbsupport: fix leading space vs tabs issues 2020-11-02 10:28:45 -05:00
fileio.h
filestuff.cc gdb, gdbserver, gdbsupport: fix leading space vs tabs issues 2020-11-02 10:28:45 -05:00
filestuff.h
filtered-iterator.h
format.cc
format.h
forward-scope-exit.h
function-view.h
gdb_assert.h
gdb_binary_search.h
gdb_locale.h
gdb_optional.h
gdb_proc_service.h
gdb_ref_ptr.h
gdb_select.h
gdb_setjmp.h
gdb_signals.h
gdb_splay_tree.h
gdb_string_view.h gdb, gdbserver, gdbsupport: fix leading space vs tabs issues 2020-11-02 10:28:45 -05:00
gdb_string_view.tcc
gdb_sys_time.h
gdb_tilde_expand.cc
gdb_tilde_expand.h
gdb_unique_ptr.h
gdb_unlinker.h
gdb_vecs.cc
gdb_vecs.h
gdb_wait.cc
gdb_wait.h
gdb-dlfcn.cc gdb, gdbserver, gdbsupport: fix leading space vs tabs issues 2020-11-02 10:28:45 -05:00
gdb-dlfcn.h
gdb-safe-ctype.h
gdb-sigmask.h
hash_enum.h
host-defs.h
job-control.cc gdb, gdbserver, gdbsupport: fix leading space vs tabs issues 2020-11-02 10:28:45 -05:00
job-control.h
Makefile.am Move simple_search_memory to gdbsupport/search.cc 2020-10-07 12:07:55 -06:00
Makefile.in gdb: move ptrace.m4 to gdbsupport 2020-10-25 21:08:49 -04:00
netstuff.cc
netstuff.h
new-op.cc
next-iterator.h
observable.h
offset-type.h
parallel-for.h
pathstuff.cc gdbsupport: Use LOCALAPPDATA to determine cache dir 2020-12-08 09:50:12 -05:00
pathstuff.h Move include block to pathstuff.h 2020-11-10 13:12:59 -07:00
poison.h
preprocessor.h
print-utils.cc
print-utils.h
ptid.cc
ptid.h
ptrace.m4 gdbsupport: replace AC_TRY_COMPILE in ptrace.m4 2020-10-31 08:30:59 -04:00
README
refcounted-object.h
rsp-low.cc
rsp-low.h
run-time-clock.cc
run-time-clock.h
safe-iterator.h
safe-strerror.cc
scope-exit.h
scoped_fd.h
scoped_mmap.cc
scoped_mmap.h
scoped_restore.h
search.cc Move simple_search_memory to gdbsupport/search.cc 2020-10-07 12:07:55 -06:00
search.h Move simple_search_memory to gdbsupport/search.cc 2020-10-07 12:07:55 -06:00
selftest.cc
selftest.h
selftest.m4
signals-state-save-restore.cc
signals-state-save-restore.h
signals.cc gdb, gdbserver, gdbsupport: fix leading space vs tabs issues 2020-11-02 10:28:45 -05:00
symbol.h
tdesc.cc gdbsupport/tdesc: print enum fields using 'evalue' syntax 2020-12-01 11:22:24 +00:00
tdesc.h gdb: Have allocate_target_description return a unique_ptr 2020-10-08 10:14:14 +01:00
thread-pool.cc Ignore system_error in thread startup 2020-11-20 08:22:46 -07:00
thread-pool.h
traits.h Rewrite valid-expr.h's internals in terms of the detection idiom (C++17/N4502) 2020-09-14 22:19:31 +01:00
underlying.h
valid-expr.h Tweak gdbsupport/valid-expr.h for GCC 6, fix build 2020-09-29 23:48:04 +01:00
version.h
warning.m4 gdbsupport: replace AC_TRY_COMPILE in warning.m4 2020-10-31 08:30:59 -04:00
x86-xstate.h
xml-utils.cc
xml-utils.h

This is a helper library that is used by gdb and gdbserver.

To send patches, follow the gdb patch submission instructions in
../gdb/CONTRIBUTE.  For maintainers, see ../gdb/MAINTAINERS.