aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2
AgeCommit message (Collapse)AuthorFilesLines
2009-11-12 * gdb.base/step-line.exp: Copy step-line.inp to the remote host.Nathan Froyd6-0/+30
* gdb.dwarf2/dw2-basic.exp: Copy file1.txt to the remote host. * gdb.dwarf2/dw2-compressed.exp: Likewise. * gdb.dwarf2/dw2-intercu.exp: Likewise. * gdb.dwarf2/dw2-intermix.exp: Likewise. * gdb.dwarf2/dw2-producer.exp: Likewise. * gdb.dwarf2/mac-fileno.exp: Likewise. * gdb.python/py-prettyprint.exp (run_lang_tests): Copy py-prettyprint.py to the remote host. * gdb.python/py-mi.exp: Copy py-mi.py to the remote host.
2009-11-11gdb/Jan Kratochvil1-0/+6
* objfiles.c (objfile_relocate): Update also the field psymtabs_addrmap. gdb/testsuite/ * gdb.dwarf2/dw2-ranges.exp: Call runto_main.
2009-09-11gdbTom Tromey2-0/+560
* dwarf2loc.c (struct piece_closure) <arch>: New field. (dwarf2_evaluate_loc_desc): Update. (dwarf2_loc_desc_needs_frame): Likewise. (allocate_piece_closure): Initialize new field. (read_pieced_value): Update. (write_pieced_value): Update. (copy_pieced_value_closure): Update. * dwarf2expr.h (enum dwarf_value_location): New. (struct dwarf_expr_context) <in_reg>: Remove. <location, len, data>: New fields. (struct dwarf_expr_piece) <in_reg, value>: Remove. <location, v>: New fields. * dwarf2expr.c (add_piece): Remove in_reg, value arguments. Update. (require_composition): New function. (execute_stack_op): Update. <DW_OP_implicit_value, DW_OP_stack_value>: New cases. <DW_OP_reg0>: Set location, not in_reg. <DW_OP_regx>: Likewise. Use require_composition. <DW_OP_fbreg>: Update. <DW_OP_piece>: Likewise. * dwarf2-frame.c (execute_stack_op): Update. gdb/testsuite * gdb.dwarf2/valop.S: New file. * gdb.dwarf2/valop.exp: New file.
2009-09-02 * gdb.dwarf2/callframecfa.exp: Use gdb_continue_to_breakpoint.Tom Tromey1-2/+6
2009-09-02gdbTom Tromey2-0/+364
* frame.h (frame_unwinder_is): Declare. * frame.c (frame_unwinder_is): New function. * dwarf2loc.c: Include dwarf2-frame.h. (dwarf_expr_frame_cfa): New function. (dwarf2_evaluate_loc_desc): Use it. (needs_frame_frame_cfa): New function. (dwarf2_loc_desc_needs_frame): Use it. * dwarf2expr.h (struct dwarf_expr_context) <get_frame_cfa>: New field. * dwarf2expr.c (execute_stack_op) <DW_OP_call_frame_cfa>: New case. * dwarf2-frame.h (dwarf2_frame_cfa): Declare. * dwarf2-frame.c (no_get_frame_cfa): New function. (execute_stack_op): Use it. (dwarf2_frame_cfa): New function. gdb/testsuite * gdb.dwarf2/callframecfa.exp: New file. * gdb.dwarf2/callframecfa.S: New file.
2009-08-28gdb/Jan Kratochvil2-0/+138
Support constant DW_AT_data_member_location by GCC PR debug/40659. * dwarf2read.c (dwarf2_add_field <DW_TAG_member> <DW_AT_data_member_location>): Initialize BYTE_OFFSET to 0 by default. Explicitly check if attr_form_is_block. (dwarf2_add_field <DW_TAG_inheritance> <DW_AT_data_member_location>) (read_common_block <DW_AT_data_member_location>): New variable byte_offset. Fix crash on non-DW_BLOCK ATTR values. gdb/testsuite/ Support constant DW_AT_data_member_location by GCC PR debug/40659. * gdb.dwarf2/dw2-inheritance.exp, gdb.dwarf2/dw2-inheritance.S: New.
2009-06-30ChangeLog:Paul Pluzhnikov2-0/+87
2009-06-30 Paul Pluzhnikov <ppluzhnikov@google.com> gdb/10275 * dwarf2-frame.c (dwarf2_frame_state): Move cfa_offset, cfa_reg, cfa_how and cfa_exp into regs and adjust users. testsuite/ChangeLog: 2009-06-30 Paul Pluzhnikov <ppluzhnikov@google.com> gdb/10275 * gdb.dwarf2/dw2-restore.{S,exp}: New test.
2009-05-21gdb/Jan Kratochvil2-5/+28
Fix parsing DW_AT_const_value using DW_FORM_string. * dwarf2read.c (dwarf2_const_value <DW_FORM_string>): New. gdb/testsuite/ * gdb.dwarf2/dw2-strp.exp (p a_string2, ptype a_string2): New. * gdb.dwarf2/dw2-strp.S (a_string2): New.
2009-04-02gdb/Jan Kratochvil3-0/+258
* dwarf2read.c (new_symbol <DW_TAG_variable> <!DW_AT_location> <DW_AT_external>): Create the symbol in local scope. * symtab.h (cu->list_in_scope <LOC_UNRESOLVED>): New comment part. gdb/testsuite/ * gdb.dwarf2/dw2-unresolved-main.c, gdb.dwarf2/dw2-unresolved.S, gdb.dwarf2/dw2-unresolved.exp: New.
2009-03-31gdbTom Tromey1-1/+17
2009-03-31 Daniel Jacobowitz <dan@codesourcery.com> Keith Seitz <keiths@redhat.com> Jan Kratochvil <jan.kratochvil@redhat.com> PR gdb/6817 * Makefile.in (dbxread.o): Update. * dbxread.c (read_dbx_symtab): Use cp_canonicalize_string. * dwarf2read.c (GDB_FORM_cached_string): New. (read_partial_die): Use dwarf2_canonicalize_name. (dwarf2_linkage_name): Use dwarf2_name. (dwarf2_canonicalize_name): New. (dwarf2_name): Use dwarf2_canonicalize_name. (dwarf_form_name, dump_die): Handle GDB_FORM_cached_string. * stabsread.c (define_symbol, read_type): Use cp_canonicalize_string. * symtab.c (lookup_symbol_in_language): Canonicalize input before searching. * cp-name-parser.y: operator() requires two parameters, according to libiberty. * minsyms.c (lookup_minimal_symbol): Canonicalize input before searching. * NEWS: Update. gdb/testsuite 2009-03-31 Daniel Jacobowitz <dan@codesourcery.com> Jan Kratochvil <jan.kratochvil@redhat.com> PR gdb/931 * gdb.cp/gdb1355.exp (f_li, f_lui, f_si, f_sui): Allow canonical output. * gdb.cp/templates.exp: Allow canonical output. Remove KFAILs for gdb/931. * dw2-strp.S (DW_AT_language): Change to C++. (DW_TAG_variable (name ""), Abbrev code 7, .Lemptyname): New.
2009-03-26gdb/Jan Kratochvil3-119/+347
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.
2009-01-03 Updated copyright notices for most files.Joel Brobecker27-28/+28
2008-10-06 * dwarf2read.c (offset_in_cu_p): New function.Doug Evans3-2/+161
(find_partial_die,follow_die_ref): Use it. * gdb.dwarf2/dw2-cu-size.exp: New file. * gdb.dwarf2/dw2-cu-size.S: New file. * gdb.dwarf2/dw2-intercu.S (.Ltype_int_in_cu2): Renamed from .Ltype_int for clarity.
2008-07-27 * gdb.dwarf2/dw2-compressed.S: Also define __start.Daniel Jacobowitz1-0/+2
2008-06-05 * dw2-ref-missing-frame.S, dw2-ref-missing-frame.exp: New files.Jan Kratochvil2-0/+363
2008-05-04 gdb/Jan Kratochvil4-3/+106
* Makefile.in: Update dependencies. * dwarf2read.c: Include "addrmap.h" (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET. (dwarf2_ranges_read): New prototype. (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP. Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on HAS_RANGES_OFFSET, otherwise add there the contiguous range. (dwarf2_ranges_read): New parameter RANGES_PST, update the function comment for it. Add the found ranges to RANGES_PST. New variable BASEADDR, initialize it the common way. (dwarf2_get_pc_bounds): Update the caller for the new parameter. (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and HAS_RANGES_OFFSET for the later processing. * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP. * symtab.c: Include "addrmap.h" (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP. Move the psymtab locator into ... (find_pc_sect_psymtab_closer): ... a new function. gdb/testsuite/ * gdb.dwarf2/dw2-ranges.S: Merge the secondary section with `.fini'. * gdb.dwarf2/dw2-ranges.exp: Compile also `dw2-ranges2.S' and `dw2-ranges3.S' and test also their MAIN2, FUNC2 and MAIN3 symbols. * gdb.dwarf2/dw2-ranges2.S, gdb.dwarf2/dw2-ranges3.S: New files.
2008-04-30 * gdb.dwarf2/dw2-strp.S: Replace .long by .4byte and .value byPedro Alves1-12/+12
.2byte.
2008-04-25gdb/Pedro Alves2-0/+194
* dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp. gdb/testsuite/ * gdb.dwarf2/dw2-strp.S, gdb.dwarf2/dw2-strp.exp: New files.
2008-04-19 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.Craig Silverstein2-0/+270
* config.in, configure: Regenerate. * dwarf2read.c: Include zlib.h if present. Modified *_SECTION macros. (section_is_p): New. (dwarf2_locate_sections): Use section_is_p instead of strcmp (dwarf2_resize_section): New. to determine whether a given section has a given name. (zlib_decompress_section): New. (dwarf2_read_section): Read the compressed section if present in the binary. * testsuite/gdb.dwarf2/dw2-compressed.S: New file. * testsuite/gdb.dwarf2/dw2-compressed.exp: New file. * MAINTAINERS: Added myself to section Write After Approval.
2008-04-15 * gdb.dwarf2/dw2-ranges.S: New stub `.file' directive.Jan Kratochvil1-0/+3
2008-01-01 Updated copyright notices for most files.Daniel Jacobowitz18-18/+18
2007-11-25gdb/Jan Kratochvil2-0/+89
* dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing code with its variables OBJFILE, CU_HEADER and OBFD into ... (dwarf2_ranges_read): ... a new function. (read_partial_die): Implemented the parsing of `DW_AT_ranges'. gdb/testsuite/ * gdb.dwarf2/dw2-ranges.S, gdb.dwarf2/dw2-ranges.exp: New files.
2007-08-23 Switch the license of all .exp files to GPLv3.Joel Brobecker14-75/+49
Switch the license of all .f and .f90 files to GPLv3. Switch the license of all .s and .S files to GPLv3.
2007-08-23 Switch the license of all .c files to GPLv3.Joel Brobecker1-5/+3
Switch the license of all .h files to GPLv3. Switch the license of all .cc files to GPLv3.
2007-03-29 * gdb.dwarf2/dw2-noloc.S: New file.Joel Brobecker2-0/+261
* gdb.dwarf2/dw2-noloc.exp: New file.
2007-02-28Move dw2-producer.* from gdb.arch to gdb.dwarf2 where it was supposed toJoel Brobecker2-0/+253
be checked in.
2007-01-31 * gdb.dwarf2/dup-psym.S: Use .2byte/.4byte instead of .short/.intAndreas Schwab2-29/+29
in the dwarf sections. * gdb.dwarf2/mac-fileno.S: Likewise.
2007-01-27 * gdb.dwarf2/dw2-basic.S: Use .2byte/.4byte/.8byte instead ofAndreas Schwab3-46/+46
.short/.int/.quad in the dwarf sections. * gdb.dwarf2/dw2-intercu.S: Likewise. * gdb.dwarf2/dw2-intermix.S: Likewise.
2007-01-09Copyright updates for 2007.Daniel Jacobowitz12-13/+12
2006-07-04 * gdb.base/huge.c: Allow CRASH_GDB to be set from commandNathan Sidwell1-7/+7
line. * gdb.base/huge.exp: Loop over compilation to find a size that is acceptable. * gdb.base/remote.exp: Correct expected strings. * gdb.dwarf2/mac-fileno.S: Avoid # comments.
2005-11-042005-11-03 Jim Blandy <jimb@redhat.com>Elena Zannoni2-0/+272
Checked in by Elena Zannoni <ezannoni@redhat.com> * gdb.dwarf2/mac-fileno.exp, gdb.dwarf2/mac-fileno.S: New tests.
2005-03-09 * gdb.dwarf2/dup-psym.S: New file.Joel Brobecker2-0/+260
* gdb.dwarf2/dup-psym.exp: New testcase.
2005-02-11* gdb.dwarf2/dw2-intermix.exp, gdb.dwarf2/dw2-intermix.S: NewMark Kettenis2-0/+255
files.
2005-02-11* gdb.dwarf2/dw2-basic.exp, gdb.dwarf2/dw2-intercu.exp: Run testsMark Kettenis2-6/+6
on *-*-openbsd*. Correctly match whitespace in regukar expressions.
2004-10-13 * dw2-intercu.S, dw2-intercu.exp: New files.Daniel Jacobowitz2-0/+289
2004-10-12 * gdb.dwarf2/dw2-basic.exp: Run on Hurd also.Daniel Jacobowitz1-0/+1
2004-10-12 * configure.in: Add gdb.dwarf2.Daniel Jacobowitz5-0/+325
* configure: Regenerated. * Makefile.in: Add gdb.dwarf2. * gdb.dwarf2/Makefile.in, gdb.dwarf2/dw2-basic.S, gdb.dwarf2/dw2-basic.exp, gdb.dwarf2/main.c, gdb.dwarf2/file1.txt: New files.