On Wednesday, August 5, 2015, Rafael Espíndola <<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Sure. The last beast to tackle is llvm-objdump. I'm cool with doing<br>
> the conversion but I wanted to hear your opinion. I think that<br>
> llvm-readobj is more of a tool for the final user so it makes sense to<br>
> continue on error rather than calling exit(1). What's your opinion,<br>
> and, if you know, what's the GNU behavior in this case?<br>
<br>
When creating invalid object files for tests I noticed that tools like<br>
readelf normally print an error/warning and then proceed to print<br>
garbage or crash.<br>
<br>
IMHO users are better served by a good error message and a full stop,<br>
so IMHO exit(1) is better for llvm-objdump too.</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote><div><br></div><div>Except in the case of static archives and import libraries, the single element is ignored and they continue for the rest of the archive. I think that this can be useful for cases where we don't handle the particular object. Of course this requires that the archive or import library is well formed and would fit into your statement, but just wanted to make sure that this was called out explicitly.<span></span></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Cheers,<br>
Rafael<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'llvm-commits@lists.llvm.org')">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote><br><br>-- <br>Saleem Abdulrasool<br>compnerd (at) compnerd (dot) org<br>