]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Avoid questionable casts in py-symtab.c
authorTom Tromey <tom@tromey.com>
Thu, 27 Dec 2018 19:16:06 +0000 (12:16 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 3 Jan 2019 21:49:19 +0000 (14:49 -0700)
commit7c711119166fc1c60c756059f39c6703d57eedbf
tree457116b24660a941d567a9cc8372d84bc483b6ec
parent1b20edf043c62759a4c78e40b03846e9bafd584c
Avoid questionable casts in py-symtab.c

py-symtab.c has some questionable casts of Py_None to symtab_object*.
This patch avoids these casts by instead using downcasts at the
appropriate places.

gdb/ChangeLog
2019-01-03  Tom Tromey  <tom@tromey.com>

* python/py-symtab.c (salpy_str): Update.
(struct salpy_sal_object) <symtab>: Now a PyObject.
(salpy_dealloc): Update.
(del_objfile_sal): Use gdbpy_ref.
gdb/ChangeLog
gdb/python/py-symtab.c