mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
Restrict i387_convert_register_p
gdb: 2017-05-24 Yao Qi <yao.qi@linaro.org> * i387-tdep.c (i387_convert_register_p): Return false if type code isn't TYPE_CODE_FLT.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2017-05-24 Yao Qi <yao.qi@linaro.org>
|
||||||
|
|
||||||
|
* i387-tdep.c (i387_convert_register_p): Return false if type
|
||||||
|
code isn't TYPE_CODE_FLT.
|
||||||
|
|
||||||
2017-05-24 Yao Qi <yao.qi@linaro.org>
|
2017-05-24 Yao Qi <yao.qi@linaro.org>
|
||||||
|
|
||||||
* alpha-tdep.c (alpha_convert_register_p): Return true if type
|
* alpha-tdep.c (alpha_convert_register_p): Return true if type
|
||||||
|
@ -341,8 +341,9 @@ i387_convert_register_p (struct gdbarch *gdbarch, int regnum,
|
|||||||
if (i386_fp_regnum_p (gdbarch, regnum))
|
if (i386_fp_regnum_p (gdbarch, regnum))
|
||||||
{
|
{
|
||||||
/* Floating point registers must be converted unless we are
|
/* Floating point registers must be converted unless we are
|
||||||
accessing them in their hardware type. */
|
accessing them in their hardware type or TYPE is not float. */
|
||||||
if (type == i387_ext_type (gdbarch))
|
if (type == i387_ext_type (gdbarch)
|
||||||
|
|| TYPE_CODE (type) != TYPE_CODE_FLT)
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user