[Pdbg] [PATCH 0/9] Convert more commands to path based targeting

Amitay Isaacs amitay at ozlabs.org
Tue Nov 20 15:19:44 AEDT 2018


Hi,

Here are the patches to conver the remaining pdbg commands (except
getmem/putmem) to path based targeting.  There are two kinds of commands.

1. Following commands operate on a single class

   start, stop, step, sreset, threadstatus  - thread
   getring  - chiplet

2. Followings commands require multiple classes

   regs  - thread & adu
   htm core  - core & adu
   gdbserver - thread & adu

For these commands the target specification is done for the primary target
classes.  Since most of these commands require adu for memory access,
we find the first adu target that's available and use that adu target.


Amitay Isaacs (9):
  main: Mark print_target static
  main: Convert getring to path based targeting
  main: Convert thread commands start/stop/step/sreset
  main: Convert threadstatus command to path based targeting
  main: Convert regs command to path based targeting
  main: Drop unused iterators with callbacks
  main: Convert htm commands to path based targeting
  main: Convert gdbserver command to path based targeting
  main: Drop unused target_select/target_selected functions

 src/htm.c       |  57 ++++-----
 src/main.c      |  75 +-----------
 src/main.h      |  12 --
 src/pdbgproxy.c |  72 ++++++------
 src/ring.c      |  56 ++++++---
 src/thread.c    | 303 ++++++++++++++++++++++++++----------------------
 6 files changed, 256 insertions(+), 319 deletions(-)

-- 
2.19.1



More information about the Pdbg mailing list