]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix inferior_thread attribute in new_thread event
authorHannes Domani <ssbssa@yahoo.de>
Wed, 5 Jan 2022 15:37:28 +0000 (16:37 +0100)
committerHannes Domani <ssbssa@yahoo.de>
Wed, 5 Jan 2022 17:35:20 +0000 (18:35 +0100)
commit72df4c816f8a2c6dfb76988ccceee28e28bbaa3d
tree7c324063d00528fb1d8771be972887adc42c6649
parent63a8c05f09703cb30ca7e87e6bacf569ec6a472d
Fix inferior_thread attribute in new_thread event

Commit 72ee03ff58 fixed a use-after-move bug in add_thread_object, but
it changed the inferior_thread attribute to contain the inferior instead
of the actual thread.
This now uses the thread_obj in its new location instead.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=28429
gdb/python/py-inferior.c
gdb/testsuite/gdb.python/py-infthread.exp