[Pdbg] [PATCH v2 06/15] main: Add explicit probing of selected targets
Amitay Isaacs
amitay at ozlabs.org
Fri Nov 9 18:10:02 AEDT 2018
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
src/main.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/main.c b/src/main.c
index 9252eb3..3e3835c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -775,6 +775,7 @@ int main(int argc, char *argv[])
int i, rc = 0;
void **args, **flags;
optcmd_cmd_t *cmd;
+ struct pdbg_target *target;
backend = default_backend();
@@ -793,6 +794,11 @@ int main(int argc, char *argv[])
if (!target_selection())
return 1;
+ /* Probe all selected targets */
+ for_each_path_target(target) {
+ pdbg_target_probe(target);
+ }
+
atexit(atexit_release);
for (i = 0; i < ARRAY_SIZE(cmds); i++) {
--
2.19.1
More information about the Pdbg
mailing list