Executing a CLI command from Python

anix 2362292778@qq.com
Fri Mar 3 09:01:47 GMT 2023


dear:


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


                     niu wensheng
                      Mar, 3, 2023



---Original---
From: "Paul Koning via Gdb"<gdb@sourceware.org>
Date: Thu, Feb 16, 2023 05:50 AM
To: "gdb"<gdb@sourceware.org>;
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


More information about the Gdb mailing list