[PATCH v3 2/3] gdb/varobj: Fix use after free in varobj

Tom Tromey tom@tromey.com
Fri Jul 15 17:58:09 GMT 2022


>>>>> "Lancelot" == Lancelot SIX via Gdb-patches <gdb-patches@sourceware.org> writes:

Lancelot> This patch also makes sure to keep a reference to the expression's
Lancelot> gdbarch and language_defn members when the varobj->root->exp is
Lancelot> initialized.  Those structures outlive the objfile, so this is safe.
[...]

Thanks, this looks good to me.

Tom


More information about the Gdb-patches mailing list