X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=908d6a39186549a5f6d0e920aba6030b0077628c;hb=81219e5358e6238d3810136690a0c0b2cd20955e;hp=c0b4f82b04c9f682014ba9179ab2fe19f1118ae0;hpb=000339af7b74593f4dd3a679427b9fe34d1254f7;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c0b4f82b04..908d6a3918 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,635 @@ +2014-09-13 Doug Evans + + * NEWS: Mention new "queue-signal" command. + * infcmd.c (queue_signal_command): New function. + (_initialize_infcmd): Add new queue-signal command. + +2014-09-13 Doug Evans + + * linux-nat.c (wait_lwp): Add debugging printf. + (linux_nat_wait_1): Ditto. + +2014-09-12 Pedro Alves + + * breakpoint.c (remove_solib_event_breakpoints_at_next_stop) + (create_and_insert_solib_event_breakpoint): New functions. + * breakpoint.h (create_and_insert_solib_event_breakpoint) + (remove_solib_event_breakpoints_at_next_stop): New declarations. + * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals. + (remove_dbx_link_breakpoint): Delete function. + (insert_dbx_link_bpt_in_file): Use + create_and_insert_solib_event_breakpoint instead of + deprecated_insert_raw_breakpoint. + (procfs_wait): Don't check whether we hit __dbx_link here. + (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint + here. + * solib-irix.c (base_breakpoint): Delete global. + (disable_break): Delete function. + (enable_break): Use create_solib_event_breakpoint + instead of deprecated_insert_raw_breakpoint. + (irix_solib_handle_event): New function. + (irix_solib_create_inferior_hook): Don't run the target or disable + the mapping-complete breakpoint here. + (_initialize_irix_solib): Install irix_solib_handle_event as + so_ops->handle_event hook. + +2014-09-12 Edjunior Barbosa Machado + Ulrich Weigand  + + PR tdep/17379 + * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer + instead of read_memory_unsigned_integer. + +2014-09-12 Gary Benson + + * nat/linux-waitpid.c: Include common-defs.h. + [GDBSERVER]: Add FIXME comment. + [!GDBSERVER]: Don't include defs.h or signal.h. + (linux_debug) [!GDBSERVER]: Remove empty block. + +2014-09-12 Gary Benson + + * nat/x86-dregs.c: Include common-defs.h and break-common.h. + Don't include defs.h or server.h. + +2014-09-12 Gary Benson + + * nat/linux-btrace.c: Include common-defs.h. + Don't include defs.h, server.h or gdbthread.h. + * nat/linux-btrace.h (struct target_ops): New forward declaration. + +2014-09-12 Gary Benson + + * common/agent.c: Include common-defs.h. + Don't include defs.h or server.h. + * common/buffer.c: Likewise. + * common/common-debug.c: Likewise. + * common/common-utils.c: Likewise. + * common/errors.c: Likewise. + * common/filestuff.c: Likewise. + * common/format.c: Likewise. + * common/gdb_vecs.c: Likewise. + * common/print-utils.c: Likewise. + * common/ptid.c: Likewise. + * common/rsp-low.c: Likewise. + * common/signals.c: Likewise. + * common/vec.c: Likewise. + * common/xml-utils.c: Likewise. + * nat/linux-osdata.c: Likewise. + * nat/linux-procfs.c: Likewise. + * nat/linux-ptrace.c: Likewise. + * nat/mips-linux-watch.c: Likewise. + * target/waitstatus.c: Likewise. + +2014-09-12 Tom Tromey + Gary Benson + + * common/common-regcache.h: New file. + * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h. + * regcache.h: Include common-regcache.h. + (regcache_read_pc): Don't declare. + * regcache.c (get_thread_regcache_for_ptid): New function. + * nat/linux-btrace.c: Don't include regcache.h. + Include common-regcache.h. + (perf_event_read_bts): Use get_thread_regcache_for_ptid. + +2014-09-11 Thomas Schwinge + + * regcache.h (struct regset): Declare. + +2014-09-11 Pedro Alves + + PR gdb/17347 + * main.c: Include "infrun.h". + (catch_command_errors, catch_command_errors_const): Wait for the + foreground command to complete. + * top.c (maybe_wait_sync_command_done): New function, factored out + from ... + (maybe_wait_sync_command_done): ... here. + * top.h (maybe_wait_sync_command_done): New declaration. + +2014-09-11 Tom Tromey + Gary Benson + + * common/symbol.h: New file. + * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h. + * minsyms.c (find_minimal_symbol_address): New function. + * common/agent.c: Include common/symbol.h. + [!GDBSERVER]: Don't include objfiles.h. + (agent_look_up_symbols): Use find_minimal_symbol_address. + +2014-09-11 Gary Benson + + * target/target.h (target_stop_ptid, target_continue_ptid): + Declare. + * target.c (target_stop_ptid, target_continue_ptid): New + functions. + * common/agent.c [!GDBSERVER]: Don't include infrun.h. + (agent_run_command): Always use target_stop_ptid and + target_continue_ptid. + +2014-09-11 Tom Tromey + Gary Benson + + * target/target.h: New file. + * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h. + * target.h: Include target/target.h. + (target_read_memory, target_write_memory): Don't declare. + * target.c (target_read_uint32): New function. + * common/agent.c: Include target/target.h. + [!GDBSERVER]: Don't include target.h. + (helper_thread_id): Type changed to uint32_t. + (agent_get_helper_thread_id): Use target_read_uint32. + (agent_run_command): Always use target_read_memory and + target_write_memory. + (agent_capability): Type changed to uint32_t. + (agent_capability_check): Use target_read_uint32. + +2014-09-11 Gary Benson + + * common/common-debug.h (show_debug_regs): Declare. + * common/common-debug.c (show_debug_regs): Define. + * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace + all uses with show_debug_regs. Replace all uses that considered + debug_hw_points as a multi-value integer with straight boolean + uses. + * x86-nat.c (debug_hw_points): Don't define. Replace all uses + with show_debug_regs. + * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace + all uses with show_debug_regs. + * mips-linux-nat.c (maint_show_dr): Don't define. Replace all + uses with show_debug_regs. + +2014-09-10 Ulrich Weigand  + + * findvar.c (address_from_register): Handle targets requiring + a special conversion routine even for plain pointer types. + +2014-09-10 Ulrich Weigand  + + * rs6000-nat.c (exec_one_dummy_insn): Remove. + (store_register): Do not call exec_one_dummy_insn. + +2014-09-10 Joel Brobecker + + * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR, + dereference it first. Use value_enclosing_type instead of + value_type. + (ada_array_length): Likewise. + +2014-09-10 Joel Brobecker + + * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type". + Adjust function implementation and documentation accordingly. + (ada_evaluate_subexp) : Only assign "type" if + NOSIDE is EVAL_AVOID_SIDE_EFFECTS. + Update call to ada_value_ptr_subscript. + +2014-09-10 Joel Brobecker + + * ada-valprint.c (ada_value_print): Use VAL's enclosing type + instead of VAL's type. + +2014-09-10 Joel Brobecker + + * amd64-linux-nat.c: Add #include. + +2014-09-09 Doug Evans + + PR guile/17367 + * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as + last parameter to pkg-config, not first. + * configure.ac: Pass --with-guile provided pkg-config path to + GDB_GUILE_PROGRAM_NAMES. + * configure: Regenerate. + +2014-09-09 Gabriel Krisman Bertazi + + * MAINTAINERS (Write After Approval): Add "Gabriel Krisman + Bertazi". + +2014-09-09 Maciej W. Rozycki + + * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections): + Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from + the list of sections determining GDB_OSABI_IRIX. + +2014-09-09 James Hogan + + * MAINTAINERS (Write After Approval): Add "James Hogan". + +2014-09-09 James Hogan + + * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration. + +2014-09-09 Joel Brobecker + + * i386-linux-nat.c, x86-linux-nat.c: Add #include. + +2014-09-08 Doug Evans + + PR 17247 + * guile.c: #include . + (_initialize_guile): Block SIGCHLD while initializing Guile. + + Replaces the following, which is reverted. + + 2014-07-26 Doug Evans + + PR 17185 + * configure.ac: Add check for header gc/gc.h. + Add check for function setenv. + * configure: Regenerate. + * config.in: Regenerate. + * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0. + +2014-09-08 Doug Evans + + * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number + with named constant. Fix style of pointer comparison. + * python/py-cmd.c (gdbpy_parse_command_name): Ditto. + +2014-09-07 Gabriel Krisman Bertazi + + PR gdb/17035 + * cli/cli-cmds.c (show_user): Use cli_user_command_p to + decide whether we display the command on "show user". + * cli/cli-script.c (show_user_1): Only verify cmdlines after + printing command name. + * cli/cli-decode.h (cli_user_command_p): Declare new function. + * cli/cli-decode.c (cli_user_command_p): Create helper function + to verify whether cmd_list_element is a user-defined command. + +2014-09-07 Jan Kratochvil + + PR python/17355 + * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL. + Fix goto out of TRY_CATCH. + +2014-09-06 Doug Evans + Tom Tromey + + PR 15276 + * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is, + $_any_caller_matches. + * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py. + * python/lib/gdb/function/caller_is.py: New file. + +2014-09-06 Doug Evans + + * infcmd.c (program_info): Fix typo. + +2014-09-05 Sergio Durigan Junior + + PR gdb/17235 + * stap-probe.c (stap_parse_single_operand): Delete unused variable + 'number'. New variable 'has_digit'. Rewrite code to deal with + subexpressions on SDT probes. + +2014-09-04 Pedro Alves + + * c-exp.y (parse_number): Skip handling base-switching prefixes if + the input is only one character long. + +2014-09-04 Sergio Durigan Junior + + PR fortran/17237 + * f-valprint.c (f_val_print): Specify the correct print option to + use when printing integer values. + +2014-09-04 Gary Benson + + * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set): + Remove code to cope with LWPs wrapped as PIDs. + Add assertions to ensure no wrapped LWPs are passed. + +2014-09-04 Pedro Alves + + * value.c (value_ranges_copy_adjusted): New function, factored out + from ... + (value_contents_copy_raw): ... here. + (unpack_value_bits_as_long_1): Rename back to ... + (unpack_bits_as_long): ... this. Remove 'original_value' and + 'result' parameters. Change return type to LONGEST. + (unpack_value_bits_as_long): Delete. + (unpack_value_field_as_long_1): Delete. + (unpack_value_field_as_long, unpack_field_as_long): Reimplement. + (unpack_value_bitfield): New function. + (value_field_bitfield): Reimplement using unpack_value_bitfield. + (value_fetch_lazy): Use unpack_value_bitfield. + * value.h (unpack_value_bits_as_long): Delete declaration. + +2014-09-03 Sasha Smundak + + * python/py-frame.c (frapy_read_register): New function. + +2014-09-03 James Hogan + + * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0 + prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call. + +2014-09-03 Sergio Durigan Junior + + PR python/16699 + * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New + function. + (add_cmd): Set "completer_handle_brkchars" to NULL. + * cli/cli-decode.h (struct cmd_list_element) + : New field. + * command.h (completer_ftype_void): New typedef. + (set_cmd_completer_handle_brkchars): New prototype. + * completer.c (set_gdb_completion_word_break_characters): New + function. + (complete_line_internal): Call "completer_handle_brkchars" + callback from command. + * completer.h: Include "command.h". + (set_gdb_completion_word_break_characters): New prototype. + * python/py-cmd.c (cmdpy_completer_helper): New function. + (cmdpy_completer_handle_brkchars): New function. + (cmdpy_completer): Adjust to use cmdpy_completer_helper. + (cmdpy_init): Set completer_handle_brkchars to + cmdpy_completer_handle_brkchars. + +2014-09-03 Gary Benson + + * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as... + (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated. + Loop conditions changed to equivalent form. + (struct x86_debug_reg_state): Updated dr_ref_count comment. + * x86-linux-nat.c (x86_linux_prepare_to_resume): Use + ALL_DEBUG_ADDRESS_REGISTERS. + +2014-09-03 Joel Brobecker + + * dwarf2loc.h (dwarf2_evaluate_property): Minor function + description fix. + +2014-09-02 Doug Evans + + * typeprint.c (find_global_typedef): Fix comment. + +2014-09-02 Gary Benson + + * i386-nat.h: Renamed as... + * x86-nat.h: New file. All type, function and variable name + prefixes changed from "i386_" to "x86_". All references updated. + * i386-nat.c: Renamed as... + * x86-nat.c: New file. All type, function and variable name + prefixes changed from "i386_" to "x86_". All references updated. + * common/i386-xstate.h: Renamed as... + * common/x86-xstate.h: New file. All type, function and variable + name prefixes changed from "i386_" to "x86_". All references + updated. + * nat/i386-cpuid.h: Renamed as... + * nat/x86-cpuid.h: New file. All type, function and variable name + prefixes changed from "i386_" to "x86_". All references updated. + * nat/i386-gcc-cpuid.h: Renamed as... + * nat/x86-gcc-cpuid.h: New file. All type, function and variable + name prefixes changed from "i386_" to "x86_". All references + updated. + * nat/i386-dregs.h: Renamed as... + * nat/x86-dregs.h: New file. All type, function and variable name + prefixes changed from "i386_" to "x86_". All references updated. + * nat/i386-dregs.c: Renamed as... + * nat/x86-dregs.c: New file. All type, function and variable name + prefixes changed from "i386_" to "x86_". All references updated. + +2014-09-01 Maciej W. Rozycki + + * varobj.c (_initialize_varobj): Move to the end of file. + +2014-08-29 Gary Benson + + * common/common-exceptions.h: New file. + * common/common-exceptions.c: Likewise. + * Makefile.in (SFILES): Add common/common-exceptions.c. + (HFILES_NO_SRCDIR): Add common/common-exceptions.h. + (COMMON_OBS): Add common-exceptions.o. + (common-exceptions.o): New rule. + * exceptions.h (common-exceptions.h): Include. + (gdb_setjmp.h): Do not include. + (return_reason): Moved to common-exceptions.h. + (enum return_reason): Likewise. + (RETURN_MASK): Likewise. + (typedef return_mask): Likewise. + (enum errors): Likewise. + (struct gdb_exception): Likewise. + (exceptions_state_mc_init): Likewise. + (exceptions_state_mc_action_iter): Likewise. + (exceptions_state_mc_action_iter_1): Likewise. + (TRY_CATCH): Likewise. + (throw_exception): Likewise. + (throw_verror): Likewise. + (throw_vquit): Likewise. + (throw_error): Likewise. + (throw_quit): Likewise. + * exceptions.c (enum catcher_state): Moved to common-exceptions.c. + (enum catcher_action): Likewise. + (struct catcher): Likewise. + (current_catcher): Likewise. + (catcher_list_size): Likewise. + (exceptions_state_mc_init): Likewise. + (catcher_pop): Likewise. + (exceptions_state_mc): Likewise. + (exceptions_state_mc_action_iter): Likewise. + (exceptions_state_mc_action_iter_1): Likewise. + (throw_exception): Likewise. + (exception_messages): Likewise. + (exception_messages_size): Likewise. + (throw_it): Likewise. + (throw_verror): Likewise. + (throw_vquit): Likewise. + (throw_error): Likewise. + (throw_quit): Likewise. + (prepare_to_throw_exception): New function. + +2014-08-29 Gary Benson + + * common/gdb_setjmp.h: New file. + * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h. + * configure.ac: Move sigsetjmp check... + * common/common.m4: ...here. + * configure: Regenerate. + * cp-support.c (SIGJMP_BUF): Delete. + (SIGSETJMP): Likewise. + (SIGLONGJMP): Likewise. + * exceptions.h (gdb_setjmp.h): Include. + (setjmp.h): Do not include. + (EXCEPTIONS_SIGJMP_BUF): Delete. + (EXCEPTIONS_SIGSETJMP): Likewise. + (EXCEPTIONS_SIGLONGJMP): Likewise. + Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros + from gdb_setjmp.h. + * exceptions.c: Likewise. + +2014-08-29 Gary Benson + + * cleanups.h: Moved to... + * common/cleanups.h: New file. + * cleanups.c: Moved to... + * common/cleanups.c: New file. Include common-defs.h and + cleanups.h. Do not include defs.h. + * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c. + (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h. + (cleanups.o): New rule. + +2014-08-29 Gary Benson + + * common/errors.h (internal_warning): New declaration. + (internal_vwarning): Likewise. + * common/errors.c (internal_warning): New function. + * utils.h (internal_warning): Don't declare. + (internal_vwarning): Likewise. + * utils.c (internal_warning): Removed. + +2014-08-29 Gary Benson + + * main.c (captured_main): Use warning during startup. + Prefix startup warning messages with command name. + +2014-08-29 Gary Benson + + * main.c (captured_main): Handle usage errors with error. + +2014-08-29 Gary Benson + + * go32-nat.c (go32_create_inferior): Replace a fprintf/ + exit pair with a call to error. Wrap the message with _(). + +2014-08-29 Gary Benson + + * main.c (captured_main): Replace a fprintf/exit + pair with a call to error. Wrap the message with _(). + +2014-08-29 Gary Benson + + * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit + pairs with calls to error. Wrap the message with _(). + +2014-08-29 Gary Benson + + * utils.c (vwarning): Protect calls to target_terminal_ours + and wrap_here. + +2014-08-29 Gary Benson + + * exceptions.c (print_flush): Protect calls to + target_terminal_ours and wrap_here. + +2014-08-29 Gary Benson + + * utils.h (filtered_printing_initialized): New declaration. + * utils.c (abort_with_message): New function. + (internal_vproblem): Use abort_with_message for first level + recursive internal problems, and if gdb_stderr is not set up. + Protect calls to target_terminal_ours, begin_line and query. + +2014-08-28 Doug Evans + + * symtab.c (in_prologue): Move definition to better spot. + (skip_prologue_using_sal): Ditto. + +2014-08-28 Doug Evans + + * symtab.c (find_function_start_sal): Move definition to better spot. + +2014-08-28 Yao Qi + + * arm-tdep.c (thumb_in_function_epilogue_p): Don't set + found_stack_adjust in forward scan. Remove condition check + on found_stack_adjust which is always true. Indent the code. + +2014-08-28 Yao Qi + + * dwarf2read.c (dwarf_decode_lines): Update declaration. + (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO. + (dwarf_decode_lines): Remove argument + want_line_info. Remove condition check on want_line_info. + Callers update. + +2014-08-27 Doug Evans + + * dwarf2read.c (dwarf_record_line): Fix typo. + +2014-08-27 Patrick Palka + + * target.h (struct target_ops::to_terminal_save_ours): Remove + declaration. + (target_terminal_save_ours): Remove macro. + * target-delegates.c: Regenerate. + * inf-child.c (inf_child_target): Don't set the nonexistent + field to_terminal_save_ours. + * inferior.h (child_terminal_save_ours): Remove declaration. + * terminal.h (gdb_save_tty_state): New declaration. + * inflow.c (child_terminal_save_ours): Rename to ... + (gdb_save_tty_state): ... this. + * tui/tui.c: Include terminal.h. + (tui_enable): Use gdb_save_tty_state instead of + target_terminal_save_ours. + (tui_disable): Likewise. + +2014-08-25 Doug Evans + + * linux-nat.c (linux_nat_close): Don't pass NULL for "this". + Pass NULL instead of 0 for context pointer. + +2014-08-25 Yao Qi + + * dwarf2read.c: Fix grammatical error. + +2014-08-24 Yao Qi + + * dwarf2read.c (scan_partial_symbols): Update comments. + Rename argument 'need_pc' with 'set_addrmap'. + (add_partial_namespace): Rename argument 'need_pc' with + 'set_addrmap'. + (add_partial_module): Likewise. + (add_partial_subprogram): Likewise. Update comments. + (dwarf2_name): Fix typo. + +2014-08-22 Doug Evans + + PR 17276 + * dwarf2read.c (dwarf_record_line_p): New function. + (dwarf_decode_lines_1): Ignore subsequent line number entries + for the same line if any entry had a non-zero discriminator. + +2014-08-22 Doug Evans + + * buildsym.h (record_line_ftype): New typedef. + (record_line): Use it. + * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions. + (dwarf_decode_lines_1): Call them. + +2014-08-22 Yao Qi + + * ctf.c (CTF_FILE_MIN_SIZE): Remove. + (ctf_end): Remove code. + +2014-08-21 Jan Kratochvil + + * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED. + (linux_make_corefile_notes): call update_thread_list, protected against + exceptions. + +2014-08-21 Pedro Alves + + * infcmd.c (attach_command): Remove comment. + +2014-08-21 Bin Cheng + + * aarch64-linux-nat.c (dr_changed_t): Change the type from + unsigned LONGEST to ULONGEST. + +2014-08-20 Pedro Alves + + * Makefile.in (check-read1): New rule. + +2014-08-20 Joel Brobecker + + * value.c (value_from_contents_and_address): Strip resolved_type's + typedef layers before checking its TYPE_DATA_LOCATION. + 2014-08-20 Pedro Alves * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.