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

Side by Side Diff: gdb/python/py-infthread.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 unified diff | Download patch
« no previous file with comments | « gdb/python/py-inferior.c ('k') | gdb/python/py-lazy-string.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Python interface to inferior threads. 1 /* Python interface to inferior threads.
2 2
3 Copyright (C) 2009-2012 Free Software Foundation, Inc. 3 Copyright (C) 2009-2012 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.
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 return ret; 156 return ret;
157 } 157 }
158 158
159 /* Implementation of InferiorThread.switch (). 159 /* Implementation of InferiorThread.switch ().
160 Makes this the GDB selected thread. */ 160 Makes this the GDB selected thread. */
161 static PyObject * 161 static PyObject *
162 thpy_switch (PyObject *self, PyObject *args) 162 thpy_switch (PyObject *self, PyObject *args)
163 { 163 {
164 thread_object *thread_obj = (thread_object *) self; 164 thread_object *thread_obj = (thread_object *) self;
165 struct cleanup *cleanup;
166 volatile struct gdb_exception except; 165 volatile struct gdb_exception except;
167 166
168 THPY_REQUIRE_VALID (thread_obj); 167 THPY_REQUIRE_VALID (thread_obj);
169 168
170 TRY_CATCH (except, RETURN_MASK_ALL) 169 TRY_CATCH (except, RETURN_MASK_ALL)
171 { 170 {
172 switch_to_thread (thread_obj->thread->ptid); 171 switch_to_thread (thread_obj->thread->ptid);
173 } 172 }
174 GDB_PY_HANDLE_EXCEPTION (except); 173 GDB_PY_HANDLE_EXCEPTION (except);
175 174
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 0, /* tp_members */ 333 0, /* tp_members */
335 thread_object_getset, /* tp_getset */ 334 thread_object_getset, /* tp_getset */
336 0, /* tp_base */ 335 0, /* tp_base */
337 0, /* tp_dict */ 336 0, /* tp_dict */
338 0, /* tp_descr_get */ 337 0, /* tp_descr_get */
339 0, /* tp_descr_set */ 338 0, /* tp_descr_set */
340 0, /* tp_dictoffset */ 339 0, /* tp_dictoffset */
341 0, /* tp_init */ 340 0, /* tp_init */
342 0 /* tp_alloc */ 341 0 /* tp_alloc */
343 }; 342 };
OLDNEW
« no previous file with comments | « gdb/python/py-inferior.c ('k') | gdb/python/py-lazy-string.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698