Fix use-after-move bug in add_thread_object
authorTom Tromey <tromey@adacore.com>
Thu, 11 Jul 2019 15:09:52 +0000 (09:09 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 11 Jul 2019 15:15:18 +0000 (09:15 -0600)
commit72ee03ff58d954dbed886b672032c8c9db0a0dcc
treefe284b1f674e18918daf38ed7e594aa7ae1e884c
parent00db9531969db8b6ab984da996d0411fad938589
Fix use-after-move bug in add_thread_object

commit 05b08ac1608 ("Reduce manual reference counting in
py-inferior.c") introduced a use-after-move bug in add_thread_object,
causing a test suite failure.  This patch fixes the bug.

Tested on x86-64 Fedora 29.

gdb/ChangeLog
2019-07-11  Tom Tromey  <tromey@adacore.com>

* python/py-inferior.c (add_thread_object): Don't use thread_obj
after it has been moved.
gdb/ChangeLog
gdb/python/py-inferior.c
This page took 0.025771 seconds and 4 git commands to generate.