[Pdbg] [PATCH v2 0/3] pdbg: make getmem show progress

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


This adds progress bar output to the 'pdbg getmem' command.

A difference from v1 is that it now adds a new version of adu_getmem
called adu_getmem_progress, maintaining the existing behaviour for
current users.

I attempted to make this optional, but given we need to make three
different types of callbacks (init, progress tick, and end) there was a
fair amount of implementation specific detail that crept into libpdbg,
so I went with including it in libpdbg.

Joel Stanley (3):
  libpdbg: Add progress bars utility
  libpdbg: adu: Add progress bar variant adu_getmem
  mem: progress bars!

 Makefile.am        |  1 +
 libpdbg/adu.c      | 26 +++++++++++-
 libpdbg/libpdbg.h  |  1 +
 libpdbg/progress.c | 99 ++++++++++++++++++++++++++++++++++++++++++++++
 libpdbg/progress.h | 24 +++++++++++
 src/mem.c          |  2 +-
 6 files changed, 151 insertions(+), 2 deletions(-)
 create mode 100644 libpdbg/progress.c
 create mode 100644 libpdbg/progress.h

-- 
2.17.0



More information about the Pdbg mailing list