diff options
author | Tom Tromey <tromey@adacore.com> | 2019-07-11 09:09:52 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-07-11 09:15:18 -0600 |
commit | 72ee03ff58d954dbed886b672032c8c9db0a0dcc (patch) | |
tree | fe284b1f674e18918daf38ed7e594aa7ae1e884c /gdb/top.c | |
parent | 00db9531969db8b6ab984da996d0411fad938589 (diff) | |
download | gdb-72ee03ff58d954dbed886b672032c8c9db0a0dcc.zip gdb-72ee03ff58d954dbed886b672032c8c9db0a0dcc.tar.gz gdb-72ee03ff58d954dbed886b672032c8c9db0a0dcc.tar.bz2 |
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.
Diffstat (limited to 'gdb/top.c')
0 files changed, 0 insertions, 0 deletions