binutils-gdb/gdb/unittests
Joel Brobecker b34c74ab9a gmp-utils: New API to simply use of GMP's integer/rational/float objects
This API was motivated by a number of reasons:
  - GMP's API does not handle "long long" and "unsigned long long",
    so using LONGEST and ULONGEST is not straightforward;
  - Automate the need to initialize GMP objects before use, and
    clear them when no longer used.

However, this API grew also to help with similar matter such
as formatting to a string, and also reading/writing fixed-point
values from byte buffers.

Dedicated unit testing is also added.

gdb/ChangeLog:

        * gmp-utils.h,  gmp-utils.h: New file.
        * unittests/gmp-utils-selftests.c: New file.
        * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
        unittests/gmp-utils-selftests.c.
        (COMMON_SFILES) Add gmp-utils.c.
        (HFILES_NO_SRCDIR): Add gmp-utils.h.
2020-11-15 03:09:44 -05:00
..
basic_string_view
optional
array-view-selftests.c
child-path-selftests.c
cli-utils-selftests.c
command-def-selftests.c
common-utils-selftests.c
copy_bitwise-selftests.c gdb, gdbserver, gdbsupport: fix leading space vs tabs issues 2020-11-02 10:28:45 -05:00
enum-flags-selftests.c Tweak gdbsupport/valid-expr.h for GCC 6, fix build 2020-09-29 23:48:04 +01:00
environ-selftests.c
filtered_iterator-selftests.c
format_pieces-selftests.c
function-view-selftests.c
gmp-utils-selftests.c gmp-utils: New API to simply use of GMP's integer/rational/float objects 2020-11-15 03:09:44 -05:00
lookup_name_info-selftests.c
main-thread-selftests.c
memory-map-selftests.c gdb, gdbserver, gdbsupport: fix leading space vs tabs issues 2020-11-02 10:28:45 -05:00
memrange-selftests.c
mkdir-recursive-selftests.c
observable-selftests.c
offset-type-selftests.c
optional-selftests.c
parse-connection-spec-selftests.c
ptid-selftests.c
rsp-low-selftests.c
scoped_fd-selftests.c
scoped_mmap-selftests.c
scoped_restore-selftests.c
search-memory-selftests.c Add simple_search_memory unit tests 2020-10-07 12:07:56 -06:00
string_view-selftests.c
style-selftests.c
tracepoint-selftests.c
tui-selftests.c Use a curses pad for source and disassembly windows 2020-09-27 20:30:32 -06:00
unpack-selftests.c
utils-selftests.c
vec-utils-selftests.c
xml-utils-selftests.c