* gdb-add-index.sh: Really remove.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index f66c343b159b4b4a86224555a356c9c71f4131bc..5c1eb03a319b5f8d286e5b933ee137351023b73b 100644 (file)
@@ -1,3 +1,489 @@
+2010-11-16  Tom Tromey  <tromey@redhat.com>
+
+       * gdb-add-index.sh: Really remove.
+
+2010-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup.
+       * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
+       (init_one_comp_unit): ... this one.
+       (prepare_one_comp_unit): New prototype.
+       (dw2_require_line_header, process_psymtab_comp_unit): Use
+       init_one_comp_unit.
+       (process_psymtab_comp_unit): Use prepare_one_comp_unit.
+       (load_partial_comp_unit): Remove variable attr.  Use
+       init_one_comp_unit with xmalloc.  Use prepare_one_comp_unit.
+       (load_full_comp_unit): Use init_one_comp_unit with xmalloc.  Use
+       prepare_one_comp_unit.
+       (read_signatured_type): Remove variable attr.  Use init_one_comp_unit.
+       Use prepare_one_comp_unit.
+       (alloc_one_comp_unit): Rename to ...
+       (init_one_comp_unit): ... here and remove there calloc, new parameter
+       cu.
+       (prepare_one_comp_unit): New function.
+
+2010-11-14  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
+       possible used of uninitialized variable.
+
+2010-11-12  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
+       (rs6000_gdbarch_init): Call it.
+
+2010-11-12  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
+       instructions if debugging an E500 binary.
+
+2010-11-12  Tom Tromey  <tromey@redhat.com>
+
+       * varobj.c (value_get_print_value): Rearrange.  Pass stream to
+       apply_varobj_pretty_printer.
+       * c-lang.c: Include exceptions.h.
+       (c_get_string): Throw MEMORY_ERROR when appropriate.
+       * python/py-prettyprint.c (enum string_repr_result): New.
+       (print_stack_unless_memory_error): New function.
+       (print_string_repr): Change return type.  Use
+       print_stack_unless_memory_error.
+       (print_children): Use print_stack_unless_memory_error.
+       (apply_val_pretty_printer): Update.  Don't print children if
+       string representation threw an exception.
+       (apply_varobj_pretty_printer): Add 'stream' argument.  Use
+       print_stack_unless_memory_error.
+       * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
+       globals.
+       (_initialize_python): Initialize them.
+       * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
+       gdbpy_convert_exception.
+       (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
+       (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
+       (gdbpy_convert_exception): Declare.
+       (apply_varobj_pretty_printer): Update.
+       * python/py-utils.c (gdbpy_convert_exception): New function.
+
+2010-11-12  Marc Khouzam  <marc.khouzam@ericsson.com>
+
+       * mi/mi-main.c (mi_cmd_target_detach): Accept new
+       thread-group id format.
+
+2010-11-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * spu-tdep.c (spu_catch_start): Fix compilation error typo.
+
+2010-11-11  Phil Muldoon  <pmuldoon@redhat.com>
+
+       * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
+       NULL.
+       (BPPY_SET_REQUIRE_VALID): Ditto.
+       (bpnum_is_valid): Delete function.
+       (bppy_get_visibility): New function.
+       (bppy_new): Parse for, and validate internal keyword.  Pass
+       internal keyword to breakpoint or watchpoint functions.
+       (build_bp_list): New function.
+       (gdbpy_breakpoints): Rewrite.  Use build_bp_list and
+       iterate_over_breakpoints.
+       (gdbpy_breakpoint_created): Rewrite.  Do not store breakpoints in a
+       look-aside vector.
+       (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
+       to internal breakpoint chain.
+
+       * breakpoint.c (set_breakpoint_number): New function.
+       (breakpoint_1): Check if breakpoint number is more than zero.
+       (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
+       (create_breakpoint_sal): Take a new parameter called internal.
+       Call set_breakpoint_number with internal parameter.  Do not
+       mention internal breakpoints.  All callers updated.
+       (create_breakpoint): Ditto.
+       (create_breakpoints_sal): Ditto.
+       (watch_command_1): Ditto.
+       (watch_command_wrapper): Take a new parameter called internal.
+       All callers updated.
+       (rwatch_command_wrapper): Ditto.
+       (awatch_command_wrapper): Ditto.
+       (save_breakpoints): Update breakpoint save condition check.
+       (iterate_over_breakpoints): New function.
+       * breakpoint.h: Add conditional python includes.  Add py_bp_object
+       and comment to struct breakpoint.  Update all callers.
+       * defs.h: Add PyObject definition for GDB builds without Python.
+
+2010-11-10  Doug Evans  <dje@google.com>
+
+       * python/lib/gdb/command/pretty_printers.py
+       (do_enable_pretty_printer_1): Handle printer.subprinters is None.
+
+       * value.c (set_value_enclosing_type): Renamed from
+       value_change_enclosing_type.  All callers updated.
+       * value.h (set_value_enclosing_type): Update.
+       * valops.c (value_full_object): Always return a copy if we need to
+       make changes to the input value.
+
+2010-11-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * breakpoint.c (watch_command_1): Get a pointer of the lazy
+       version of the expression's value, even if reading the value from
+       memory fails.  When creating a -location watchpoint, get the
+       value's address from the lazy value pointer.
+
+2010-11-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * infrun.c (restore_inferior_thread_state): Use
+       discard_inferior_thread_state to free the data.
+       (discard_inferior_thread_state): xfree also siginfo_data.
+
+2010-11-05  Doug Evans  <dje@google.com>
+
+       Make gdb.parameter("directories") work.
+       New command "set directories".
+       * NEWS: Document them.
+       * source.c (set_directories_command): New function.
+       (show_directories_1): Renamed from show_directories.
+       All callers updated.
+       (show_directories_command): New function.
+       (_initialize_source): Install "directories" as a set/show
+       variable instead of just a show command.
+
+2010-11-05  Ken Werner  <ken.werner@de.ibm.com>
+
+       * NEWS: Mention OpenCL C language support.
+       * Makefile.in (SFILES): Add opencl-lang.c.
+       (COMMON_OBS): Add opencl-lang.o.
+       * opencl-lang.c: New File
+       * defs.h (enum language): Add language_opencl.
+       * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
+       IBM XL C OpenCL compiler.
+       * c-lang.h: Include "parser-defs.h".
+       (evaluate_subexp_c): Declare.
+       * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
+       (c_op_print_tab): Add declaration.
+       * eval.c (binop_promote): Handle language_opencl.
+       * c-exp.y: Lookup the primitive types instead of referring to the
+       builtins.
+
+2010-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix configure --enable-plugins --without-python.
+       * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
+       * configure: Regenerate.
+
+2010-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * solib.c (solib_read_symbols): Call exception_fprintf even without
+       FROM_TTY.  Print also so->so_name.
+
+2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
+
+       * gdbtypes.h (struct rank): Created subrank.
+       * gdbtypes.c: Initialized subrank for all
+       'BADNESS' constants.
+       (distance_to_ancestor): New function.
+       (is_ancestor): Use distance_to_ancestor.
+       (is_public_ancestor): Ditto.
+       (sum_ranks): Handle subrank.
+       (compare_ranks): Ditto.
+       (rank_one_type): Subrank base conversions.
+
+2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
+
+       * gdbtypes.h: Create struct rank.
+       Convert all 'BADNESS' macros to const struct rank declarations.
+       (sum_ranks): New function.
+       (compare_ranks): New function.
+       * valops.c (find_oload_champ): Updated.
+       (classify_oload_match): Use compare_ranks.
+       Improved comments.
+       (compare_parameters): Use compare_ranks.
+       * gdbtypes.c: Initialize 'BADNESS' constants.
+       (sum_ranks): New function.
+       (compare_ranks): New function.
+       (compare_badness): Use compare_ranks.
+       (rank_function): Use global constants instead of literals.
+       (rank_one_type): Ditto.
+       Return struct rank.
+       Use sum_ranks.
+
+2010-11-04  Doug Evans  <dje@google.com>
+
+       * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
+       (find_pretty_printer): Fix comments.
+
+2010-11-04  Hui Zhu  <teawater@gmail.com>
+
+       * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
+
+2010-11-03  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
+       and `len' declaration and computation inside block where they
+       are being used.
+
+2010-11-03  Joel Brobecker  <brobecker@adacore.com>
+
+       * valprint.c (val_print_array_elements): Put back handling of
+       empty arrays.
+
+2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
+
+       * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
+       DIE and set the length of the type.
+       * gdbtypes.h (get_array_bounds): Move here from valprint.h.
+       * gdbtypes.c (get_array_bounds): Move here from valprint.c and
+       return 0 if the corresponding bounds of the type are undefined.
+       * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
+       * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
+       (val_print_array_elements): Use get_array_bounds to compute the number
+       of array elements instead of dividing the length of the array by the
+       length of the element types.
+       * valarith.c (vector_binop): Likewise.
+       * valops.c (value_cast): Likewise.
+       * c-valprint.c (c_val_print): Likewise.
+       * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
+
+2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
+
+       * valarith.c (value_pos, value_neg, value_complement): Handle
+       vector types.
+       * valops.c (value_one): Likewise.
+
+2010-11-03  Ken Werner  <ken.werner@de.ibm.com>
+
+       * value.h (value_non_lval): Declare.
+       * value.c (value_non_lval): New function.
+       * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
+       UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
+       non-lvalue.
+
+2010-11-02  Doug Evans  <dje@google.com>
+
+       New python module gdb.printing, and new commands info pretty-printer,
+       enable pretty-printer, disable pretty-printer.
+       * NEWS: Mention them.
+       * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
+       gdb/command/__init__.py, gdb/command/pretty_printers.py.
+       * python/lib/gdb/__init__.py: Install pretty-printer commands.
+       * python/lib/gdb/printing.py: New file.
+       * python/lib/gdb/command/__init__.py: New file.
+       * python/lib/gdb/command/pretty_printers.py: New file.
+
+2010-11-02  Tom Tromey  <tromey@redhat.com>
+
+       * NEWS: Mention Guile removal.
+       * defs.h (enum language) <language_scm>: Remove.
+       * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
+       scm-valprint.c.
+       (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
+       (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
+       * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
+       Remove.
+
+2010-11-02  Doug Evans  <dje@google.com>
+
+       * top.c: #include "python/python.h".
+       (gdb_init): Add a comment regarding initialize_all_files.
+       Call finish_python_initialization at the end.
+       * python/python.h (finish_python_initialization): Declare.
+       * python/python.c (finish_python_initialization): New function.
+       (_initialize_python): Move python-implemented initialization there
+       and call it.
+       (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
+
+2010-11-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Revert:
+       2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
+                   Pedro Alves  <pedro@codesourcery.com>
+       * gdbthread.h (currently_stepping): New declaration.
+       * infrun.c (currently_stepping): Remove the forward declaration.
+       (currently_stepping): Make it global.
+       * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
+       variables tp and step, initialized them.  Pass STEP to to_resume.
+       Print also possibly "PTRACE_SINGLESTEP" if STEP.  Initialize LP->STEP.
+       * remote.c (currently_stepping_callback): New.
+       (remote_vcont_resume)
+       <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
+       New variable tp.  Call currently_stepping_callback and step such
+       thread.
+
+2010-11-01  Hui Zhu  <teawater@gmail.com>
+
+       * tracepoint.c (tfile_xfer_partial): Change lma to vma.
+
+2010-10-28  Hui Zhu  <teawater@gmail.com>
+
+       * tracepoint.c (trace_save): Change utp->actions to
+       utp->step_actions.
+
+2010-10-26  Joel Brobecker  <brobecker@adacore.com>
+
+       * (_FILE_OFFSET_BITS): Fix typo in comment.
+
+2010-10-26  Joel Brobecker  <brobecker@adacore.com>
+
+       * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
+       (PyEval_InitThreads): Remove duplicate. Define as nothing.
+       (PyEval_ReleaseLock): Define as nothing.
+
+2010-10-26  Joel Brobecker  <brobecker@adacore.com>
+
+       * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
+       by call to FILENAME_CMP.
+
+2010-10-26  Joel Brobecker  <brobecker@adacore.com>
+
+       * dictionary.c (dict_hash): Move assignment out of if condition.
+
+2010-10-22  Jie Zhang  <jie@codesourcery.com>
+
+       * Makefile.in (install): Remove dependency of install-only and
+       recursively invoke make for install-only.
+       * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
+       (install): Pass FLAGS_TO_PASS when recursively make install-only.
+
+2010-10-20  Hui Zhu  <teawater@gmail.com>
+
+       * tracepoint.c (tfile_get_traceframe_address): Call
+       extract_signed_integer.
+       (tfile_trace_find): Call extract_signed_integer and
+       extract_unsigned_integer.  Change data_size to unsigned int.
+       (tfile_fetch_registers): Call extract_unsigned_integer.
+       (tfile_xfer_partial): Ditto.
+       (tfile_get_trace_state_variable_value): Call
+       extract_signed_integer and extract_unsigned_integer.
+
+2010-10-20  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * remote.c (remote_get_threadlist): If we got empty
+       response, bail out immediately, and don't emit any
+       warnings.
+
+2010-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
+       for "mov pc, REG" as well.
+       (thumb_instruction_changes_pc): Likewise.
+
+2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>
+
+        PR C++/11500:
+       * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
+       * eval.c (evaluate_subexp_standard): Check for overload of
+       'operator->'.
+       * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
+       (value_x_unop): Ditto.
+       * valops.c: Include "exceptions.h".
+       (find_overload_match): Throw NOT_FOUND_ERROR.
+       (value_struct_elt): Ditto.
+
+2010-10-19  Tom Tromey  <tromey@redhat.com>
+
+       * python/py-cmd.c (cmdpy_function): Unreference exception state.
+
+2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>
+
+       * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
+       * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
+       for conversion.
+       Make all other conversions illegal.
+
+2010-10-18  Doug Evans  <dje@google.com>
+
+       * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
+       assumptions of when this case happens.  Print "<unnamed typedef>".
+
+2010-10-18  Tom Tromey  <tromey@redhat.com>
+
+       * valprint.c (val_print_string): Pass 'encoding' to
+       LA_PRINT_STRING.
+
+2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix the `stopped language detection' testcase for gcc-4.5.
+       * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
+       * symfile.c (set_initial_language): Move variable filename to a more
+       inner block.  Prefer LANGUAGE_OF_MAIN.
+       * symtab.c (language_of_main): New variable.
+       (set_main_name): Always reset LANGUAGE_OF_MAIN.
+       * symtab.h (language_of_main): New declaration.
+
+2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Pedro Alves  <pedro@codesourcery.com>
+
+       * gdbthread.h (currently_stepping): New declaration.
+       * infrun.c (currently_stepping): Remove the forward declaration.
+       (currently_stepping): Make it global.
+       * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
+       variables tp and step, initialized them.  Pass STEP to to_resume.
+       Print also possibly "PTRACE_SINGLESTEP" if STEP.  Initialize LP->STEP.
+       * remote.c (currently_stepping_callback): New.
+       (remote_vcont_resume)
+       <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
+       New variable tp.  Call currently_stepping_callback and step such
+       thread.
+
+2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * infrun.c (follow_exec): Replace symbol_file_add_main by
+       symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
+       breakpoint_re_set.
+       * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
+       clear_symtab_users.
+       * objfiles.c (free_all_objfiles): Likewise.
+       * remote-m32r-sdi.c (m32r_load): Likewise.
+       * solib-som.c (som_solib_create_inferior_hook): Likewise.
+       * symfile.c (new_symfile_objfile): New comment for add_flags.  Call
+       clear_symtab_users with ADD_FLAGS.
+       (reread_symbols): Use parameter 0 for clear_symtab_users.
+       (clear_symtab_users): New parameter add_flags.  Do not call
+       breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
+       (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
+       * symtab.h (clear_symtab_users): New parameter add_flags.
+
+2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix GCC false warning.
+       * varobj.c (value_get_print_value) <str_addr>: Initialize it.
+
+2010-10-16  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * p-typeprint.c (pascal_type_print_method_args): Fix problem in
+       display of type of method arguments.
+
+2010-10-15  Tom Tromey  <tromey@redhat.com>
+
+       PR python/11948:
+       * varobj.c (value_get_print_value): Use val_print_string to print
+       lazy strings.
+       * python/py-prettyprint.c (print_string_repr): Use
+       val_print_string to print lazy strings.  Fix cleanup logic.
+       (print_children): Likewise.
+       * python/python-internal.h (gdbpy_extract_lazy_string): Update.
+       * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
+       Change return type to 'void', add 'addr' argument.
+       * value.h (val_print_string): Update.
+       * valprint.c (val_print_string): Add 'encoding' argument.
+       * printcmd.c (print_formatted): Update.
+       * p-valprint.c (pascal_val_print): Update.
+       * m2-valprint.c (print_unpacked_pointer): Update.
+       (m2_print_array_contents): Likewise.
+       * jv-valprint.c (java_value_print): Update.
+       * f-valprint.c (f_val_print): Update.
+       * c-valprint.c (c_val_print): Update.
+       * auxv.c (fprint_target_auxv): Update.
+
+2010-10-15  Doug Evans  <dje@google.com>
+           Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       PR exp/12117
+       * gdbtypes.c (check_typedef): Clean up function comment.
+       Keep track of instance flags as we strip typedefs and create a new
+       type to preserve them if necessary.
+       * gdbtypes.h (type) <instance_flags>: Extend the comment.
+
+2010-10-15  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
+
 2010-10-14  Sami Wagiaalla  <swagiaal@redhat.com>
 
        * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
This page took 0.029781 seconds and 4 git commands to generate.