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

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

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 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-symtab.c ('k') | gdb/python/py-type.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/python/py-threadevent.c
diff --git a/gdb/python/py-threadevent.c b/gdb/python/py-threadevent.c
index 67f9e2006aa5e563bebe48182a0f45335ff786fe..ea9de89d2f2a98cd8cfc2da14749828af530b6fa 100644
--- a/gdb/python/py-threadevent.c
+++ b/gdb/python/py-threadevent.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2009-2012 Free Software Foundation, Inc.
+/* Copyright (C) 2009-2013 Free Software Foundation, Inc.
This file is part of GDB.
@@ -15,13 +15,17 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#include "defs.h"
#include "py-event.h"
/* thread events can either be thread specific or process wide. If gdb is
running in non-stop mode then the event is thread specific, otherwise
it is process wide.
This function returns the currently stopped thread in non-stop mode and
- Py_None otherwise. */
+ Py_None otherwise. In each case it returns a borrowed reference. */
+
+static PyObject *get_event_thread (void)
+ CPYCHECKER_RETURNS_BORROWED_REF;
static PyObject *
get_event_thread (void)
@@ -39,8 +43,6 @@ get_event_thread (void)
return NULL;
}
- Py_INCREF (thread);
-
return thread;
}
« no previous file with comments | « gdb/python/py-symtab.c ('k') | gdb/python/py-type.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698