2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
authorDaniel Jacobowitz <drow@false.org>
Sun, 21 Jan 2007 16:49:40 +0000 (16:49 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sun, 21 Jan 2007 16:49:40 +0000 (16:49 +0000)
commitcb1df416fb6d2cc4837a8f81c5f102821c02db93
tree4121c2130d5016d17bb765aafc6399b46742397d
parent727da90068091580ad9cea2a18cd95234b600d21
2007-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
    Daniel Jacobowitz  <dan@codesourcery.com>

* buildsym.c (end_symtab): Use preallocated symtab if available.
Fill in SYMBOL_SYMTAB.
* buildsym.h (struct subfile): Add symtab member.
* dwarf2read.c (struct dwarf2_cu): Add line_header.
(struct file_entry): Add symtab.
(free_cu_line_header): New function.
(read_file_scope): Use it.  Save line_header in the cu.  Process
lines before DIEs.
(add_file_name): Initialize new symtab member.
(dwarf_decode_lines): Create symtabs for included files.
(new_symbol): Set SYMBOL_SYMTAB.
* symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
(search_symbols): Likewise.
* symtab.h (struct symbol): Add symtab member.
(SYMBOL_SYMTAB): Define.

* gdb.base/included.c, gdb.base/included.exp,
gdb.base/included.h: New files.
gdb/ChangeLog
gdb/buildsym.c
gdb/buildsym.h
gdb/dwarf2read.c
gdb/symtab.c
gdb/symtab.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/included.c [new file with mode: 0644]
gdb/testsuite/gdb.base/included.exp [new file with mode: 0644]
gdb/testsuite/gdb.base/included.h [new file with mode: 0644]