[Pdbg] [PATCH v3 0/3] Overhaul target selection

Amitay Isaacs amitay at ozlabs.org
Mon Jun 4 19:07:18 AEST 2018


Re-implement parse_list() to return flags rather than indices.
This avoids potential overflows and the need to do any sorting and
unique ids identification.

Changes from v2 to v3:
  - In parse_list:
   - better error reporting for invalid input
   - handle values in hex and other bases (as supported by strtoul)
  - Fix the usage message (max values are *_MAX-1)

Amitay Isaacs (3):
  main: Overhaul target selection
  main: Print specific errors for invalid arguments
  main: Print specific errors for invalid commands

 src/main.c | 198 +++++++++++++++++++++++++++++++++++++++++------------
 1 file changed, 154 insertions(+), 44 deletions(-)

-- 
2.17.1



More information about the Pdbg mailing list