[llvm-bugs] [Bug 52213] New: Assertion failure if providing invalid --debug-vars or --dwarf values

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 19 02:37:56 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=52213

            Bug ID: 52213
           Summary: Assertion failure if providing invalid --debug-vars or
                    --dwarf values
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-objdump
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: llvm-bugs at lists.llvm.org

llvm-objdump asserts if either the --debug-vars or the --dwarf options are
provided with invalid values. This is because the StringSwitch used in both
cases has no default handler, so if no case matches the value, an assertion is
hit (see line 189 in StringSwitch.h).

What should happen is a default value be used and an error reported by
llvm-objdump at command-line parsing time.

-- 
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/20211019/8cb57447/attachment-0001.html>


More information about the llvm-bugs mailing list