mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 01:50:48 +00:00
* i386-tdep.c (i386_register_name): Check for MMX registers first.
Fixes a bug where GDB would print the wrong register names for targets without SSE.
This commit is contained in:
@@ -125,12 +125,12 @@ i386_mxcsr_regnum_p (int regnum)
|
||||
const char *
|
||||
i386_register_name (int reg)
|
||||
{
|
||||
if (reg >= 0 && reg < i386_num_register_names)
|
||||
return i386_register_names[reg];
|
||||
|
||||
if (i386_mmx_regnum_p (reg))
|
||||
return i386_mmx_names[reg - MM0_REGNUM];
|
||||
|
||||
if (reg >= 0 && reg < i386_num_register_names)
|
||||
return i386_register_names[reg];
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user