mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-11 10:48:57 +08:00
PR python/14635:
* python/py-symtab.c (del_objfile_sal): Set 'symtab' field to Py_None. testsuite * gdb.python/py-symtab.exp: Test sal and symtab destructors.
This commit is contained in:
gdb
@ -470,7 +470,10 @@ del_objfile_sal (struct objfile *objfile, void *datum)
|
||||
{
|
||||
sal_object *next = obj->next;
|
||||
|
||||
obj->symtab = NULL;
|
||||
Py_DECREF (obj->symtab);
|
||||
obj->symtab = (symtab_object *) Py_None;
|
||||
Py_INCREF (Py_None);
|
||||
|
||||
obj->next = NULL;
|
||||
obj->prev = NULL;
|
||||
xfree (obj->sal);
|
||||
|
Reference in New Issue
Block a user