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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 29 09:14:45 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20483

            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 at cs.uiuc.edu
          Reporter: tfiala at 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 at 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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140729/0955db1f/attachment.html>


More information about the lldb-dev mailing list