mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-25 05:00:01 +00:00
2001-10-20 H.J. Lu <hjl@gnu.org>
* config/tc-arm.c (do_c_shift): Use ISDIGIT instead of isdigit. (cirrus_parse_offset): Likewise.
This commit is contained in:
parent
27e4fc867b
commit
8420dfca80
@ -1,3 +1,8 @@
|
||||
2001-10-20 H.J. Lu <hjl@gnu.org>
|
||||
|
||||
* config/tc-arm.c (do_c_shift): Use ISDIGIT instead of isdigit.
|
||||
(cirrus_parse_offset): Likewise.
|
||||
|
||||
2001-10-19 Nick Clifton <nickc@cambridge.redhat.com>
|
||||
|
||||
* config/tc-arm.c: Restore line_comment_chars.
|
||||
|
@ -6557,7 +6557,7 @@ do_c_shift (str, flags, mode)
|
||||
if (*str == '#')
|
||||
++str;
|
||||
|
||||
if (!isdigit (*str) && *str != '-')
|
||||
if (!ISDIGIT (*str) && *str != '-')
|
||||
{
|
||||
inst.error = _("expecting immediate, 7bit operand");
|
||||
return;
|
||||
@ -6569,7 +6569,7 @@ do_c_shift (str, flags, mode)
|
||||
++str;
|
||||
}
|
||||
|
||||
for (imm = 0; *str && isdigit (*str); ++str)
|
||||
for (imm = 0; *str && ISDIGIT (*str); ++str)
|
||||
imm = imm * 10 + *str - '0';
|
||||
|
||||
if (imm > 64)
|
||||
@ -6619,13 +6619,13 @@ cirrus_parse_offset (str, negative)
|
||||
++p;
|
||||
}
|
||||
|
||||
if (!isdigit (*p))
|
||||
if (!ISDIGIT (*p))
|
||||
{
|
||||
inst.error = _("offset expected");
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (offset = 0; *p && isdigit (*p); ++p)
|
||||
for (offset = 0; *p && ISDIGIT (*p); ++p)
|
||||
offset = offset * 10 + *p - '0';
|
||||
|
||||
if (offset > 0xff)
|
||||
|
Loading…
Reference in New Issue
Block a user