move handing of "set interactive-mode" to gdb_has_a_terminal
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 6fec8f86f58e4f42d3dbd1ce3c0a39df4733cacc..0e430d1b6a3ce0b90b3d9c0e3199cdfbaa364772 100644 (file)
@@ -1,3 +1,347 @@
+2011-01-21  Joel Brobecker  <brobecker@adacore.com>
+
+       * inflow.c: Include "gdbcmd.h".
+       (interactive_mode): New static global, moved here from top.c.
+       (show_interactive_mode): New function, moved here from top.c.
+       use gdb_has_a_terminal instead of input_from_terminal_p to
+       determine the current mode.
+       (gdb_has_a_terminal): Add handling of the "iteractive-mode"
+       setting.
+       (_initialize_inflow): Add the "set/show interactive-mode"
+       commands.  Moved here from top.c, after having adjusted slightly
+       the help text.
+       * top.c (interactive_mode, show_interactive_mode): Delete, moved
+       to inflow.c.
+       (input_from_terminal_p): Remove handling of "interactive-mode"
+       setting, moved to infow.c.
+       (init_main): Remove creation of the "set/show interactive-mode"
+       commands, moved to inflow.c.
+
+2011-01-19  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Add entry for native ia64-hpux support.
+
+2011-01-19  Tom Tromey  <tromey@redhat.com>
+
+       PR mi/8618:
+       * thread.c (free_thread): Free 'name'.
+       (print_thread_info): Emit thread name.  Change CLI output.
+       (thread_name_command): New function.
+       (do_captured_thread_select): Emit newline.
+       (_initialize_thread): Register 'thread name' command.
+       * target.h (struct target_ops) <to_thread_name>: New field.
+       (target_thread_name): New macro.
+       * target.c (update_current_target): Handle to_thread_name.
+       * python/py-infthread.c (thpy_get_name): New function.
+       (thpy_set_name): Likewise.
+       (thread_object_getset): Add "name".
+       * linux-nat.c (linux_nat_thread_name): New function.
+       (linux_nat_add_target): Set to_thread_name.
+       * gdbthread.h (struct thread_info) <name>: New field.
+
+2011-01-18  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
+       (ada_val_print_1): Likewise.
+
+2011-01-18  Joel Brobecker  <brobecker@adacore.com>
+
+       * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
+       upper limit address is not greater than the function end address
+       when the upper limit could not be computed using the debugging
+       info.
+
+2011-01-17  Tom Tromey  <tromey@redhat.com>
+
+       * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
+       get_regcomp_error.
+       * utils.c: Include gdb_regex.h.
+       (do_regfree_cleanup): New function.
+       (make_regfree_cleanup): Likewise.
+       (get_regcomp_error): Likewise.
+       * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
+
+2011-01-17  Tom Tromey  <tromey@redhat.com>
+
+       * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
+       re_compile_fastmap.
+
+2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
+       for internal variables.
+       (last_was_structop): New static variable.
+       (COMPLETE): New token.
+       (field_exp): New rule to group all '.' suffix handling.
+       Add mark_struct_expression calls when approriate to be able
+       to correctly find fields for completion.
+       (yylex): Adapt to handle field completion and set INTVAR when
+       required.
+
+2011-01-14  Yao Qi  <yao@codesourcery.com>
+
+       * arm-tdep.c (arm_register_reggroup_p): FPS register is in
+       save_reggroup, restore_reggroup and all_reggroup.
+
+2011-01-14  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-valprint. (ada_printchar): Use the correct type length
+       in call to ada_emit_char.
+       * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
+
+2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * solib-som.h (hpux_major_release): Declare variable here.
+       * solib-som.c:  Remove <sys/utsname.h> header.
+       (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
+       (hpux_major_release): Make global, change default value to
+       DEFAULT_HPUX_MAJOR_RELEASE.
+       (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE. 
+       * hppa-hpux-nat.c: Add <sys/utsname.h> include.
+       Add "solib-som.h" header.
+       (set_hpux_major_release): New function.
+       (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
+
+2011-01-14  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure.tgt (*-*-uclinux*): Match more Linux os targets
+
+2011-01-14  Joel Brobecker  <brobecker@adacore.com>
+
+       * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
+       new-line at end of warning message.
+       (ia64_hpux_store_register): Remove trailing new-line at end of
+       error message.
+       * ia64-hpux-tdep.c: Rephrase comment.
+       * solib-ia64-hpux.c (struct dld_info): Change type of field
+       dld_flags from "long long" to ULONGEST.
+
+2011-01-14  Pedro Alves  <pedro@codesourcery.com>
+
+       * target.h (deprecated_child_ops): Delete declaration.
+       * target.c (deprecated_child_ops): Delete definition.
+
+2011-01-14  Pedro Alves  <pedro@codesourcery.com>
+
+       * Makefile.in (hpux-thread.o): Delete rule.
+       * configure.ac: Don't check for HPUX DCE threads support.
+       * configure, config.in: Regenerate.
+       * hppa-hpux-nat.c (child_suppress_run): Delete.
+       (hppa_hpux_child_can_run): Delete.
+       (_initialize_hppa_hpux_nat): Don't override to_can_run.
+       * hpux-thread.c: Delete.
+
+2011-01-13  Joel Brobecker  <brobecker@adacore.com>
+
+       * hpux-thread.c (hpux_pid_to_str): Delete.
+
+2011-01-13  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-valprint.c (ada_emit_char): Remove strange code.
+       Check that c is <= UCHAR_MAX before passing it to isascii.
+       (char_at): Do not assume that TYPE_LEN is either 1 or 2.
+
+2011-01-13  Joel Brobecker  <brobecker@adacore.com>
+
+       * top.c (input_from_terminal_p): Restrict the use of interactive_mode
+       to the case where instream is stdin.
+
+2011-01-13  Joel Brobecker  <brobecker@adacore.com>
+
+       * ia64-tdep.h (struct regcache): Forward declare.
+       (struct ia64_infcall_ops): New struct type.
+       (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
+       and "infcall_ops".
+       * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
+       Renames ia64_find_global_pointer.
+       (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
+       (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
+       (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
+       methods.
+       (ia64_infcall_ops): New static global constant.
+       (ia64_gdbarch_init): Set tdep->infcall_ops.
+       * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
+       (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
+       * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
+       (ia64_hpux_dummy_code): New static global constant.
+       (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
+       (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
+       (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
+       New function.
+       (ia64_hpux_infcall_ops): New static global constant.
+       (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
+       for inferior function calls to work properly on ia64-hpux.
+
+2011-01-13  Joel Brobecker  <brobecker@adacore.com>
+
+       * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
+       * ia64-tdep.h (struct frame_info): forward declaration.
+       (struct gdbarch_tdep): Add field size_of_register_frame.
+       * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
+       to determine the size of the register frame.
+       (ia64_size_of_register_frame): New function.
+       (ia64_gdbarch_init): Set tdep->size_of_register_frame.
+       * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
+       (IA64_HPUX_UREG_REASON): New macro.
+       (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
+       New functions.
+       (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
+       * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
+       (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
+       objects.
+
+2011-01-13  Joel Brobecker  <brobecker@adacore.com>
+
+       Add support for ia64-hpux.
+       * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
+       ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
+
+       * configure.host: Add handling for ia64-hpux hosts.  Add associated
+       floatformats.
+       * configure.tgt: Add handling for ia64-hpux targets.
+       * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
+       (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
+       (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
+
+2011-01-13  Joel Brobecker  <brobecker@adacore.com>
+
+       [ttrace] Compute thread list immediately after attach.
+       * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
+       New subprogram.
+       (inf_ttrace_attach): Use it.
+
+2011-01-13  Joel Brobecker  <brobecker@adacore.com>
+
+       * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
+       if we could not determine the frame's function address.  Instead,
+       use the frame's PC, and then continue.
+
+2011-01-13  Joel Brobecker  <brobecker@adacore.com>
+
+       * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
+       not already defined.
+
+2011-01-13  Joel Brobecker  <brobecker@adacore.com>
+
+       * ia64-tdep.c (ia64_struct_type_p): New function.
+       (ia64_extract_return_value): Handle integral values that are
+       less than 8 bytes long.
+       (ia64_push_dummy_call): Likewise.
+
+2011-01-13  Joel Brobecker  <brobecker@adacore.com>
+
+       * ia64-tdep.c (floatformat_ia64_ext_little): Renames
+       floatformat_ia64_ext.
+       (floatformat_ia64_ext_big): New static const.
+       (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
+
+2011-01-12  Tom Tromey  <tromey@redhat.com>
+
+       * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
+       messages.
+       * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
+       (mi_cmd_thread_list_ids): Likewise.
+       (mi_cmd_data_list_changed_registers): Likewise.
+       (mi_cmd_data_list_register_values): Likewise.
+       (mi_cmd_data_write_register_values): Likewise.
+       (mi_cmd_data_evaluate_expression): Likewise.
+       (mi_cmd_data_read_memory): Likewise.
+       (mi_cmd_data_read_memory_bytes): Likewise.
+       (mi_cmd_data_write_memory): Likewise.
+       (mi_cmd_enable_timings): Likewise.
+       * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
+       * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
+       (mi_cmd_var_delete): Likewise.
+       (mi_cmd_var_set_format): Likewise.
+       (mi_cmd_var_show_format): Likewise.
+       (mi_cmd_var_info_num_children): Likewise.
+       (mi_cmd_var_list_children): Likewise.
+       (mi_cmd_var_info_type): Likewise.
+       (mi_cmd_var_info_expression): Likewise.
+       (mi_cmd_var_show_attributes): Likewise.
+       (mi_cmd_var_assign): Likewise.
+       (mi_cmd_var_update): Likewise.
+       (mi_cmd_enable_pretty_printing): Likewise.
+       (mi_cmd_var_set_update_range): Likewise.
+       * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
+       messages.
+       (mi_cmd_target_file_put): Likewise.
+       (mi_cmd_target_file_delete): Likewise.
+       * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
+       messages.
+       (mi_cmd_stack_info_depth): Likewise.
+       (mi_cmd_stack_list_locals): Likewise.
+       (mi_cmd_stack_list_args): Likewise.
+       (mi_cmd_stack_select_frame): Likewise.
+       (mi_cmd_stack_select_frame): Likewise.
+       (mi_cmd_stack_info_frame): Likewise.
+       * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
+       messages.
+       (mi_cmd_file_list_exec_source_files): Likewise.
+       * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
+       (mi_cmd_env_cd): Likewise.
+       (mi_cmd_env_path): Likewise.
+       (mi_cmd_env_dir): Likewise.
+       (mi_cmd_inferior_tty_show): Likewise.
+       * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
+       * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
+       (mi_cmd_break_watch): Likewise.
+
+2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
+       (ppc_linux_insert_hw_breakpoint): Likewise.
+       (ppc_linux_remove_hw_breakpoint): Likewise.
+       (ppc_linux_insert_watchpoint): Likewise.
+
+2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
+           Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       PR fortran/11104 and DWARF unbound arrays detection.
+       * dwarf2read.c (read_subrange_type): Set zero length on unspecified
+       upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
+       unspecified upper bound.
+       * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
+       variables array_size_array, tmp_type and offset_item.  New variable
+       array.  Remove call to f77_get_upperbound.  New variables array_type
+       and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
+       the final call to deprecated_set_value_type.
+
+2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Make value allocations more lazy.
+       * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
+       instead of allocate_value and set_value_lazy when possible.
+       * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy 
+       instead of allocate_value and set_value_lazy.
+       * findvar.c (value_of_register_lazy): Likewise.
+       (read_var_value): Remove V preallocation, call just check_typedef in
+       advance.  Move allocate_value to LOC_CONST, LOC_LABEL, 
+       LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
+       LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
+       set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
+       remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
+       in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
+       the end, remove set_value_lazy there.
+       * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
+       instead of allocate_value and set_value_lazy when possible.
+       * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
+       * value.c (allocate_computed_value): Use allocate_value_lazy instead
+       of allocate_value and set_value_lazy.
+       (value_from_contents_and_address): Use allocate_value_lazy instead of
+       allocate_value and set_value_lazy when possible.
+
+2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
+
+       * disasm.c (dump_insns): Support dumping opcodes for MI.
+       * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
+       dumping of instruction opcodes.
+
+2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny patch)
+
+       * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
+       appropiately.
+
 2011-01-11  Tom Tromey  <tromey@redhat.com>
 
        * thread.c (do_captured_thread_select): Emit newline before
This page took 0.026731 seconds and 4 git commands to generate.