[lldb] Correct unsigned decimal argument check in memory write
authorDavid Spickett <david.spickett@linaro.org>
Wed, 17 Mar 2021 15:45:37 +0000 (15:45 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Wed, 17 Mar 2021 16:08:54 +0000 (16:08 +0000)
commit96927bafa41397f3f053ad705a57f5d834e3fb03
tree822f59ff52626781c3dc1ef8109d72cb26ee46d6
parent4f024938e4c932feba4d28573ec4522106f8d879
[lldb] Correct unsigned decimal argument check in memory write

getAsInteger returns false when it succeeds.

Before:
(lldb) memory write 0x00007ffff7dd3000 99 -f "unsigned decimal"
error: '99' is not a valid unsigned decimal string value.

After:
(lldb) memory write 0x00007ffff7dd3000 99 -f "unsigned decimal"
(lldb) memory read 0x00007ffff7dd3000 0x00007ffff7dd3001
0x7ffff7dd3000: 63                                               c
lldb/source/Commands/CommandObjectMemory.cpp