From: Paul Koning <paulkoning@comcast.net>
To: gdb@sourceware.org
Subject: Executing a CLI command from Python
Date: Wed, 15 Feb 2023 16:50:24 -0500 [thread overview]
Message-ID: <EC5C6352-E2A7-4C8C-8F6C-4998C3001411@comcast.net> (raw)
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
next reply other threads:[~2023-02-15 21:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-15 21:50 Paul Koning [this message]
2023-02-15 22:25 ` Jan Vrany
2023-02-16 0:29 ` Paul Koning
2023-03-03 9:01 ` anix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=EC5C6352-E2A7-4C8C-8F6C-4998C3001411@comcast.net \
--to=paulkoning@comcast.net \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).