diff options
Diffstat (limited to 'gdb/parse.c')
-rw-r--r-- | gdb/parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/parse.c b/gdb/parse.c index 2d4a629..bd74ecd 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -129,8 +129,8 @@ target_map_name_to_register (str, len) /* Search architectural register name space. */ for (i = 0; i < NUM_REGS; i++) - if (reg_names[i] && len == strlen (reg_names[i]) - && STREQN (str, reg_names[i], len)) + if (REGISTER_NAME (i) && len == strlen (REGISTER_NAME (i)) + && STREQN (str, REGISTER_NAME (i), len)) { return i; } |