[Bug 20483] New: Calling lldb on a directory instead of a file generates a misleading error

Bug ID 20483
Summary Calling lldb on a directory instead of a file generates a misleading error
Product lldb
Version unspecified
Hardware PC
OS All
Status NEW
Severity enhancement
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter tfiala@google.com
Classification Unclassified

Example:

Assume the file ~/play/loops is a directory and ~/play/loops/loops is the real
exe intended to be run.

Type in this:
/path/to/lldb ~/play/loops

Here's the output:
tfiala@tfiala2:/mnt/ssd/work/macosx.sync/mp-git/build-debug$ bin/lldb
~/play/loops                                                                    
error: '/usr/local/google/home/tfiala/play/loops' doesn't contain any 'host'
platform architectures: x86_64, i386

Seems like we could check if the file specified is really a directory and
present some kind of more meaningful response.  Something like:
~/play/loops is a directory - cannot be loaded for debugging.

Totally minor, but I just hit it and took me a second to figure out what was
really wrong.