Python interface: is there any way to...

Paul Smith via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Organization GNU's Not UNIX!
Message-ID <[email protected]>
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!
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.