[llvm-bugs] [Bug 39152] New: Improve error message for invalid --dump-section syntax
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Oct 2 07:30:01 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=39152
Bug ID: 39152
Summary: Improve error message for invalid --dump-section
syntax
Product: tools
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: llvm-objcopy
Assignee: unassignedbugs at nondot.org
Reporter: jh7370.2008 at my.bristol.ac.uk
CC: llvm-bugs at lists.llvm.org
Currently, if you forget to provide llvm-objcopy with an output file for
--dump-section, you get a rather confusing output message, at least on Windows:
C:\Work\TempWork> C:\llvm\build\Debug\bin\llvm-objcopy --dump-section=.text
bar.o bar2.o
C:\llvm\build\Debug\bin\llvm-objcopy.exe: error: 'bar.o': The program issued a
command but the command length is incorrect
It would be better if we detected the missing filename earlier (i.e. when we
split the option on '='), and emitted a more coherent error message, indicating
what was wrong.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181002/83242ca8/attachment.html>
More information about the llvm-bugs
mailing list