From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18285 invoked by alias); 30 Nov 2007 07:42:54 -0000 Received: (qmail 18276 invoked by uid 22791); 30 Nov 2007 07:42:52 -0000 X-Spam-Check-By: sourceware.org Received: from zigzag.lvk.cs.msu.su (HELO zigzag.lvk.cs.msu.su) (158.250.17.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 30 Nov 2007 07:42:46 +0000 Received: from Debian-exim by zigzag.lvk.cs.msu.su with spam-scanned (Exim 4.50) id 1Iy0WD-0006ln-3D for gdb-patches@sources.redhat.com; Fri, 30 Nov 2007 10:42:42 +0300 Received: from localhost ([127.0.0.1] helo=ip6-localhost) by zigzag.lvk.cs.msu.su with esmtp (Exim 4.50) id 1Iy0Vd-0006lL-64; Fri, 30 Nov 2007 10:42:01 +0300 From: Vladimir Prus Subject: Re: [patch] Parse DW_AT_ranges into PSYMTABS (for childless CU, for vDSO32) To: Jan Kratochvil , gdb-patches@sources.redhat.com Date: Fri, 30 Nov 2007 07:42:00 -0000 References: <20071009180246.GA26829@host0.dyn.jankratochvil.net> <20071009181701.GA30757@caradoc.them.org> <20071009185434.GA27810@host0.dyn.jankratochvil.net> <20071009185931.GA1220@caradoc.them.org> <20071124154339.GA14913@host0.dyn.jankratochvil.net> User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart9598490.eIv4KDCGqd" Content-Transfer-Encoding: 7Bit Message-Id: Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00560.txt.bz2 --nextPart9598490.eIv4KDCGqd Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8Bit Content-length: 564 Jan Kratochvil wrote: > On Tue, 09 Oct 2007 20:59:31 +0200, Daniel Jacobowitz wrote: > ... >> Does that work with the default linker script and without -nostdlib? > > Attached the patch with the testcase no longer using its own .lds. Jan, I'm afraid this patch causes the following regression for me: FAIL: gdb.threads/thread_check.exp: breakpoint at tf This FAIL disappears as soon as I revert to revision 1.236 of gdb/dwarf2read.c -- right before your changes. Do you see the same failure? I attach the gdb.log, if that helps. Thanks, Volodya --nextPart9598490.eIv4KDCGqd Content-Type: text/plain; name="gdb.log" Content-Transfer-Encoding: 8Bit Content-Disposition: attachment; filename="gdb.log" Content-length: 4669 Test Run By ghost on Fri Nov 30 10:39:14 2007 Native configuration is i686-pc-linux-gnu === gdb tests === Schedule of variations: unix Running target unix Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target. Using /usr/share/dejagnu/config/unix.exp as generic interface file for target. Using /home/ghost/Work/CodeSourcery/Projects/egdb/gdb/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file. Running /home/ghost/Work/CodeSourcery/Projects/egdb/gdb/gdb/testsuite/gdb.threads/thread_check.exp ... Executing on host: gcc /home/ghost/Work/CodeSourcery/Projects/egdb/gdb/gdb/testsuite/gdb.threads/thread_check.c -I/home/ghost/Build/gdb_ericsson/gdb/testsuite -g -lpthreads -lm -o /home/ghost/Build/gdb_ericsson/gdb/testsuite/gdb.threads/thread_check (timeout = 300) /usr/bin/ld: cannot find -lpthreads collect2: ld returned 1 exit status compiler exited with status 1 output is: /usr/bin/ld: cannot find -lpthreads collect2: ld returned 1 exit status Executing on host: gcc /home/ghost/Work/CodeSourcery/Projects/egdb/gdb/gdb/testsuite/gdb.threads/thread_check.c -I/home/ghost/Build/gdb_ericsson/gdb/testsuite -g -lpthread -lm -o /home/ghost/Build/gdb_ericsson/gdb/testsuite/gdb.threads/thread_check (timeout = 300) PASS: gdb.threads/thread_check.exp: successfully compiled posix threads test case GNU gdb 6.7.50.20071127-cvs Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu". (gdb) set height 0 (gdb) set width 0 (gdb) dir Reinitialize source path to empty? (y or n) y Source directories searched: $cdir:$cwd (gdb) dir /home/ghost/Work/CodeSourcery/Projects/egdb/gdb/gdb/testsuite/gdb.threads Source directories searched: /home/ghost/Work/CodeSourcery/Projects/egdb/gdb/gdb/testsuite/gdb.threads:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/ghost/Build/gdb_ericsson/gdb/testsuite/gdb.threads/thread_check Reading symbols from /home/ghost/Build/gdb_ericsson/gdb/testsuite/gdb.threads/thread_check...done. (gdb) delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x804863b: file /home/ghost/Work/CodeSourcery/Projects/egdb/gdb/gdb/testsuite/gdb.threads/thread_check.c, line 50. (gdb) run Starting program: /home/ghost/Build/gdb_ericsson/gdb/testsuite/gdb.threads/thread_check [Thread debugging using libthread_db enabled] [New Thread 0x401b76c0 (LWP 11072)] [Switching to Thread 0x401b76c0 (LWP 11072)] Breakpoint 1, main () at /home/ghost/Work/CodeSourcery/Projects/egdb/gdb/gdb/testsuite/gdb.threads/thread_check.c:50 50 int unslept = 2; (gdb) break tf Breakpoint 2 at 0x804856d (gdb) FAIL: gdb.threads/thread_check.exp: breakpoint at tf continue Continuing. [New Thread 0x403b8b90 (LWP 11075)] [Switching to Thread 0x403b8b90 (LWP 11075)] Breakpoint 2, 0x0804856d in tf (arg=0xa8428197) at /home/ghost/Work/CodeSourcery/Projects/egdb/gdb/gdb/testsuite/gdb.threads/thread_check.c:31 31 { (gdb) PASS: gdb.threads/thread_check.exp: continue to tf backtrace #0 0x0804856d in tf (arg=0xa8428197) at /home/ghost/Work/CodeSourcery/Projects/egdb/gdb/gdb/testsuite/gdb.threads/thread_check.c:31 #1 0x4003c31b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #2 0x4014557e in clone () from /lib/tls/i686/cmov/libc.so.6 (gdb) PASS: gdb.threads/thread_check.exp: backtrace from thread function delete breakpoints Delete all breakpoints? (y or n) y (gdb) info breakpoints No breakpoints or watchpoints. (gdb) testcase /home/ghost/Work/CodeSourcery/Projects/egdb/gdb/gdb/testsuite/gdb.threads/thread_check.exp completed in 1 seconds === gdb Summary === # of expected passes 3 # of unexpected failures 1 Executing on host: /home/ghost/Build/gdb_ericsson/gdb/testsuite/../../gdb/gdb -nw --command gdb_cmd (timeout = 300) GNU gdb 6.7.50.20071127-cvs Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu". Hi /home/ghost/Build/gdb_ericsson/gdb/testsuite/../../gdb/gdb version 6.7.50.20071127-cvs -nx runtest completed at Fri Nov 30 10:39:16 2007 --nextPart9598490.eIv4KDCGqd--