* gdb-add-index.sh: Really remove.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index dfbae8b08b1e11904f51e74d9975f0e31206c10e..5c1eb03a319b5f8d286e5b933ee137351023b73b 100644 (file)
@@ -1,3 +1,880 @@
+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.
+       * gdbtypes.c (rank_one_type): Move type comparison code out of here
+       to...
+       (types_equal): ...here. And changed it as follows:
+       Outside of typedefs type must be of the same TYPE_CODE.
+       When compairing two pointers or references they are equal if their
+       targets are equal.
+       Correct pointer conversions.
+
+2010-10-14  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * p-lang.c (is_pascal_string_type): Avoid crashes on structures
+       having fields without names.
+
+2010-10-13  Tom Tromey  <tromey@redhat.com>
+
+       * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
+
+2010-10-13  Doug Evans  <dje@google.com>
+
+       New python module gdb.types.
+       * NEWS: Document it.
+       * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
+       * python/lib/gdb/types.py: New file.
+
+       * c-typeprint.c: Whitespace cleanup.
+       (cp_type_print_method_args): Remove unnecessary forward decl.
+       (cp_type_print_derivation_info): Ditto.
+       (c_type_print_varspec_prefix): Mark as static at definition.
+       (c_type_print_modifier): Fix arg descriptions.
+
+2010-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * python/py-breakpoint.c (bppy_set_condition): New comment.
+       * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
+       failed PyUnicode_Decode.
+       (cmdpy_completer): Skip element for failed
+       python_string_to_host_string.
+       (cmdpy_init): Return -1 on failed python_string_to_host_string.
+       * python/py-frame.c (frapy_read_var): Extend the function comment.
+       * python/py-function.c (fnpy_init): Return -1 on failed
+       python_string_to_host_string.
+       * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
+       the function comment.
+       (infpy_search_memory): Extend the function comment.  Remove the
+       PyErr_SetString call on already set error state.
+       * python/py-param.c (set_parameter_value): Extend the function
+       comment.  Return -1 on failed python_string_to_host_string, twice.
+       (set_attr): Extend the function comment.
+       (compute_enum_values): Extend the function comment.  New variable
+       back_to.  Protect self->enumeration by BACK_TO cleanups.  Return 0 on
+       failed python_string_to_host_string.
+       (get_doc_string): Call gdbpy_print_stack on failed
+       python_string_to_host_string.
+       (parmpy_init): Extend the function comment.
+       * python/py-prettyprint.c (pretty_print_one_value): Likewise.
+       (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
+       failed python_string_to_host_string.
+       * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
+       (valpy_binop, valpy_richcompare): Extend the function comment.
+       * python/python.c
+       (struct python_env) <error_type, error_value, error_traceback>: New
+       fields.
+       (restore_python_env): Handle PyErr_Occurred.  Call PyErr_Restore.
+       (ensure_python_env): Call PyErr_Fetch.
+       * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
+       failed convert_value_from_python.
+       (value_get_print_value): Call gdbpy_print_stack on failed
+       python_string_to_target_python_string.
+
+2010-10-12  Tom Tromey  <tromey@redhat.com>
+
+       * python/py-prettyprint.c (search_pp_list): Fix error checking.
+
+2010-10-12  Sami Wagiaalla  <swagiaal@redhat.com>
+
+       * gdbtypes.c (do_is_ancestor): New function.
+       (is_ancestor): Use do_is_ancestor.
+       (is_public_ancestor): Use do_is_ancestor.
+
+2010-10-12  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * ser-go32.c (struct dos_ops): Add missing fdopen field.
+
+2010-10-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
+
+       * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
+
+2010-10-11  Doug Evans  <dje@google.com>
+
+       * c-typeprint.c (c_type_print_modifier): Add note that this prints
+       the address space id too.
+
+2010-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix attaching to re-prelinked executables on ppc64.
+       * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
+       initialize it, try to adjust FILESZ field by it.
+
+2010-10-08  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * tracepoint.c (merge_uploaded_trace_state_variables): Only print
+       messages if info_verbose.
+
+2010-10-08  Ken Werner  <ken.werner@de.ibm.com>
+
+       * valops.c (value_cast): Handle vector types.
+       * valarith.c (value_binop): Widen scalar to vector if appropriate.
+
+2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * arm-tdep.c (thumb_expand_immediate): New function.
+       (thumb_instruction_changes_pc): Likewise.
+       (thumb2_instruction_changes_pc): Likewise.
+       (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
+       prologue parsing.  Improved support for optimized code.
+       (thumb_scan_prologue): Do not reply on line-number information,
+       use same heuristics as arm_scan_prologue insead.
+       (skip_prologue_function): Accept functions
+       "__tls_get_addr" and "__aeabi_read_tp".
+
+2010-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
+            Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * arm-tdep.c (thumb_in_function_epilogue_p)
+       (arm_in_function_epilogue_p): New.
+       (arm_gdbarch_init): Install arm_in_function_epilogue_p as
+       gdbarch_in_function_epilogue_p callback.
+
+2010-10-07  Doug Evans  <dje@google.com>
+
+       * cc-with-index.sh (output_file): Default to a.out.
+
+       * dwarf2read.c (mapped_index): Rename member index_table to
+       symbol_table and index_table_slots to symbol_table_slots.
+       All uses updated.
+       (create_symbol_hash_table): Renamed from create_index_table.
+       All callers updated.
+       (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
+       (write_hash_table): Rename local index_table to symbol_hash_table.
+
+       * addrmap.h (addrmap_foreach_fn): New typedef.
+       (addrmap_foreach): Declare.
+       * addrmap.c (struct addrmap_funcs): New member foreach.
+       (addrmap_foreach): New function.
+       (addrmap_fixed_foreach): New function.
+       (addrmap_fixed_funcs): Update.
+       (struct mutable_foreach_data): New struct.
+       (addrmap_mutable_foreach_worker): New function.
+       (addrmap_mutable_foreach): New function.
+       (addrmap_mutable_funcs): Update.
+
+2010-10-07  Paul Hilfinger  <hilfinger@adacore.com>
+
+       * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
+       more cases.
+
+2010-10-07  Paul Hilfinger  <hilfinger@adacore.com>
+
+        * ada-lang.c (full_match): Declare.
+        (ada_match_name): Rename to match_name (we should avoid prefixing static
+        symbols with "ada_").
+        (match_name): New name for ada_match_name.
+        (struct ada_psym_data): Remove and replace with...
+        (struct match_data): User data for map_matching_symbols.
+        (ada_add_psyms): Remove.
+        (aux_add_nonlocal_symbols): New function, used as callback for
+        map_matching_symbols.
+        (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
+        symbols.
+        (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
+        (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
+        Rework to use map_matching_symbols instead of map_ada_symtabs.
+        (ada_lookup_symbol_list): Use add_nonlocal_symbols.
+        * psymtab.c: Include dependency on dictionary.h.
+        (match_partial_symbol): New function.
+        (ada_lookup_partial_symbol): Remove.
+        (map_block): New function, auxiliary to map_matching_symbols_psymtab.
+        (map_matching_symbols_psymtab): New function.
+        (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
+        * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
+
+2010-10-06  Paul Hilfinger  <hilfinger@adacore.com>
+
+       * ada-lang.c (ada_match_name): Use new API for wild_match.
+       (wild_match): Change API to be consistent with that of strcmp_iw;
+       return 0 for a match, and switch operand order.
+       (full_match): New function.
+       (ada_add_block_symbols): Use dict_iter_match_{first,next} for
+       matching to allow use of hashing.
+       * dictionary.c (struct dict_vector): Generalize iter_name_first,
+       iter_name_next ot iter_match_first, iter_match_next.
+       (iter_name_first_hashed): Replace with iter_match_first_hashed.
+       (iter_name_next_hashed): Replace with iter_match_next_hashed.
+       (iter_name_first_linear): Replace with iter_match_first_linear.
+       (iter_name_next_linear): Replace with iter_match_next_linear.
+       (dict_iter_name_first): Re-implement to use dict_iter_match_first.
+       (dict_iter_name_next): Re-implement to use dict_iter_match_next.
+       (dict_iter_match_first): New function.
+       (dict_iter_match_next): New function.
+       (dict_hash): New function.
+       * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
+       * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
+
+2010-10-06  Doug Evans  <dje@google.com>
+
+       * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
+
+2010-10-06  Ken Werner  <ken.werner@de.ibm.com>
+
+       * dwarf2read.c (read_tag_const_type): Handle const arrays.
+
+2010-10-06  Doug Evans  <dje@google.com>
+
+       * Makefile.in (REQUIRED_SUBDIRS): New var.
+       (subdir_do): Verify required subdir Makefiles exist.
+
+       Create subdir data-directory.
+       * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
+       data-directory/Makefile.in.
+       (SUBDIRS): Add data-directory.
+       (all): Remove xml-syscall-copy dependency.
+       (xml-syscall-copy): Moved to data-directory/Makefile.in as
+       stamp-syscalls.
+       (xml-syscall-install): Moved to data-directory/Makefile.in as
+       install-syscalls.
+       (install-only): Remove xml-syscall-install dependency.
+       (all-data-directory): New rule.
+       (data-directory/Makefile): New rule.
+       * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
+       * configure: Regenerate.
+       * data-directory/Makefile.in: New file.
+       * python/lib/gdb/__init__.py: New file.
+
+2010-10-06  Joel Brobecker  <brobecker@adacore.com>
+
+       Fix ARI warnings in advance_wild_match.
+       * ada-lang.c (advance_wild_match): Delete local variable t2.
+       Adjust code accordingly.  Minor reformatting.
+
+2010-10-06  Ken Werner  <ken.werner@de.ibm.com>
+
+       * gdbtypes.h (struct main_type): Remove flag_nottext.
+       (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
+       (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
+       (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
+       * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
+       of TYPE_FLAG_NOTTEXT.
+       (init_type): Remove the initialization of the flag_nottext field.
+       (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
+       TYPE_FLAG_NOTTEXT.
+       * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
+
+2010-10-04  Doug Evans  <dje@google.com>
+
+       * cc-with-index.sh: New file.
+
+       * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
+       function comment.
+       (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
+       (create_cus_from_index, create_addrmap_from_index): Ditto.
+       (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
+       (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
+       (dw2_do_expand_symtabs_matching): Ditto.
+       (eq_strtab_entry, create_strtab, add_string): Ditto.
+       (hash_strtab_entry): Ditto.
+       (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
+       (create_index_table, create_mapped_symtab, find_slot): Ditto.
+       (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
+       (write_hash_table, add_address_entry, write_psymbols): Ditto.
+       (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
+       (write_psymtabs_to_index): Ditto.
+
+2010-10-04  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c: #include "value.h".
+       (ensure_lval): Delete advance declaration.  Remove gdbarch and sp
+       arguments.  Implement using value_allocate_space_in_inferior
+       instead of allocating memory from the stack.
+       (make_array_descriptor): Remove gdbarch and sp parameters.  Update
+       calls to ensure_lval.
+       (ada_convert_actual): Remove gdbarch and sp parameters.  Update
+       calls to make_array_descriptor and ensure_lval.
+       * ada-lang.h (ada_convert_actual): Update declaration.
+       * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
+
+2010-10-04  Doug Evans  <dje@google.com>
+
+       * python/python.c (_initialize_python): Define new function
+       GdbSetPythonDirectory in python.  Use it to update sys.path and
+       gdb.__path__.
+
+2010-10-03  Paul Hilfinger  <hilfinger@adacore.com>
+
+        * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
+        incorporating and generalizing print_record_field_types.
+        (print_record_field_types): Change return value and update comment.
+        Re-implement using print_selected_record_field_types.
+        (print_choices): Print "=>" here.
+        Handle case of unencoded variant branch.
+        (print_variant_clauses): Reformat comment.
+        Special-case unencoded variant branch.
+
+2010-10-03  Paul Hilfinger  <hilfinger@adacore.com>
+
+        * ada-lang.c (wild_match): Reimplement.
+        Change API to eliminate unused length argument, reverse arguments and
+        make 0 the 'true' return value.
+        (advance_wild_match): New auxiliary function for wild_match to improve
+        readability.
+        (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
+        * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
+        API for wild_match.
+        * symfile.h (map_ada_symtabs): Modify declaration to use new API for
+        wild_match.
+        * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
+
+2010-10-01  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
+       for `save gdb-index' command.
+
+2010-10-01  Tom Tromey  <tromey@redhat.com>
+
+       * symfile.h (allocate_symtab): Update.
+       * symfile.c (allocate_symtab): Make 'filename' const.
+       * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
+       (add_psymbol_to_list): Likewise.
+       * psympriv.h (struct partial_symtab) <filename, dirname>: Now
+       const.
+       (add_psymbol_to_list): Update.
+       * mdebugread.c (new_symtab): Make 'name' const.
+       (psymtab_to_symtab_1): Make 'filename' const.
+       * elfread.c (elfstab_offset_sections): Update.
+       * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
+       (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
+       (psymtab_include_file_name): Update.
+       * dbxread.c (find_stab_function_addr): Make 'filename' const.
+       * buildsym.h (start_subfile): Update.
+       * buildsym.c (start_subfile): Make arguments const.
+
+2010-09-30  Ali Lakhia  <lakhia@alumni.utexas.net>
+
+       * fork-child.c (breakup_args): Fix crash if shell forking is
+       disabled at compile time.
+
+2010-10-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (desc_bounds): Add handling of the case where
+       the P_BOUNDS field is a pointer to a stub.
+       (desc_data_target_type): Same for P_ARRAY field.
+       (ada_check_typedef): Strip the typedef layers from the type
+       found by ada_find_any_type.
+
+2010-10-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * sparc-tdep.c (sparc32_frame_align): New function.
+       (sparc32_gdbarch_init): Set the frame_align gdbarch method.
+       * sparc64-tdep.c (sparc64_frame_align): New function.
+       (sparc64_gdbarch_init): Set the frame_align gdbarch method.
+
+2010-09-30  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * defs.h (MAX_REGISTER_SIZE): Set to 64.
+
+2010-09-30  Tom Tromey  <tromey@redhat.com>
+
+       * symfile.h (struct sym_fns) <next>: Remove.
+       (add_symtab_fns): Update.
+       * symfile.c (sym_fns_ptr): New typedef.
+       (symtab_fns): Now a VEC.
+       (add_symtab_fns): Update.  Change argument type.
+       (find_sym_fns): Update.  Change return type.
+       (get_symfile_segment_data): Update.
+       * objfiles.h (struct objfile) <sf>: Now const.
+       * somread.c (som_sym_fns): Now const.  Update.
+       * xcoffread.c (xcoff_sym_fns): Now const.  Update.
+       * mipsread.c (ecoff_sym_fns): Now const.  Update.
+       * machoread.c (macho_sym_fns): Now const.  Update.
+       * elfread.c (elf_sym_fns): Now const.  Update.
+       (elf_sym_fns_gdb_index): Likewise.
+       * dbxread.c (aout_sym_fns): Now const.  Update.
+       * coffread.c (coff_sym_fns): Now const.  Update.
+
+2010-09-30  Tom Tromey  <tromey@redhat.com>
+
+       * value.c (value_primitive_field): Take 'offset' into account for
+       packed field.
+
 2010-09-30  Tom Tromey  <tromey@redhat.com>
 
        * completer.c (count_struct_fields): Handle anonymous structs and
This page took 0.033184 seconds and 4 git commands to generate.