gdb/
[binutils-gdb.git] / gdb / ChangeLog
index 009c16a52bcc93fdc9e139cb7bab1b7bb1862b5d..b18b598254eee119dd295c9ffdc4de1d14236e21 100644 (file)
@@ -1,3 +1,174 @@
+2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * c-typeprint.c (c_type_print_base): For no fields check include also
+       TYPE_TYPEDEF_FIELD_COUNT.  Print new typedefs section.
+       * dwarf2read.c (struct typedef_field_list)
+       (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
+       (dwarf2_add_typedef): New.
+       (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
+       Copy also FI.TYPEDEF_FIELD_LIST.
+       * gdbtypes.h (struct typedef_field)
+       (struct cplus_struct_type) <typedef_field, typedef_field_count>
+       (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
+       (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
+
+2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * cp-namespace.c (cp_lookup_nested_type): New variable
+       concatenated_name.  Turn the current return condition into a reverse
+       one.  Call also lookup_static_symbol_aux on the constructed qualified
+       name.
+       * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
+       other files into a called ...
+       (lookup_static_symbol_aux): ... new function here.
+       * symtab.h (lookup_static_symbol_aux): New prototype.
+       * valops.c (value_maybe_namespace_elt): Call also
+       lookup_static_symbol_aux if we failed otherwise.
+
+2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix PR c++/11703 and PR gdb/1448.
+       * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
+       FIRST_ITER check.
+
+2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix modification of cplus_struct_default.
+       * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
+       Call ALLOCATE_CPLUS_STRUCT_TYPE.
+       * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
+
+2010-06-28  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Add entry announcing the python directory.
+
+2010-06-28  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (read_structure_type): Allocate null cleanup later.
+
+2010-06-28  Doug Evans  <dje@google.com>
+
+       * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
+       All callers updated.
+
+2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
+       obstack_begin after each obstack_free.
+
+2010-06-27  Doug Evans  <dje@google.com>
+
+       * value.c (value_static_field): Use `switch' instead of `if'.
+       Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
+
+       * valops.c (search_struct_field): Fix typo in error message.
+
+2010-06-26  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * dwarf2expr.c (execute_stack_op): Place preprocessor
+       directives at the start of the source line.
+
+2010-06-25  Paul Hilfinger  <hilfinger@adacore.com>
+
+       * defs.h (make_command_stats_cleanup): Declare.
+       (set_display_time): Declare.
+       (set_display_space): Declare.
+       * event-top.c (command_handler): Use make_command_stats_cleanup.
+       * main.c (display_time, display_space): Move definitions to utils.c.
+       (captured_main): Use make_command_stats_cleanup to get start-up
+       statistics.
+       Use set_display_time and set_display_space for processing OPT_STATISTICS
+       case.
+       * maint.c (maintenance_time_display): Use set_display_time.
+       (maintenance_space_display): Use set_display_space.
+       * top.c (execute_command): Remove obsolete 'maint time' code.
+       (command_loop): Use make_command_stats_cleanup.
+       * utils.c (struct cmd_stats): Structure for storing initial time
+       and space usage.
+       (display_time, display_space): Move definitions here from utils.c.
+       (set_display_time): New function.
+       (set_display_space): New function.
+       (make_command_stats_cleanup): New function.
+       (report_command_stats): New auxiliary function for
+       make_command_stats_cleanup.
+
+2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
+       hosts where CORE_ADDR is long long.
+
+2010-06-25  Tom Tromey  <tromey@redhat.com>
+
+       PR python/10808:
+       * python/python.c (execute_gdb_command): Add keywords.  Accept
+       "to_string" argument.
+       (struct restore_ui_file_closure): New.
+       (restore_ui_file): New function.
+       (make_cleanup_restore_ui_file): Likewise.
+       (GdbMethods) <execute>: Update.
+
+2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
+       during inferior call stack frame setup.
+
+2010-06-25  Ken Werner  <ken.werner@de.ibm.com>
+
+       * solib-spu.c: Include "exception.h".
+       (ocl_program_data_key): New variable.
+       (append_ocl_sos): New function.
+       (ocl_enable_break): Likewise.
+       (spu_current_sos): Call append_ocl_sos.
+       (spu_solib_loaded): Call ocl_enable_break.
+       (_initialize_spu_solib): Register ocl_program_data_key.
+
+2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * cp-support.c (reset_directive_searched): New function.
+       (make_symbol_overload_list_using): Prevent recursive calls.
+
+2010-06-25  Phil Muldoon  <pmuldoon@redhat.com>
+
+       * printcmd.c (print_variable_and_value): Print error message on
+       caught exception.
+
+2010-06-25  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
+       of stack values.
+       (struct dwarf_expr_piece): Rename "expr" member to "mem".  Add new
+       "value" member.
+       (dwarf_expr_push): Change input type to ULONGEST.
+       (dwarf_expr_fetch): Change return type to ULONGEST.
+       (dwarf_expr_fetch_address): Add prototype.
+       (dwarf2_read_address): Remove prototype.
+       * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
+       Truncate stack values to ctx->addr_size bytes.
+       (dwarf_expr_fetch): Change return value to ULONGEST.
+       (dwarf_expr_fetch_address): New function.
+       (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
+       when appropriate.  Update for struct dwarf_expr_piece changes.
+       (dwarf2_read_address): Remove.
+       (unsigned_address_type): Remove.
+       (signed_address_type): Remove.
+       (execute_stack_op): Use dwarf_expr_fetch_address instead of
+       dwarf_expr_fetch when appropriate.  Use ULONGEST as type of stack
+       values.  Perform operations on ULONGEST instead of on GDB values,
+       sign-extending from ctx->addr_size bytes as needed.  Read DW_OP_addr
+       values and DW_OP_deref results as unsigned integers.
+       * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
+       changes.
+       (write_pieced_value): Likewise.
+       (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
+       dwarf_expr_fetch when appropriate.
+       (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
+       * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
+       instead of dwarf_expr_fetch when appropriate.
+
+2010-06-25  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
+
 2010-06-24  Joel Brobecker  <brobecker@adacore.com>
 
        * python/python.c (_initialize_python): Add new "constant"
 
        PR gdb/9067
        * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
-       cp_print_static_field)  Fix use of obstacks.
+       (cp_print_static_field)  Fix use of obstacks.
 
 2010-02-08  Pedro Alves  <pedro@codesourcery.com>