[all-commits] [llvm/llvm-project] 96927b: [lldb] Correct unsigned decimal argument check in ...

David Spickett via All-commits all-commits at lists.llvm.org
Wed Mar 17 09:11:14 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 96927bafa41397f3f053ad705a57f5d834e3fb03
      https://github.com/llvm/llvm-project/commit/96927bafa41397f3f053ad705a57f5d834e3fb03
  Author: David Spickett <david.spickett at linaro.org>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M lldb/source/Commands/CommandObjectMemory.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list