diff options
author | Tom Tromey <tom@tromey.com> | 2018-02-24 09:55:30 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-02-27 12:00:34 -0700 |
commit | 55089490f79ce1ddb9610fd6abeeaf896825fb71 (patch) | |
tree | 9e745a2bfcfc782e678ab8df7876c9f401038116 /gdb/ChangeLog | |
parent | 5b616beff49ce5fe10c5efc2784b6b234bb8cb4f (diff) | |
download | gdb-55089490f79ce1ddb9610fd6abeeaf896825fb71.zip gdb-55089490f79ce1ddb9610fd6abeeaf896825fb71.tar.gz gdb-55089490f79ce1ddb9610fd6abeeaf896825fb71.tar.bz2 |
Change target_write_memory_blocks to use std::vector
This changes target_write_memory_blocks to use std::vector, rather
than VEC. This allows the removal of some cleanups.
This version incorporates the additions that Simon made.
Regression tested by the buildbot.
ChangeLog
2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
Tom Tromey <tom@tromey.com>
* target.h (memory_write_request_s): Remove typedef. Don't define
VEC.
(target_write_memory_blocks): Change argument to std::vector.
(struct memory_write_request): Add constructor.
* target-memory.c (compare_block_starting_address): Return bool.
Change argument types.
(claim_memory): Change arguments to use std::vector.
(split_regular_and_flash_blocks, blocks_to_erase)
(compute_garbled_blocks): Likewise.
(cleanup_request_data, cleanup_write_requests_vector): Remove.
(target_write_memory_blocks): Change argument to std::vector.
* symfile.c (struct load_section_data): Add constructor and
destructor. Use std::vector for "requests".
(struct load_progress_data): Add initializers.
(load_section_callback): Update. Use "new".
(clear_memory_write_data): Remove.
(generic_load): Update.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dc9ce42..33fbaac 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,24 @@ +2018-02-27 Simon Marchi <simon.marchi@polymtl.ca> + Tom Tromey <tom@tromey.com> + + * target.h (memory_write_request_s): Remove typedef. Don't define + VEC. + (target_write_memory_blocks): Change argument to std::vector. + (struct memory_write_request): Add constructor. + * target-memory.c (compare_block_starting_address): Return bool. + Change argument types. + (claim_memory): Change arguments to use std::vector. + (split_regular_and_flash_blocks, blocks_to_erase) + (compute_garbled_blocks): Likewise. + (cleanup_request_data, cleanup_write_requests_vector): Remove. + (target_write_memory_blocks): Change argument to std::vector. + * symfile.c (struct load_section_data): Add constructor and + destructor. Use std::vector for "requests". + (struct load_progress_data): Add initializers. + (load_section_callback): Update. Use "new". + (clear_memory_write_data): Remove. + (generic_load): Update. + 2018-02-27 Alan Hayward <alan.hayward@arm.com> * arch/aarch64.h: Use common/tdesc.h. |