public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/12368] New: need more is_valid methods
@ 2011-01-05 20:28 tromey at redhat dot com
  2011-03-15  8:52 ` [Bug python/12368] " pmuldoon at redhat dot com
  2011-03-17 12:22 ` pmuldoon at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2011-01-05 20:28 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12368

           Summary: need more is_valid methods
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
        AssignedTo: unassigned@sourceware.org
        ReportedBy: tromey@redhat.com


Many objects exposed to python have independent lifetimes in gdb.
I think all such objects should have "is_valid" methods, so user
code can determine whether the object is valid or not.

At least blocks, block iterators, breakpoints, inferiors,
threads, objfiles, symbols, and symtabs need this treatment.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug python/12368] need more is_valid methods
  2011-01-05 20:28 [Bug python/12368] New: need more is_valid methods tromey at redhat dot com
@ 2011-03-15  8:52 ` pmuldoon at redhat dot com
  2011-03-17 12:22 ` pmuldoon at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: pmuldoon at redhat dot com @ 2011-03-15  8:52 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12368

Phil Muldoon <pmuldoon at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |pmuldoon at redhat dot com
         AssignedTo|unassigned at sourceware    |pmuldoon at redhat dot com
                   |dot org                     |

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug python/12368] need more is_valid methods
  2011-01-05 20:28 [Bug python/12368] New: need more is_valid methods tromey at redhat dot com
  2011-03-15  8:52 ` [Bug python/12368] " pmuldoon at redhat dot com
@ 2011-03-17 12:22 ` pmuldoon at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: pmuldoon at redhat dot com @ 2011-03-17 12:22 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12368

Phil Muldoon <pmuldoon at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |7.3

--- Comment #1 from Phil Muldoon <pmuldoon at redhat dot com> 2011-03-17 12:22:47 UTC ---
Fixed for 7.3

CVSROOT:    /cvs/src
Module name:    src
Changes by:    pmuldoon@sourceware.org    2011-03-17 09:36:18

Modified files:
    gdb            : ChangeLog NEWS 
    gdb/doc        : ChangeLog gdb.texinfo 
    gdb/python     : py-block.c py-inferior.c py-infthread.c 
                     py-objfile.c py-symbol.c py-symtab.c 
    gdb/testsuite  : ChangeLog 
    gdb/testsuite/gdb.python: Makefile.in py-block.exp 
                              py-inferior.exp py-infthread.exp 
                              py-symbol.exp py-symtab.exp 
Added files:
    gdb/testsuite/gdb.python: py-objfile.c py-objfile.exp 

Log message:
    2011-03-17  Phil Muldoon  <pmuldoon@redhat.com>

    * python/py-symtab.c: Populate symtab_object_methods,
    sal_object_methods.
    (stpy_is_valid): New function.
    (salpy_is_valid): Ditto.
    * python/py-symbol.c: Declare symbol_object_methods.
    Populate.
    (sympy_is_valid): New function.
    * python/py-objfile.c: Declare objfile_object_methods.
    Populate.
    (objfpy_is_valid): New function.
    * python/py-inferior.c: Populate inferior_object_methods.
    (infpy_is_valid): New function.
    * python/py-infthread.c: Populate thread_object_methods.
    (thpy_is_valid): New function.
    * python/py-block.c: Declare block_object_methods.
    Populate.  Declare
    block_iterator_object_methods.  Populate.
    (blpy_is_valid): New function.
    (blpy_iter_is_valid): Ditto.

    2010-03-17  Phil Muldoon  <pmuldoon@redhat.com>

    * gdb.python/Makefile.in: Add py-objfile.
    * gdb.python/py-objfile.exp: New file.
    * gdb.python/py-objfile.c: New file.
    * gdb.python/py-block.exp: Add is_valid tests.
    * gdb.python/py-inferior.exp: Ditto.
    * gdb.python/py-infthread.exp: Ditto.
    * gdb.python/py-symbol.exp: Ditto.
    * gdb.python/py-symtab.exp: Ditto.

    2011-03-17  Phil Muldoon  <pmuldoon@redhat.com>

    * gdb.texinfo (Blocks In Python): Add is_valid method
    description.
    (Inferiors In Python): Likewise.
    (Threads In Python): Likewise.
    (Symbols In Python): Likewise.
    (Objfiles In Python): Likewise.
    (Symbol Tables In Python): Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.12824&r2=1.12825
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/NEWS.diff?cvsroot=src&r1=1.430&r2=1.431
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/ChangeLog.diff?cvsroot=src&r1=1.1164&r2=1.1165
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/gdb.texinfo.diff?cvsroot=src&r1=1.812&r2=1.813
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/py-block.c.diff?cvsroot=src&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/py-inferior.c.diff?cvsroot=src&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/py-infthread.c.diff?cvsroot=src&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/py-objfile.c.diff?cvsroot=src&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/py-symbol.c.diff?cvsroot=src&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/py-symtab.c.diff?cvsroot=src&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2637&r2=1.2638
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-objfile.c.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-objfile.exp.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/Makefile.in.diff?cvsroot=src&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-block.exp.diff?cvsroot=src&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-inferior.exp.diff?cvsroot=src&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-infthread.exp.diff?cvsroot=src&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-symbol.exp.diff?cvsroot=src&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-symtab.exp.diff?cvsroot=src&r1=1.3&r2=1.4

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-17 12:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-05 20:28 [Bug python/12368] New: need more is_valid methods tromey at redhat dot com
2011-03-15  8:52 ` [Bug python/12368] " pmuldoon at redhat dot com
2011-03-17 12:22 ` pmuldoon at redhat dot com

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).