<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Calling lldb on a directory instead of a file generates a misleading error"
href="http://llvm.org/bugs/show_bug.cgi?id=20483">20483</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Calling lldb on a directory instead of a file generates a misleading error
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tfiala@google.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>