]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
fix recursively_compute_inclusions and add dwz test case
authorTom Tromey <tromey@redhat.com>
Wed, 7 Aug 2013 19:57:51 +0000 (19:57 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 7 Aug 2013 19:57:51 +0000 (19:57 +0000)
commitf9125b6c6c523dc3f0191fdb5b9551c6f5d70c61
treeb69053ffa18840afb67205aaf62c9660d98d6096
parentfdbb204be90dda0680acdf9b4829ddf531dc2aaa
fix recursively_compute_inclusions and add dwz test case

Doug pointed out a while ago that in the final dwz -m patch, nothing
ever set symtab::user.

This patch fixes this oversight and adds a test case showing why it is
important.

Built and regtested (both ways) on x86-64 Fedora 18.
The new test unconditionally tests the partial unit machinery, which I
think is an added plus.

* dwarf2read.c (recursively_compute_inclusions): Add
"immediate_parent" argument.  Set symtab's "user" field
if not set.
(compute_symtab_includes): Update.

* gdb.dwarf2/dwz.exp: New file.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dwz.exp [new file with mode: 0644]