<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 --- - New API to scan executable for architectures before creating a target"
href="http://llvm.org/bugs/show_bug.cgi?id=16526">16526</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>New API to scan executable for architectures before creating a target
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</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>meeloo@meeloo.net
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=10807" name="attach_10807" title="Diff to add lldb::SBDebugger::GetAvailableArchsFromFile">attachment 10807</a> <a href="attachment.cgi?id=10807&action=edit" title="Diff to add lldb::SBDebugger::GetAvailableArchsFromFile">[details]</a></span>
Diff to add lldb::SBDebugger::GetAvailableArchsFromFile
As I haven't found a way to scan available architectures from executables I'd
like to add that to the API. For now the only way to do somehow do that is to
loop over all known archs and try to create the SBTarget. Depending on its
success we mark the arch as valid or not. As you can guess this is very slow
and can be made mauch better as lldb already has all the code needed to get
this information without loading the full target.
The public API for this could be added to SBDebugger:
static lldb::SBStringList lldb::SBDebugger::GetAvailableArchsFromFile(const
char* filename);
I have attached a patch implementing this feature.
Cheers,
S.</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>