public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Paul Smith <psmith@gnu.org>
To: gdb@sourceware.org
Subject: Python interface: is there any way to...
Date: Tue, 02 Feb 2021 11:46:14 -0500	[thread overview]
Message-ID: <5cd0968ec197296af56a32a368a4dd01a299b1e1.camel@gnu.org> (raw)

I'm wondering if there are ways to detect, from within the Python
extensions for GDB, these things:

Can I determine whether I'm working on a core file, versus working with
a live process?

Can I determine whether my Python methods are being invoked from within
a variable "pretty printer context", versus some other context such as
the result of a function call from the prompt etc.?

Thanks!


                 reply	other threads:[~2021-02-02 16:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=5cd0968ec197296af56a32a368a4dd01a299b1e1.camel@gnu.org \
    --to=psmith@gnu.org \
    --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).