From ac22a4005d40e6e7d23cc1a7e73c4da8b8b6a898 Mon Sep 17 00:00:00 2001 From: Alistair Popple Date: Mon, 31 Jul 2017 15:08:00 +1000 Subject: libpdbg: Add sreset command Signed-off-by: Alistair Popple --- libpdbg/chip.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libpdbg/chip.c') diff --git a/libpdbg/chip.c b/libpdbg/chip.c index 70d349d..539438a 100644 --- a/libpdbg/chip.c +++ b/libpdbg/chip.c @@ -115,6 +115,15 @@ int ram_stop_thread(struct target *thread_target) return thread->stop(thread); } +int ram_sreset_thread(struct target *thread_target) +{ + struct thread *thread; + + assert(!strcmp(thread_target->class, "thread")); + thread = target_to_thread(thread_target); + return thread->sreset(thread); +} + /* * RAMs the opcodes in *opcodes and store the results of each opcode * into *results. *results must point to an array the same size as -- cgit v1.2.1