Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: gdb/python/py-frame.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/python/py-finishbreakpoint.c ('k') | gdb/python/py-inferior.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/python/py-frame.c
diff --git a/gdb/python/py-frame.c b/gdb/python/py-frame.c
index a8ce5980a8ccbae43a2c034c404f0dab179fc589..12a54e8cb2d0a420c47bc70b34d33601f5b39b5f 100644
--- a/gdb/python/py-frame.c
+++ b/gdb/python/py-frame.c
@@ -54,8 +54,6 @@ typedef struct {
error (_("Frame is invalid.")); \
} while (0)
-static PyTypeObject frame_object_type;
-
/* Returns the frame_info object corresponding to the given Python Frame
object. If the frame doesn't exist anymore (the frame id doesn't
correspond to any frame in the inferior), returns NULL. */
@@ -124,7 +122,7 @@ static PyObject *
frapy_name (PyObject *self, PyObject *args)
{
struct frame_info *frame;
- char *name;
+ const char *name;
enum language lang;
PyObject *result;
volatile struct gdb_exception except;
@@ -663,7 +661,7 @@ Return the value of the variable in this frame." },
{NULL} /* Sentinel */
};
-static PyTypeObject frame_object_type = {
+PyTypeObject frame_object_type = {
PyObject_HEAD_INIT (NULL)
0, /* ob_size */
"gdb.Frame", /* tp_name */
« no previous file with comments | « gdb/python/py-finishbreakpoint.c ('k') | gdb/python/py-inferior.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698