From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2088.outbound.protection.outlook.com [40.107.94.88]) by sourceware.org (Postfix) with ESMTPS id 6043B3858D28 for ; Wed, 3 May 2023 11:07:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6043B3858D28 Authentication-Results: sourceware.org; dmarc=fail (p=quarantine dis=none) header.from=amd.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=apKqmMqo5JxWCpH2vS3YXBGq0mw+3imI0fCAAedxzRGMpeh9AaHluf7m06avLroUFO/TUkbnrMLmpdANIoF59I4QpPij0/Pf96lNYR38QUcQEL58PQJYeBIGbp9FAuUPTpunca6xoAxphYpP+9lOI4/rdZ2qy5UyJCEsTTUvP4zVjn8Don4rdchmlqbfDEB1X6APTDuarVDIIWS0xeUEaq/Cvslj3C8Moa8qcVwgBzFk4m11ETTacyLCUsKOmt/1o56F6GPNbWQhf4zTybMmEaMCadmMUxihxiA6HfaaZPy0SJatzhz+iauQMLHuQEgwwTk+gGIi9aSLwR9JCqFZ8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DNT6W3vZBNdCTLmXpQkyfzt7Jfipg9R3BsweCXpeMw4=; b=EjHEETnjcoNEJVO38xu2fmWlhyO9pb9ZLUAgrhjaoDHqnhB2Wi+xsXqxFWDNPDsUPbm+hdZtRED1WshI6CqUgCtR8Rg0XvysUa1BTbAJbg7VSQDfE24VhPQpYAE1TugKT2gSOdoGBMq6LGMpMqbiYs5UM1HkRcnTiW93TbfZziZIIVTSgjcuqkab53eRzSMkf6unKcGtsx5znpLBLFNQ3vgYB5QbWiIjJfYpXMPejWvF+82Y/dqFLPwgZCEr2zhoepiL2UlAEOqV8PR7Ab0TWModKoWjXN/ImQ+Mpwr5MOyDaLPAIK4Te2RRlal7qrWxIzBRLAcL6f2hTLcKcco4VQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=sourceware.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DNT6W3vZBNdCTLmXpQkyfzt7Jfipg9R3BsweCXpeMw4=; b=tQJ/Xq7dinBFyr5uJ/6YenlwE5FSXdvr6b5TxpyW0K3jBTYDiaw6OPwdpKi4JXqK/N55lofMvKtJjlUnTOqiD6ccuGJlrzagMJC/Z3KyaQFGkiqJH9OCp7SuppTgRRlHYKcYMS2N4OgcveK85Ujqy3UszBjug+2v7Al9FvM8M5E= Received: from DM6PR05CA0065.namprd05.prod.outlook.com (2603:10b6:5:335::34) by DS0PR12MB8813.namprd12.prod.outlook.com (2603:10b6:8:14e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.31; Wed, 3 May 2023 11:07:34 +0000 Received: from DM6NAM11FT101.eop-nam11.prod.protection.outlook.com (2603:10b6:5:335:cafe::bb) by DM6PR05CA0065.outlook.office365.com (2603:10b6:5:335::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.22 via Frontend Transport; Wed, 3 May 2023 11:07:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT101.mail.protection.outlook.com (10.13.172.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6363.22 via Frontend Transport; Wed, 3 May 2023 11:07:34 +0000 Received: from khazad-dum.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Wed, 3 May 2023 06:07:33 -0500 From: Lancelot SIX To: CC: , Lancelot SIX Subject: [PATCH] gdb/show_args_command: print to the ui_file argument Date: Wed, 3 May 2023 12:07:12 +0100 Message-ID: <20230503110712.1540513-1-lancelot.six@amd.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT101:EE_|DS0PR12MB8813:EE_ X-MS-Office365-Filtering-Correlation-Id: 3a88d32f-cca2-4fb5-0cf1-08db4bc69918 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XvsL3MXrF1Sz5EYn/21fOd6rahdab5T/I6obUwbMK1ziSlzZLGW0No9BzpYE/bJCvs6PxN5KIwdzVirBc4AN0qeENFYH4MYjw+uSVdk8d7UVtFtgv7sfYpnAIh0+17pwGC0xpk4KOh8kExn215exlR+jQoTkMBzxitQ2hT+Q5HoELJybofyD8zrNP6mYVny/KnIv9jf7UJe9Jr+z9jVlfRHXgsNeU+WYGDdNPQIPHIOk+//H7amHUqfbZhy2Bqlw697jzG95cemQNN//QvAUG6rbFct5oYLhkeT/xCdJ1MWvb9kCWkIObyOXrlWX4Tle+VvWtEw33skzKu3aRCImIqNI25O2uDjgny6BbF55jgVvG+whWtPCLO4qYEiUvFq/WnIPqNuKNnlIlJWI8RavvEYa8c6WUi/yLfTpV8P7BNfuXEjXp8JjA+c4agjOYL43Yy6y6Wdavxxtn+EhfUIcGHSYrhUelWxzVkoZAEbl3hI1aiJBtfPhAsXF1bKtZ4fd53sslj0w6D8NfnrBUMOzeBFQr/IQMEAHbPFDm1XzoHoQx4S4+XK4uIdta5OJ4War/H3255o1Ilt1Go+94EoOGKIehmNhERiERwIJS+eU3Xs5chBGZWLtbgHY03sPeCHDINmUoLnjA5gIuS0rIGageZCKiKM0cbedkKG7WVVXpeLtzDgoD6Ec/PTfIHYHMeGryLY2iV97LYKMOLXabLa514ndSsFWLHMTlAk8Uy+Qtqw= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(346002)(39860400002)(376002)(136003)(396003)(451199021)(36840700001)(40470700004)(46966006)(82740400003)(82310400005)(1076003)(186003)(356005)(16526019)(26005)(81166007)(47076005)(336012)(83380400001)(2616005)(36860700001)(426003)(5660300002)(8676002)(8936002)(2906002)(4744005)(36756003)(6666004)(40460700003)(54906003)(86362001)(40480700001)(478600001)(7696005)(316002)(41300700001)(4326008)(70586007)(6916009)(70206006)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2023 11:07:34.6373 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3a88d32f-cca2-4fb5-0cf1-08db4bc69918 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT101.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB8813 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: The show_args_command uses gdb_printf without specifying the ui_file. This means that it prints to gdb_stdout instead of the stream given as an argument to the function. This commit fixes this. --- gdb/infcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/infcmd.c b/gdb/infcmd.c index b8134665f3f..e42927858ba 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -144,7 +144,7 @@ show_args_command (struct ui_file *file, int from_tty, { /* Ignore the passed in value, pull the argument directly from the inferior. However, these should always be the same. */ - gdb_printf (_("\ + gdb_printf (file, _("\ Argument list to give program being debugged when it is started is \"%s\".\n"), current_inferior ()->args ().c_str ()); } base-commit: a07223191bdda5e85a500e3b8206ee8fe8bcdfed -- 2.34.1