open-power / pdbg

PowerPC FSI Debugger
Apache License 2.0
17 stars 39 forks source link

convert for_each_target to an interator #29

Open apopple opened 6 years ago

apopple commented 6 years ago

The pdbg application (src/main.c) defines two iterators - for_each_child_target and for_each_target - which are supposed to deal with target selection and probing.

Currently these take a callback function pointer. It would be nice if these could be converted into iterators similar in style to pdbg_for_each_target, etc.