[Pdbg] [PATCH v2 3/3] mem: progress bars!

Joel Stanley joel at jms.id.au
Mon May 14 16:34:29 AEST 2018


This switches the mem command over to using the variant of adu_getmem
that shows progress bars:

 $ pdbg -p 0 getmem 0x8040278 100 > /tmp/log
 [==================================================] 100%

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 src/mem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mem.c b/src/mem.c
index 4f12dcf24504..a285b6066bc1 100644
--- a/src/mem.c
+++ b/src/mem.c
@@ -37,7 +37,7 @@ static int getmem(uint64_t addr, uint64_t size)
 		if (pdbg_target_probe(target) != PDBG_TARGET_ENABLED)
 			continue;
 
-		if (!adu_getmem(target, addr, buf, size)) {
+		if (!adu_getmem_progress(target, addr, buf, size)) {
 			if (write(STDOUT_FILENO, buf, size) < 0)
 				PR_ERROR("Unable to write stdout.\n");
 			else
-- 
2.17.0



More information about the Pdbg mailing list