This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA][python] Add program space support


On Wed, Apr 7, 2010 at 10:32 AM, Doug Evans <dje@google.com> wrote:
> Hi.
>
> This patch adds basic support for program spaces to python.
>
> It also adds support for recording pretty-printers with a program space.
> This is useful, for example, when a class is entirely inlined and there
> isn't necessarily a .so to attach the pretty-printer to.
> Adding the pretty-printer to the gdb module isn't necessarily correct,
> different programs may have different implementations for the same class.
>
> Ok to check in?

Blech, forgot a NEWS entry.

2010-04-07  Doug Evans  <dje@google.com>

        * NEWS: Add entry for python program space support.

Index: NEWS
===================================================================
RCS file: /cvs/src/src/gdb/NEWS,v
retrieving revision 1.367
diff -u -p -r1.367 NEWS
--- NEWS        1 Apr 2010 14:11:22 -0000       1.367
+++ NEWS        7 Apr 2010 17:38:49 -0000
@@ -25,10 +25,13 @@

 * Python scripting

-** The GDB Python API now has access to symbols, symbol tables, and
-   frame's code blocks.
+** The GDB Python API now has access to program spaces, symbols,
+   symbol tables, and frame's code blocks.

-** New methods gdb.target_charset and gdb.target_wide_charset.
+** New methods gdb.target_charset, gdb.target_wide_charset,
+   gdb.progspaces, and gdb.current_progspace.
+
+** Pretty-printers are now also looked up in the current program space.

 * Tracepoint actions were unified with breakpoint commands. In particular,
 there are no longer differences in "info break" output for breakpoints and


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]