From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25671 invoked by alias); 5 Jan 2012 16:19:21 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 25635 invoked by uid 306); 5 Jan 2012 16:19:16 -0000 Date: Thu, 05 Jan 2012 16:19:00 -0000 Message-ID: <20120105161916.25616.qmail@sourceware.org> From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-tromey-python-checker: finish type-object-for-typedef attributes X-Git-Refname: refs/heads/archer-tromey-python-checker X-Git-Reftype: branch X-Git-Oldrev: abdde5e1813ce5829756649fc60a1f8d8b3f51c2 X-Git-Newrev: cb8896605a919d2fe55816025515506047266434 X-SW-Source: 2012-q1/txt/msg00013.txt.bz2 List-Id: The branch, archer-tromey-python-checker has been updated via cb8896605a919d2fe55816025515506047266434 (commit) from abdde5e1813ce5829756649fc60a1f8d8b3f51c2 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit cb8896605a919d2fe55816025515506047266434 Author: Tom Tromey Date: Thu Jan 5 09:14:05 2012 -0700 finish type-object-for-typedef attributes ----------------------------------------------------------------------- Summary of changes: gdb/python/py-block.c | 5 +++-- gdb/python/py-bpevent.c | 5 +++-- gdb/python/py-breakpoint.c | 5 +++-- gdb/python/py-cmd.c | 3 ++- gdb/python/py-continueevent.c | 5 +++-- gdb/python/py-events.h | 5 +++-- gdb/python/py-evtregistry.c | 3 ++- gdb/python/py-exitedevent.c | 5 +++-- gdb/python/py-frame.c | 5 +++-- gdb/python/py-inferior.c | 8 +++++--- gdb/python/py-infthread.c | 5 +++-- gdb/python/py-lazy-string.c | 5 +++-- gdb/python/py-newobjfileevent.c | 5 +++-- gdb/python/py-objfile.c | 5 +++-- gdb/python/py-param.c | 5 +++-- gdb/python/py-progspace.c | 5 +++-- gdb/python/py-signalevent.c | 5 +++-- gdb/python/py-symtab.c | 8 +++++--- gdb/python/py-type.c | 11 +++++++---- gdb/python/python-internal.h | 14 ++++++++------ 20 files changed, 71 insertions(+), 46 deletions(-) First 500 lines of diff: diff --git a/gdb/python/py-block.c b/gdb/python/py-block.c index 3f4467a..0e4e800 100644 --- a/gdb/python/py-block.c +++ b/gdb/python/py-block.c @@ -1,6 +1,6 @@ /* Python interface to blocks. - Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GDB. @@ -78,7 +78,8 @@ typedef struct { } \ } while (0) -static PyTypeObject block_syms_iterator_object_type; +static PyTypeObject block_syms_iterator_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("block_syms_iterator_object"); static const struct objfile_data *blpy_objfile_data_key; static PyObject * diff --git a/gdb/python/py-bpevent.c b/gdb/python/py-bpevent.c index f37b248..81f2452 100644 --- a/gdb/python/py-bpevent.c +++ b/gdb/python/py-bpevent.c @@ -1,6 +1,6 @@ /* Python interface to inferior breakpoint stop events. - Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GDB. @@ -19,7 +19,8 @@ #include "py-stopevent.h" -static PyTypeObject breakpoint_event_object_type; +static PyTypeObject breakpoint_event_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("event_object"); /* Create and initialize a BreakpointEvent object. */ diff --git a/gdb/python/py-breakpoint.c b/gdb/python/py-breakpoint.c index f235bbc..18b04f0 100644 --- a/gdb/python/py-breakpoint.c +++ b/gdb/python/py-breakpoint.c @@ -1,6 +1,6 @@ /* Python interface to breakpoints - Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GDB. @@ -31,7 +31,8 @@ #include "arch-utils.h" #include "language.h" -static PyTypeObject breakpoint_object_type; +static PyTypeObject breakpoint_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("breakpoint_object"); /* Number of live breakpoints. */ static int bppy_live; diff --git a/gdb/python/py-cmd.c b/gdb/python/py-cmd.c index bbc0d2e..c989781 100644 --- a/gdb/python/py-cmd.c +++ b/gdb/python/py-cmd.c @@ -68,7 +68,8 @@ struct cmdpy_object typedef struct cmdpy_object cmdpy_object; -static PyTypeObject cmdpy_object_type; +static PyTypeObject cmdpy_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("cmdpy_object"); /* Constants used by this module. */ static PyObject *invoke_cst; diff --git a/gdb/python/py-continueevent.c b/gdb/python/py-continueevent.c index 1338ba6..dc77018 100644 --- a/gdb/python/py-continueevent.c +++ b/gdb/python/py-continueevent.c @@ -1,6 +1,6 @@ /* Python interface to inferior continue events. - Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GDB. @@ -19,7 +19,8 @@ #include "py-event.h" -static PyTypeObject continue_event_object_type; +static PyTypeObject continue_event_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("event_object"); PyObject * create_continue_event_object (void) diff --git a/gdb/python/py-events.h b/gdb/python/py-events.h index 31ce757..46f63c0 100644 --- a/gdb/python/py-events.h +++ b/gdb/python/py-events.h @@ -1,6 +1,6 @@ /* Python interface to inferior events. - Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GDB. @@ -25,7 +25,8 @@ #include "python-internal.h" #include "inferior.h" -extern PyTypeObject thread_event_object_type; +extern PyTypeObject thread_event_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("event_object"); /* Stores a list of objects to be notified when the event for which this registry tracks occurs. */ diff --git a/gdb/python/py-evtregistry.c b/gdb/python/py-evtregistry.c index 8782229..e295dc4 100644 --- a/gdb/python/py-evtregistry.c +++ b/gdb/python/py-evtregistry.c @@ -23,7 +23,8 @@ events_object gdb_py_events; -static PyTypeObject eventregistry_object_type; +static PyTypeObject eventregistry_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("eventregistry_object"); /* Implementation of EventRegistry.connect () -> NULL. Add FUNCTION to the list of listeners. */ diff --git a/gdb/python/py-exitedevent.c b/gdb/python/py-exitedevent.c index 85ea2e2..3dee3f0 100644 --- a/gdb/python/py-exitedevent.c +++ b/gdb/python/py-exitedevent.c @@ -1,6 +1,6 @@ /* Python interface to inferior exit events. - Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GDB. @@ -19,7 +19,8 @@ #include "py-event.h" -static PyTypeObject exited_event_object_type; +static PyTypeObject exited_event_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("event_object"); static PyObject * create_exited_event_object (const LONGEST *exit_code, struct inferior *inf) diff --git a/gdb/python/py-frame.c b/gdb/python/py-frame.c index 20064ca..e0b666b 100644 --- a/gdb/python/py-frame.c +++ b/gdb/python/py-frame.c @@ -1,6 +1,6 @@ /* Python interface to stack frames - Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GDB. @@ -54,7 +54,8 @@ typedef struct { error (_("Frame is invalid.")); \ } while (0) -static PyTypeObject frame_object_type; +static PyTypeObject frame_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("frame_object"); /* Returns the frame_info object corresponding to the given Python Frame object. If the frame doesn't exist anymore (the frame id doesn't diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index d6086dc..1016f51 100644 --- a/gdb/python/py-inferior.c +++ b/gdb/python/py-inferior.c @@ -1,6 +1,6 @@ /* Python interface to inferiors. - Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GDB. @@ -51,7 +51,8 @@ typedef struct int nthreads; } inferior_object; -static PyTypeObject inferior_object_type; +static PyTypeObject inferior_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("inferior_object"); static const struct inferior_data *infpy_inf_data_key; @@ -64,7 +65,8 @@ typedef struct { CORE_ADDR length; } membuf_object; -static PyTypeObject membuf_object_type; +static PyTypeObject membuf_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("membuf_object"); /* Require that INFERIOR be a valid inferior ID. */ #define INFPY_REQUIRE_VALID(Inferior) \ diff --git a/gdb/python/py-infthread.c b/gdb/python/py-infthread.c index cb714c7..3a0d3b5 100644 --- a/gdb/python/py-infthread.c +++ b/gdb/python/py-infthread.c @@ -1,6 +1,6 @@ /* Python interface to inferior threads. - Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GDB. @@ -23,7 +23,8 @@ #include "inferior.h" #include "python-internal.h" -static PyTypeObject thread_object_type; +static PyTypeObject thread_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("thread_object"); /* Require that INFERIOR be a valid inferior ID. */ #define THPY_REQUIRE_VALID(Thread) \ diff --git a/gdb/python/py-lazy-string.c b/gdb/python/py-lazy-string.c index 45ba41e..0ffef6f 100644 --- a/gdb/python/py-lazy-string.c +++ b/gdb/python/py-lazy-string.c @@ -1,6 +1,6 @@ /* Python interface to lazy strings. - Copyright (C) 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GDB. @@ -47,7 +47,8 @@ typedef struct { struct type *type; } lazy_string_object; -static PyTypeObject lazy_string_object_type; +static PyTypeObject lazy_string_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("lazy_string_object"); static PyObject * stpy_get_address (PyObject *self, void *closure) diff --git a/gdb/python/py-newobjfileevent.c b/gdb/python/py-newobjfileevent.c index 11e4b21..d04fcad 100644 --- a/gdb/python/py-newobjfileevent.c +++ b/gdb/python/py-newobjfileevent.c @@ -1,6 +1,6 @@ /* Python interface to new object file loading events. - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011, 2012 Free Software Foundation, Inc. This file is part of GDB. @@ -19,7 +19,8 @@ #include "py-event.h" -static PyTypeObject new_objfile_event_object_type; +static PyTypeObject new_objfile_event_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("event_object"); PyObject * create_new_objfile_event_object (struct objfile *objfile) diff --git a/gdb/python/py-objfile.c b/gdb/python/py-objfile.c index f9821f5..2f9bf40 100644 --- a/gdb/python/py-objfile.c +++ b/gdb/python/py-objfile.c @@ -1,6 +1,6 @@ /* Python interface to objfiles. - Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GDB. @@ -34,7 +34,8 @@ typedef struct PyObject *printers; } objfile_object; -static PyTypeObject objfile_object_type; +static PyTypeObject objfile_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("objfile_object"); static const struct objfile_data *objfpy_objfile_data_key; diff --git a/gdb/python/py-param.c b/gdb/python/py-param.c index fe31cd1..f48e118 100644 --- a/gdb/python/py-param.c +++ b/gdb/python/py-param.c @@ -1,6 +1,6 @@ /* GDB parameters implemented in Python - Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GDB. @@ -89,7 +89,8 @@ struct parmpy_object typedef struct parmpy_object parmpy_object; -static PyTypeObject parmpy_object_type; +static PyTypeObject parmpy_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("parmpy_object"); /* Some handy string constants. */ static PyObject *set_doc_cst; diff --git a/gdb/python/py-progspace.c b/gdb/python/py-progspace.c index c30b37d..b9d56ec 100644 --- a/gdb/python/py-progspace.c +++ b/gdb/python/py-progspace.c @@ -1,6 +1,6 @@ /* Python interface to program spaces. - Copyright (C) 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GDB. @@ -36,7 +36,8 @@ typedef struct PyObject *printers; } pspace_object; -static PyTypeObject pspace_object_type; +static PyTypeObject pspace_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("pspace_object"); static const struct program_space_data *pspy_pspace_data_key; diff --git a/gdb/python/py-signalevent.c b/gdb/python/py-signalevent.c index 3d7ce32..d50dd69 100644 --- a/gdb/python/py-signalevent.c +++ b/gdb/python/py-signalevent.c @@ -1,6 +1,6 @@ /* Python interface to inferior signal stop events. - Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GDB. @@ -19,7 +19,8 @@ #include "py-stopevent.h" -static PyTypeObject signal_event_object_type; +static PyTypeObject signal_event_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("event_object"); PyObject * create_signal_event_object (enum target_signal stop_signal) diff --git a/gdb/python/py-symtab.c b/gdb/python/py-symtab.c index 107cdec..1a19abd 100644 --- a/gdb/python/py-symtab.c +++ b/gdb/python/py-symtab.c @@ -1,6 +1,6 @@ /* Python interface to symbol tables. - Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GDB. @@ -36,7 +36,8 @@ typedef struct stpy_symtab_object { struct stpy_symtab_object *next; } symtab_object; -static PyTypeObject symtab_object_type; +static PyTypeObject symtab_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("symtab_object"); static const struct objfile_data *stpy_objfile_data_key; /* Require a valid symbol table. All access to symtab_object->symtab @@ -66,7 +67,8 @@ typedef struct salpy_sal_object { struct salpy_sal_object *next; } sal_object; -static PyTypeObject sal_object_type; +static PyTypeObject sal_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("sal_object"); static const struct objfile_data *salpy_objfile_data_key; /* Require a valid symbol table and line object. All access to diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index 585100d..911c616 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -1,6 +1,6 @@ /* Python interface to types. - Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GDB. @@ -43,7 +43,8 @@ typedef struct pyty_type_object struct pyty_type_object *next; } type_object; -static PyTypeObject type_object_type; +static PyTypeObject type_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("type_object"); /* A Field object. */ typedef struct pyty_field_object @@ -54,7 +55,8 @@ typedef struct pyty_field_object PyObject *dict; } field_object; -static PyTypeObject field_object_type; +static PyTypeObject field_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("field_object"); /* A type iterator object. */ typedef struct { @@ -67,7 +69,8 @@ typedef struct { struct pyty_type_object *source; } typy_iterator_object; -static PyTypeObject type_iterator_object_type; +static PyTypeObject type_iterator_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("typy_iterator_object"); /* This is used to initialize various gdb.TYPE_ constants. */ struct pyty_code diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 8ffa69e..e86e4d5 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -130,13 +130,15 @@ struct inferior; extern PyObject *gdb_module; extern PyTypeObject value_object_type - CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF("value_object"); + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("value_object"); extern PyTypeObject block_object_type - CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF("block_object"); -extern PyTypeObject symbol_object_type; -extern PyTypeObject event_object_type; -extern PyTypeObject events_object_type; -extern PyTypeObject stop_event_object_type; + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("block_object"); +extern PyTypeObject symbol_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("symbol_object"); +extern PyTypeObject event_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("event_object"); +extern PyTypeObject stop_event_object_type + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("event_object"); /* Defined in py-breakpoint.c */ typedef struct breakpoint_object breakpoint_object; hooks/post-receive -- Repository for Project Archer.