Re: Executing a CLI command from Python

anix via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
dear:


now, i see that problem for half-precision floating-point value.
for intel&nbsp; IA-32, there are not its instructin.


&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;niu wensheng
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Mar, 3, 2023



---Original---
From: "Paul Koning via Gdb"<[email protected]&gt;
Date: Thu, Feb 16, 2023 05:50 AM
To: "gdb"<[email protected]&gt;;
Subject: Executing a CLI command from Python


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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.