This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r273480 - in /trunk/gcc: ChangeLog gdbhooks.py
- From: vlad at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sun, 14 Jul 2019 13:19:30 -0000
- Subject: r273480 - in /trunk/gcc: ChangeLog gdbhooks.py
Author: vlad
Date: Sun Jul 14 13:19:29 2019
New Revision: 273480
URL: https://gcc.gnu.org/viewcvs?rev=273480&root=gcc&view=rev
Log:
gdbhooks.py: dump-fn, dot-fn: cast ret values of fopen/fclose
Work around the following
(gdb) Python Exception <class 'gdb.error'> 'fclose@@GLIBC_2.2.5' has
unknown return type; cast the call to its declared return type:
(gdb) Error occurred in Python: 'fclose@@GLIBC_2.2.5' has unknown
return type; cast the call to its declared return type
This is due to GDB not being able to pick up and use the return types from
debug info for external declarations.
2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
* gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
fopen and fclose to their respective types.
(DotFn.invoke): Ditto.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gdbhooks.py