OLD | NEW |
1 /* Python interface to program spaces. | 1 /* Python interface to program spaces. |
2 | 2 |
3 Copyright (C) 2010-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2010-2013 Free Software Foundation, Inc. |
4 | 4 |
5 This file is part of GDB. | 5 This file is part of GDB. |
6 | 6 |
7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
10 (at your option) any later version. | 10 (at your option) any later version. |
11 | 11 |
12 This program is distributed in the hope that it will be useful, | 12 This program is distributed in the hope that it will be useful, |
13 but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 13 matching lines...) Expand all Loading... |
27 | 27 |
28 typedef struct | 28 typedef struct |
29 { | 29 { |
30 PyObject_HEAD | 30 PyObject_HEAD |
31 | 31 |
32 /* The corresponding pspace. */ | 32 /* The corresponding pspace. */ |
33 struct program_space *pspace; | 33 struct program_space *pspace; |
34 | 34 |
35 /* The pretty-printer list of functions. */ | 35 /* The pretty-printer list of functions. */ |
36 PyObject *printers; | 36 PyObject *printers; |
| 37 |
| 38 /* The frame filter list of functions. */ |
| 39 PyObject *frame_filters; |
| 40 /* The type-printer list. */ |
| 41 PyObject *type_printers; |
37 } pspace_object; | 42 } pspace_object; |
38 | 43 |
39 static PyTypeObject pspace_object_type; | 44 static PyTypeObject pspace_object_type |
| 45 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("pspace_object"); |
40 | 46 |
41 static const struct program_space_data *pspy_pspace_data_key; | 47 static const struct program_space_data *pspy_pspace_data_key; |
42 | 48 |
43 | 49 |
44 | 50 |
45 | 51 |
46 /* An Objfile method which returns the objfile's file name, or None. */ | 52 /* An Objfile method which returns the objfile's file name, or None. */ |
47 | 53 |
48 static PyObject * | 54 static PyObject * |
49 pspy_get_filename (PyObject *self, void *closure) | 55 pspy_get_filename (PyObject *self, void *closure) |
50 { | 56 { |
51 pspace_object *obj = (pspace_object *) self; | 57 pspace_object *obj = (pspace_object *) self; |
52 | 58 |
53 if (obj->pspace) | 59 if (obj->pspace) |
error: old chunk mismatch |
None
OLD | NEW |