X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=f8001b6b80832b3b39479f458fe162aea78a7fd0;hb=3d9e6b12b0e451edbeb2f7d2a79f9418bc6875a5;hp=a7dad2647b297109d39267a5ea0071a0efefad8c;hpb=543ecec77cfc25df40fb60a852f7e08df5317635;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a7dad2647b..f8001b6b80 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,384 @@ +2010-10-28 Hui Zhu + + * tracepoint.c (trace_save): Change utp->actions to + utp->step_actions. + +2010-10-26 Joel Brobecker + + * (_FILE_OFFSET_BITS): Fix typo in comment. + +2010-10-26 Joel Brobecker + + * 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 + + * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp + by call to FILENAME_CMP. + +2010-10-26 Joel Brobecker + + * dictionary.c (dict_hash): Move assignment out of if condition. + +2010-10-22 Jie Zhang + + * 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 + + * 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 + + * remote.c (remote_get_threadlist): If we got empty + response, bail out immediately, and don't emit any + warnings. + +2010-10-19 Ulrich Weigand + + * 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 + + 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 + + * python/py-cmd.c (cmdpy_function): Unreference exception state. + +2010-10-19 Sami Wagiaalla + + * 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 + + * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify + assumptions of when this case happens. Print "". + +2010-10-18 Tom Tromey + + * valprint.c (val_print_string): Pass 'encoding' to + LA_PRINT_STRING. + +2010-10-17 Jan Kratochvil + + 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 + Pedro Alves + + * gdbthread.h (currently_stepping): New declaration. + * infrun.c (currently_stepping): Remove the forward declaration. + (currently_stepping): Make it global. + * linux-nat.c (resume_callback) 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) + : + New variable tp. Call currently_stepping_callback and step such + thread. + +2010-10-17 Jan Kratochvil + + * 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 + + Fix GCC false warning. + * varobj.c (value_get_print_value) : Initialize it. + +2010-10-16 Pierre Muller + + * p-typeprint.c (pascal_type_print_method_args): Fix problem in + display of type of method arguments. + +2010-10-15 Tom Tromey + + 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 + Jan Kratochvil + + 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) : Extend the comment. + +2010-10-15 Pierre Muller + + * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor. + +2010-10-14 Sami Wagiaalla + + * 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 + + * p-lang.c (is_pascal_string_type): Avoid crashes on structures + having fields without names. + +2010-10-13 Tom Tromey + + * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name. + +2010-10-13 Doug Evans + + 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 + + * 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) : 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 + + * python/py-prettyprint.c (search_pp_list): Fix error checking. + +2010-10-12 Sami Wagiaalla + + * 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 + + * ser-go32.c (struct dos_ops): Add missing fdopen field. + +2010-10-12 Matthew Gretton-Dann + + * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array. + +2010-10-11 Doug Evans + + * c-typeprint.c (c_type_print_modifier): Add note that this prints + the address space id too. + +2010-10-11 Jan Kratochvil + + 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 + + * tracepoint.c (merge_uploaded_trace_state_variables): Only print + messages if info_verbose. + +2010-10-08 Ken Werner + + * valops.c (value_cast): Handle vector types. + * valarith.c (value_binop): Widen scalar to vector if appropriate. + +2010-10-08 Ulrich Weigand + + * 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 + Daniel Jacobowitz + + * 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 + + * 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 + + * dictionary.c (dict_hash): Revert to msymbol_hash_iw in + more cases. + +2010-10-07 Paul Hilfinger + + * 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 + + * 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 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.