Discussion:
[OpenOCD-devel] [PATCH]: 70d4c16 target/cortex_a.c remove unused paramer
gerrit
2017-04-09 16:46:36 UTC
Permalink
This is an automated email from Gerrit.

Chengyu Zheng (***@polimi.it) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4101

-- gerrit

commit 70d4c169e81f71588ba73a78a34f4439e6a35f45
Author: Chengyu Zheng <***@polimi.it>
Date: Sun Apr 9 18:39:47 2017 +0200

target/cortex_a.c remove unused paramer

The address parameter is not used in resume if current is set to 1.
So avoid passing address.

Change-Id: I4c1bb73b8b5fc63069abf0738bb51e8eaa402c21
Signed-off-by: Chengyu Zheng <***@polimi.it>

diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c
index 5d90e34..bb40862 100644
--- a/src/target/cortex_a.c
+++ b/src/target/cortex_a.c
@@ -1396,7 +1396,7 @@ static int cortex_a_step(struct target *target, int current, target_addr_t addre

target->debug_reason = DBG_REASON_SINGLESTEP;

- retval = cortex_a_resume(target, 1, address, 0, 0);
+ retval = cortex_a_resume(target, 1, 0, 0, 0);
if (retval != ERROR_OK)
return retval;


--

Loading...