[Pdbg] [PATCH 09/19] pdbg: Make return codes consistent for get/put registers

Rashmica Gupta rashmica.g at gmail.com
Wed Aug 29 11:50:37 AEST 2018


---
 src/reg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/reg.c b/src/reg.c
index fcf6f4c..1daa7b6 100644
--- a/src/reg.c
+++ b/src/reg.c
@@ -103,7 +103,7 @@ static int getprocreg(struct pdbg_target *target, uint32_t index, uint64_t *reg,
 
 	print_proc_reg(target, *reg, value, rc);
 
-	return !rc;
+	return rc;
 }
 
 static int getgpr(int gpr)
-- 
2.14.4



More information about the Pdbg mailing list