GDB (xrefs)
|
#include "defs.h"
#include "target.h"
#include "memory-map.h"
#include "inferior.h"
#include "gdbsupport/gdb_sys_time.h"
#include <algorithm>
Go to the source code of this file.
Functions | |
static bool | compare_block_starting_address (const memory_write_request &a_req, const memory_write_request &b_req) |
static void | claim_memory (const std::vector< memory_write_request > &blocks, std::vector< memory_write_request > *result, ULONGEST begin, ULONGEST end) |
static void | split_regular_and_flash_blocks (const std::vector< memory_write_request > &blocks, std::vector< memory_write_request > *regular_blocks, std::vector< memory_write_request > *flash_blocks) |
static void | block_boundaries (CORE_ADDR address, CORE_ADDR *begin, CORE_ADDR *end) |
static std::vector< memory_write_request > | blocks_to_erase (const std::vector< memory_write_request > &written) |
static std::vector< memory_write_request > | compute_garbled_blocks (const std::vector< memory_write_request > &erased_blocks, const std::vector< memory_write_request > &written_blocks) |
int | target_write_memory_blocks (const std::vector< memory_write_request > &requests, enum flash_preserve_mode preserve_flash_p, void(*progress_cb)(ULONGEST, void *)) |
|
static |
Definition at line 126 of file target-memory.c.
References mem_region::attrib, mem_attrib::blocksize, mem_region::lo, lookup_mem_region(), MEM_FLASH, and mem_attrib::mode.
Referenced by blocks_to_erase().
|
static |
Definition at line 149 of file target-memory.c.
References block_boundaries().
Referenced by target_write_memory_blocks().
|
static |
Definition at line 43 of file target-memory.c.
References memory_write_request::begin, memory_write_request::data, and memory_write_request::end.
Referenced by split_regular_and_flash_blocks().
|
static |
Definition at line 30 of file target-memory.c.
References memory_write_request::begin.
Referenced by target_write_memory_blocks().
|
static |
Definition at line 176 of file target-memory.c.
References memory_write_request::begin, and memory_write_request::end.
Referenced by target_write_memory_blocks().
|
static |
Definition at line 90 of file target-memory.c.
References mem_region::attrib, claim_memory(), mem_region::hi, mem_region::lo, lookup_mem_region(), MEM_FLASH, and mem_attrib::mode.
Referenced by target_write_memory_blocks().
int target_write_memory_blocks | ( | const std::vector< memory_write_request > & | requests, |
enum flash_preserve_mode | preserve_flash_p, | ||
void(*)(ULONGEST, void *) | progress_cb ) |
Definition at line 262 of file target-memory.c.
References blocks_to_erase(), compare_block_starting_address(), compute_garbled_blocks(), current_inferior(), err, flash_preserve, split_regular_and_flash_blocks(), target_flash_done(), target_flash_erase(), TARGET_OBJECT_FLASH, TARGET_OBJECT_MEMORY, target_read_memory(), target_write_with_progress(), and xmalloc().
Referenced by generic_load().