Skip to content

Instantly share code, notes, and snippets.

@awreece
Created July 6, 2013 23:32
Show Gist options
  • Save awreece/5941661 to your computer and use it in GitHub Desktop.
Save awreece/5941661 to your computer and use it in GitHub Desktop.
(gdb) list
1 int main() {
2 #pragma omp parallel
3 {
4 int x = 0;
5 }
6 return 0;
7 }
(gdb) b temp.cpp:4
Breakpoint 1 at 0x400672: file temp.cpp, line 4.
(gdb) r
Starting program: /path/to/a.out
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff6c77700 (LWP 9837)]
[New Thread 0x7ffff6276700 (LWP 9838)]
[New Thread 0x7ffff5875700 (LWP 9839)]
[New Thread 0x7ffff4e74700 (LWP 9840)]
[New Thread 0x7ffff4473700 (LWP 9841)]
[New Thread 0x7ffff3a72700 (LWP 9842)]
[New Thread 0x7ffff3071700 (LWP 9843)]
[New Thread 0x7ffff2670700 (LWP 9844)]
[New Thread 0x7ffff1c6f700 (LWP 9845)]
[New Thread 0x7ffff126e700 (LWP 9846)]
[New Thread 0x7ffff086d700 (LWP 9847)]
[Switching to Thread 0x7ffff5875700 (LWP 9839)]
Breakpoint 1, main._omp_fn.0 () at temp.cc:4
4 int x = 0;
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.107.el6.x86_64 libgcc-4.4.7-3.el6.x86_64 libgomp-4.4.7-3.el6.x86_64 libstdc++-4.4.7-3.el6.x86_64
(gdb) bt
#0 main._omp_fn.0 () at temp.cc:4
#1 0x00007ffff764e502 in ?? () from /usr/lib64/libgomp.so.1
#2 0x00007ffff721a851 in start_thread () from /lib64/libpthread.so.0
#3 0x00007ffff6f6890d in clone () from /lib64/libc.so.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment