[llvm-bugs] [Bug 33676] New: Debug information for OpenMP regions is broken

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jul 2 23:42:57 PDT 2017


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

            Bug ID: 33676
           Summary: Debug information for OpenMP regions is broken
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hahnjo at hahnjo.de
                CC: llvm-bugs at lists.llvm.org

Created attachment 18743
  --> https://bugs.llvm.org/attachment.cgi?id=18743&action=edit
Simple tasking program

For the simple attached tasking program, llvm-ir generated with:

clang -fopenmp task.c -S -emit-llvm -g

generates DILocation entries for the outlined OpenMP regions, that refer to
line 0. As a result, tools like addr2line and gdb fail to resolve the source
line for the OpenMP regions.

For the attached code compiled with Clang 4.0.1, gdb can set a breakpoint in
the task region, but then fails to resolve the source line:

$ clang -fopenmp task.c -g
$ gdb ./a.out
(gdb) b 13
(gdb) r
Breakpoint 1, 0x0000000000400a5d in .omp_task_entry. ()
(gdb) s
Single stepping until exit from function .omp_task_entry.,
which has no line number information.

With current trunk, it can't even stop at line 13. Instead, the breakpoint is
hit right after the task construct.

Report by Joachim Protze.

-- 
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/20170703/3792a5cc/attachment.html>


More information about the llvm-bugs mailing list