GDB (xrefs)
Loading...
Searching...
No Matches
Functions
target-memory.c File Reference
#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_requestblocks_to_erase (const std::vector< memory_write_request > &written)
 
static std::vector< memory_write_requestcompute_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 *))
 

Function Documentation

◆ block_boundaries()

static void block_boundaries ( CORE_ADDR address,
CORE_ADDR * begin,
CORE_ADDR * end )
static

◆ blocks_to_erase()

static std::vector< memory_write_request > blocks_to_erase ( const std::vector< memory_write_request > & written)
static

Definition at line 149 of file target-memory.c.

References block_boundaries().

Referenced by target_write_memory_blocks().

◆ claim_memory()

static void claim_memory ( const std::vector< memory_write_request > & blocks,
std::vector< memory_write_request > * result,
ULONGEST begin,
ULONGEST end )
static

◆ compare_block_starting_address()

static bool compare_block_starting_address ( const memory_write_request & a_req,
const memory_write_request & b_req )
static

Definition at line 30 of file target-memory.c.

References memory_write_request::begin.

Referenced by target_write_memory_blocks().

◆ compute_garbled_blocks()

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 )
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().

◆ split_regular_and_flash_blocks()

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

◆ 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 )