target: make handle_md_output() global
Remove a copy of handle_md_output() from src/target/dsp563xx.c Change-Id: Iadd003fd1dcdbc7990d46a58ee2e7c30826ac6af Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/5175 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
@@ -3119,7 +3119,7 @@ COMMAND_HANDLER(handle_step_command)
|
||||
return target->type->step(target, current_pc, addr, 1);
|
||||
}
|
||||
|
||||
static void handle_md_output(struct command_invocation *cmd,
|
||||
void target_handle_md_output(struct command_invocation *cmd,
|
||||
struct target *target, target_addr_t address, unsigned size,
|
||||
unsigned count, const uint8_t *buffer)
|
||||
{
|
||||
@@ -3234,7 +3234,7 @@ COMMAND_HANDLER(handle_md_command)
|
||||
struct target *target = get_current_target(CMD_CTX);
|
||||
int retval = fn(target, address, size, count, buffer);
|
||||
if (ERROR_OK == retval)
|
||||
handle_md_output(CMD, target, address, size, count, buffer);
|
||||
target_handle_md_output(CMD, target, address, size, count, buffer);
|
||||
|
||||
free(buffer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user