From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id YhbvE/NT7WOPaTQAWB0awg (envelope-from ) for ; Wed, 15 Feb 2023 16:51:47 -0500 Received: by simark.ca (Postfix, from userid 112) id 403091E221; Wed, 15 Feb 2023 16:51:47 -0500 (EST) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=EAAwIlqG; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id E290A1E110 for ; Wed, 15 Feb 2023 16:51:46 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 88D1F384F034 for ; Wed, 15 Feb 2023 21:51:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 88D1F384F034 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676497906; bh=dwVo5HWOkNPppL1Yyg4PK4fZm2kl0EA01LWHwvvoczI=; h=Subject:Date:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=EAAwIlqGGoBTWNQgRz9Ht1ZtW9qaeXrsEk1xV7Sq8DkG0uynJjcC8KVtbghS4yyvX hRf8QG9w/oMdpPUxW75RGLsjPws0Wf5Poga5DzyH4BxxoeTMAFHgG2umFJqOO7Bze9 F7WR4CBBOy6A7U6lmv4yg7xs9EK+Uxum54ykzs1M= Received: from resqmta-h1p-028595.sys.comcast.net (resqmta-h1p-028595.sys.comcast.net [IPv6:2001:558:fd02:2446::3]) by sourceware.org (Postfix) with ESMTPS id 8D69C3858288 for ; Wed, 15 Feb 2023 21:50:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8D69C3858288 Received: from resomta-h1p-027912.sys.comcast.net ([96.102.179.201]) by resqmta-h1p-028595.sys.comcast.net with ESMTP id SJ7jpEScgTouQSPfXpqrXw; Wed, 15 Feb 2023 21:50:27 +0000 Received: from smtpclient.apple ([73.60.223.101]) by resomta-h1p-027912.sys.comcast.net with ESMTPSA id SPfUpDWcSe8K2SPfVpvUOO; Wed, 15 Feb 2023 21:50:26 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedvhedrudeihedgudegiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucevohhmtggrshhtqdftvghsihdpqfgfvfdppffquffrtefokffrnecuuegrihhlohhuthemuceftddunecunecujfgurhephfgtgfgguffkfffvofesthhqmhdthhdtvdenucfhrhhomheprfgruhhlucfmohhnihhnghcuoehprghulhhkohhnihhnghestghomhgtrghsthdrnhgvtheqnecuggftrfgrthhtvghrnhepudefuefgffegffevffffteevvdejiefggfdtleekudeuledtveekvdeggeekkeevnecukfhppeejfedriedtrddvvdefrddutddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghlohepshhmthhptghlihgvnhhtrdgrphhplhgvpdhinhgvthepjeefrdeitddrvddvfedruddtuddpmhgrihhlfhhrohhmpehprghulhhkohhnihhnghestghomhgtrghsthdrnhgvthdpnhgspghrtghpthhtohepuddprhgtphhtthhopehguggssehsohhurhgtvgifrghrvgdrohhrgh X-Xfinity-VMeta: sc=0.00;st=legit Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Subject: Executing a CLI command from Python Message-Id: Date: Wed, 15 Feb 2023 16:50:24 -0500 To: gdb@sourceware.org X-Mailer: Apple Mail (2.3696.120.41.1.2) X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Paul Koning via Gdb Reply-To: Paul Koning Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" I looked through the Python GDB API documentation but didn't see this: = is there a way for Python code to ask GDB to execute a command? For example, I want to look up information about a kernel module = (addresses etc.) then issue an "add-symbol-file" command using = parameters constructed from what was looked up. paul