OSDN Git Service

gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 26 Mar 2009 14:47:14 +0000 (14:47 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 26 Mar 2009 14:47:14 +0000 (14:47 +0000)
commit534a7a6f626d428d828cf9ae747293dafa85ee46
tree381e8eb2c168930668ceb9c37de5050cd629e31e
parent4c62718461563febf1b8157450f2f91f26353a83
gdb/
Recognize missing DW_AT_location as <value optimized out>.
* dwarf2read.c
(new_symbol <DW_TAG_variable> <!DW_AT_location> <!DW_AT_external>):
Call add_symbol_to_list.

gdb/testsuite/
* gdb.dwarf2/dw2-noloc-main.c: New file.
* gdb.dwarf2/dw2-noloc.S: New symbols matrix.
(.text): Remove.
(.data): New.
(DW_AT_stmt_list, .debug_line, DW_AT_frame_base): Remove.
(DW_AT_low_pc, DW_AT_high_pc): Reference `dw2-noloc-main.c'.
(DW_TAG_subprogram func_cu1, noloc): Remove.
(main): New.
* gdb.dwarf2/dw2-noloc.exp: Use prepare_for_testing, compile also
`dw2-noloc-main.c'.  Test the new DIEs from `dw2-noloc.S'.
(file_symbols): New procedure.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dw2-noloc-main.c [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/dw2-noloc.S
gdb/testsuite/gdb.dwarf2/dw2-noloc.exp