[llvm-bugs] [Bug 33676] New: Debug information for OpenMP regions is broken
llvm-bugs at lists.llvm.org
Sun Jul 2 23:42:57 PDT 2017
Bug ID: 33676
Summary: Debug information for OpenMP regions is broken
Component: Clang Compiler Support
Assignee: unassignedclangbugs at nondot.org
Reporter: hahnjo at hahnjo.de
CC: llvm-bugs at lists.llvm.org
Created attachment 18743
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
Breakpoint 1, 0x0000000000400a5d in .omp_task_entry. ()
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...
More information about the llvm-bugs