From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29763 invoked by alias); 3 Sep 2010 06:14:26 -0000 Received: (qmail 29746 invoked by uid 48); 3 Sep 2010 06:14:26 -0000 Date: Fri, 03 Sep 2010 06:14:00 -0000 Message-ID: <20100903061426.29745.qmail@sourceware.org> From: "jan dot kratochvil at redhat dot com" To: gdb-prs@sourceware.org In-Reply-To: <20100901034743.11964.hicham@mouline.org> References: <20100901034743.11964.hicham@mouline.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug gdb/11964] support for debugging multithreaded openmp X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q3/txt/msg00359.txt.bz2 ------- Additional Comments From jan dot kratochvil at redhat dot com 2010-09-03 06:14 ------- Using GNU gdb (GDB) 7.2.50.20100903-cvs gcc-4.4.4-10.fc13.x86_64 (gdb) start Temporary breakpoint 1 at 0x4006a3: file omp_hello.c, line 22. Starting program: /home/jkratoch/t/omp_hello [Thread debugging using libthread_db enabled] Temporary breakpoint 1, main (argc=1, argv=0x7fffffffded8) at omp_hello.c:22 22 #pragma omp parallel private(nthreads, tid) (gdb) step [New Thread 0x7ffff7fd8710 (LWP 15656)] [New Thread 0x7ffff75d7710 (LWP 15657)] [New Thread 0x7ffff6bd6710 (LWP 15658)] [New Thread 0x7ffff61d5710 (LWP 15659)] [New Thread 0x7ffff57d4710 (LWP 15660)] [New Thread 0x7ffff4dd3710 (LWP 15661)] [New Thread 0x7ffff43d2710 (LWP 15662)] Hello World from thread = 3 main.omp_fn.0 (.omp_data_i=0x0) at omp_hello.c:26 26 tid = omp_get_thread_num(); (gdb) which seems to be correct. There is a bit problem it stops earlier if you have installed gcc-debuginfo: (gdb) start Temporary breakpoint 1 at 0x4006a3: file omp_hello.c, line 22. Starting program: /home/jkratoch/t/omp_hello [Thread debugging using libthread_db enabled] Temporary breakpoint 1, main (argc=1, argv=0x7fffffffded8) at omp_hello.c:22 22 #pragma omp parallel private(nthreads, tid) (gdb) step GOMP_parallel_start (fn=0x4006c8 , data=0x0, num_threads=0) at ../../../libgomp/parallel.c:106 106 { (gdb) _ But that happens even with all the system libraries. I cannot reproduce the "Cannot find bounds of current function" case. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING http://sourceware.org/bugzilla/show_bug.cgi?id=11964 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.