diff options
author | Amitay Isaacs <amitay@ozlabs.org> | 2018-11-16 12:14:21 +1100 |
---|---|---|
committer | Alistair Popple <alistair@popple.id.au> | 2018-11-16 15:31:40 +1100 |
commit | e669d80794b7aed0cc305b23b1b14835d712ccc3 (patch) | |
tree | 2d9b411554b1a6458aacd34694ee88742fc81cc3 | |
parent | ea0129e5c5528e42545f1248cfc15e341ca769fe (diff) | |
download | pdbg-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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++) { |