From patchwork Thu Nov 15 07:19:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 998132 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42wXnP2j0Jz9sCm for ; Thu, 15 Nov 2018 18:20:09 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="an6sTVnn"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 42wXnN6X4SzF3cH for ; Thu, 15 Nov 2018 18:20:08 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="an6sTVnn"; dkim-atps=neutral X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 42wXmq3HTGzF3b3 for ; Thu, 15 Nov 2018 18:19:39 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="an6sTVnn"; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 42wXmp6kLnz9sCQ; Thu, 15 Nov 2018 18:19:38 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1542266379; bh=j/LnJ7Vl7/PrcQySeuamVZHzIdQHpcNHoTYJG/+dd4k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=an6sTVnnr2biQhiL+8ldE1w+3YXkjIGZmlAycOhj6mZA+beD8VvOYLeCK1TfJeuai llm9pLY15WbqfzvALi4FTAgbP1eCRzamWJX5aFVPsYWJw7eqeoQjnLO9gyZCPTDSXl juo50rF+OBFRUcMW5/MaQAhdEl4jADcCynmcOunfRLa1YihBXQ/xs8A3Ku4bk7Pe0/ vasAoTt62wI1Hqm081pidsETgyWFtp0FMWgesec2l8VwAG7ondW38LjIuRocDSNERn g5hBmf1EkMypA1HQZNSaXu434OY1KGziXa9Fu62wmcjsQ6/TsllOHjkefvmhxbmm6o yE4zh5hNyzubw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 15 Nov 2018 18:19:19 +1100 Message-Id: <20181115071929.206974-7-amitay@ozlabs.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181115071929.206974-1-amitay@ozlabs.org> References: <20181115071929.206974-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH v3 06/16] main: Add explicit probing of selected targets X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs Reviewed-by: Alistair Popple --- 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++) {