Minor simplification of (Python) find_thread_object
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 23 Jan 2017 20:31:40 +0000 (15:31 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 23 Jan 2017 20:31:40 +0000 (15:31 -0500)
commit60685cd0b99c575a32c3d004b4af568dd0309bcb
tree8907aebf3841495e8fcb6bf276ab4fe1ee9212c6
parent2d0ca824112f269a883cd04d344614ccab3baaf4
Minor simplification of (Python) find_thread_object

Since the reference to the Inferior Python object is managed by
gdbpy_ref (RAII), we can return directly from the loop.  It's just a
leftover from the cleanups era.

gdb/ChangeLog:

* python/py-inferior.c (find_thread_object): Return directly
from the loop.  Remove "found" variable.
gdb/ChangeLog
gdb/python/py-inferior.c
This page took 0.028753 seconds and 4 git commands to generate.