summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@ozlabs.org>2018-11-16 12:14:21 +1100
committerAlistair Popple <alistair@popple.id.au>2018-11-16 15:31:40 +1100
commite669d80794b7aed0cc305b23b1b14835d712ccc3 (patch)
tree2d9b411554b1a6458aacd34694ee88742fc81cc3
parentea0129e5c5528e42545f1248cfc15e341ca769fe (diff)
downloadpdbg-e669d80794b7aed0cc305b23b1b14835d712ccc3.tar.gz
pdbg-e669d80794b7aed0cc305b23b1b14835d712ccc3.zip
main: Add explicit probing of selected targets
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> Reviewed-by: Alistair Popple <alistair@popple.id.au>
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
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++) {
OpenPOWER on IntegriCloud