[Bug 19013] New: "memory read -size" should explicitly reject invalid value

Bug ID 19013
Summary “memory read -size” should explicitly reject invalid value
Product lldb
Version unspecified
Hardware PC
OS FreeBSD
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter emaste@freebsd.org
Classification Unclassified

I accidentally ended up with an extra - before a memory read -size option, and
the error message is non-obvious:

(lldb) memory read -size -4 -format hex -count 4 0x100150
error: Normally, 'memory read' will not read over 1024 bytes of data.
error: Please use --force to override this restriction just once.
error: or set target.max-memory-read-size if you will often need a larger
limit.