projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
*** empty log message ***
[deliverable/binutils-gdb.git]
/
gdb
/
dbug-rom.c
diff --git
a/gdb/dbug-rom.c
b/gdb/dbug-rom.c
index 4bcb5a67f0171be9e1e98c50171718065d39bc8b..f8886d9044af747403e62c61d7f62f14798c1007 100644
(file)
--- a/
gdb/dbug-rom.c
+++ b/
gdb/dbug-rom.c
@@
-90,8
+90,7
@@
dbug_regname (int index)
/* no float registers */
};
- if ((index >= (sizeof (regnames) / sizeof (regnames[0])))
- || (index < 0) || (index >= gdbarch_num_regs (current_gdbarch)))
+ if (index >= ARRAY_SIZE (regnames) || index < 0)
return NULL;
else
return regnames[index];
This page took
0.023914 seconds
and
4
git commands to generate.