/* Parts of target interface that deal with accessing memory and memory-like
objects.
- Copyright (C) 2006-2018 Free Software Foundation, Inc.
+ Copyright (C) 2006-2019 Free Software Foundation, Inc.
This file is part of GDB.
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "vec.h"
#include "target.h"
#include "memory-map.h"
-#include "gdb_sys_time.h"
+#include "gdbsupport/gdb_sys_time.h"
#include <algorithm>
static bool
unsigned j;
unsigned je = written_blocks.size ();
- struct memory_write_request *erased_p;
/* Look at each erased memory_write_request in turn, and
see what part of it is subsequently written to.
void (*progress_cb) (ULONGEST, void *))
{
std::vector<memory_write_request> blocks = requests;
- struct memory_write_request *r;
std::vector<memory_write_request> regular;
std::vector<memory_write_request> flash;
std::vector<memory_write_request> erased, garbled;
{
LONGEST len;
- len = target_write_with_progress (current_target.beneath,
+ len = target_write_with_progress (current_top_target (),
TARGET_OBJECT_MEMORY, NULL,
iter.data, iter.begin,
iter.end - iter.begin,
{
LONGEST len;
- len = target_write_with_progress (¤t_target,
+ len = target_write_with_progress (current_top_target (),
TARGET_OBJECT_FLASH, NULL,
iter.data, iter.begin,
iter.end - iter.begin,