Re: [patch] Parse DW_AT_ranges into PSYMTABS (for childless CU, for vDSO32)

Vladimir Prus
2007-11-30T07:42:54Z

[-- Attachment #1: Type: text/plain, Size: 564 bytes --]

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

[-- Attachment #2: gdb.log --]
[-- Type: text/plain, Size: 4669 bytes --]

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 <http://gnu.org/licenses/gpl.html>

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 <http://gnu.org/licenses/gpl.html>

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