diff options
author | John Baldwin <jhb@FreeBSD.org> | 2017-08-09 15:24:46 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2017-08-09 15:24:46 -0700 |
commit | e4a26669b914a1a1d519325b3bddf4bfe5078ea8 (patch) | |
tree | 4b78a311a6cea41ddb59ea8820dd3d76b310674e /gdb/ChangeLog | |
parent | 142311d325b962730f7d0247cc456f06e5c7b62b (diff) | |
download | gdb-e4a26669b914a1a1d519325b3bddf4bfe5078ea8.zip gdb-e4a26669b914a1a1d519325b3bddf4bfe5078ea8.tar.gz gdb-e4a26669b914a1a1d519325b3bddf4bfe5078ea8.tar.bz2 |
Replace remaining cleanups in fbsd-nat.c.
- Use a custom deleter with std::unique_ptr to free() memory returned
by kinfo_getvmmap().
- Use std::string with string_printf() to generate the pathname of the
procfs 'map' file.
- Use gdb::byte_vector to manage the dynamic buffer for
TARGET_OBJECT_AUXV and the dynamically allocated array of LWP IDs.
gdb/ChangeLog:
* fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
(fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
[!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
for `mapfilename'.
(fbsd_xfer_partial): Use gdb::byte_vector.
(fbsd_add_threads): Likewise.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aa2a48e..0e28c0d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,14 @@ 2017-08-09 John Baldwin <jhb@FreeBSD.org> + * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New. + (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr. + [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string + for `mapfilename'. + (fbsd_xfer_partial): Use gdb::byte_vector. + (fbsd_add_threads): Likewise. + +2017-08-09 John Baldwin <jhb@FreeBSD.org> + * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and "filestuff.h". (fbsd_find_memory_regions): Fix `mapfile' initialization. |