diff options
author | Joel Brobecker <brobecker@adacore.com> | 2020-11-15 03:09:44 -0500 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2020-11-15 03:09:44 -0500 |
commit | b34c74ab9a6b8dc0ace3d0cc67bf62de8a74ea00 (patch) | |
tree | cebf5c4bc8bee8820f497d92258416be8e997564 /gdb/unittests/child-path-selftests.c | |
parent | 1b4ac058f7daeb9bac9ab0e63a7e73535208dfef (diff) | |
download | gdb-b34c74ab9a6b8dc0ace3d0cc67bf62de8a74ea00.zip gdb-b34c74ab9a6b8dc0ace3d0cc67bf62de8a74ea00.tar.gz gdb-b34c74ab9a6b8dc0ace3d0cc67bf62de8a74ea00.tar.bz2 |
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.
Diffstat (limited to 'gdb/unittests/child-path-selftests.c')
0 files changed, 0 insertions, 0 deletions