2012-12-11 Pedro Alves <pedro@codesourcery.com>
[binutils-gdb.git] / gdb / ChangeLog
index a20bcbab2e49ae30564f4a12beeeeb393670251f..fb92aab7b1ff62ce73ff1f55a7074b62de6baddf 100644 (file)
@@ -1,3 +1,309 @@
+2012-12-11  Pedro Alves  <pedro@codesourcery.com>
+           Pedro Alves  <palves@redhat.com>
+
+       * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
+       NT_PSTATUS note.
+       * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
+       differently from LWP IDs.
+
+2012-12-11  Pedro Alves  <palves@redhat.com>
+
+       * configure.ac (detect type of /proc): Remove Unixware handling.
+       * configure: Regenerate.
+       * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
+       (ioctl_table) [PCRESET]: Remove entry.
+       * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
+       (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
+       (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
+       * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
+       * procfs.c: Remove all UNIXWARE guarded code, and all traces of
+       Unixware in comments throughout.
+       * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
+       and remove mention of Unixware.
+
+2012-12-10  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (dwarf2_cu): Enhance comment.
+       (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
+       the DWO file.
+       (dwarf2_record_block_ranges): Ditto.
+
+       * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
+
+       * symtab.c (find_pc_sect_symtab): Add comment.
+
+2012-12-10  Tom Tromey  <tromey@redhat.com>
+
+       * defs.h: Don't check for definition of LONGEST.
+       (min, max): Remove duplicates.
+
+2012-12-10  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
+       (dwarf2_fetch_die_loc_cu_off): Rename from
+       dwarf2_fetch_die_location_block.  Rewrite to use
+       dwarf2_fetch_die_loc_sect_off.
+       * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
+       (dwarf2_fetch_die_loc_cu_off): Rename.
+       * dwarf2loc.c (indirect_pieced_value): Use
+       dwarf2_fetch_die_loc_sect_off.
+       * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
+       comment.
+       (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
+       * dwarf2expr.c (add_piece): Update.
+       (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
+
+2012-12-10  Tom Tromey  <tromey@redhat.com>
+
+       * buildsym.c (struct pending_block): Move from buildsym.h.
+       (pending_blocks): Likewise; now static.
+       (pending_block_obstack): New global.
+       (free_pending_blocks): Free blocks.
+       (record_pending_block): Use pending_block_obstack.
+       * buildsym.h (struct pending_block): Move definition to
+       buildsym.c.
+       (pending_blocks): Don't declare.
+
+2012-12-10  Pedro Alves  <palves@redhat.com>
+
+       * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
+       dead SCO code, and adjust function description comment.
+
+2012-12-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
+       * defs.h (LONGEST, ULONGEST): Remove conditionalization for
+       CC_HAS_LONG_LONG.
+       * dwarf2-frame.c (DW64_CIE_ID): Likewise.
+       * dwarf2read.c (extract_cu_value): Remove the function.
+       (create_cus_from_index_list): Make the return type void, inline the
+       extract_cu_value caller, include new gdb_static_assert.
+       (create_cus_from_index): Make the return type void, update the function
+       comment, update the create_cus_from_index_list caller.
+       (create_signatured_type_table_from_index): Make the return type void,
+       inline the extract_cu_value caller, include new gdb_static_assert.
+       (dwarf2_read_index): Update the create_cus_from_index and
+       create_signatured_type_table_from_index caller.
+       * printcmd.c (ui_printf): Remove conditionalizations for
+       CC_HAS_LONG_LONG.
+       * config.in: Regenerate.
+       * configure: Regenerate.
+
+2012-12-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
+       Update the comment for checked_producer.
+       (check_producer): New forward declaration.
+       (producer_is_gcc_lt_4_3): New function.
+       (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
+       (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
+
+2012-12-07  Tom Tromey  <tromey@redhat.com>
+
+       * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
+       argument, assertion.
+       * c-exp.y (typebase): Add completion productions.
+       * completer.c (expression_completer): Handle tag completion.
+       * expression.h (parse_expression_for_completion): Add argument.
+       * f-lang.c (f_make_symbol_completion_list): Add 'code'
+       argument.
+       * language.h (struct language_defn)
+       <la_make_symbol_completion_list>: Add 'code' argument.
+       * parse.c (expout_tag_completion_type, expout_completion_name):
+       New globals.
+       (mark_struct_expression): Add assertion.
+       (mark_completion_tag): New function.
+       (parse_exp_in_context): Initialize new globals.
+       (parse_expression_for_completion): Add 'code' argument.  Handle
+       tag completion.
+       * parser-defs.h (mark_completion_tag): Declare.
+       * symtab.c (default_make_symbol_completion_list_break_on): Add
+       'code' argument.  Update.
+       (default_make_symbol_completion_list): Add 'code' argument.
+       (make_symbol_completion_list): Update.
+       (make_symbol_completion_type): New function.
+       * symtab.h (default_make_symbol_completion_list_break_on)
+       (default_make_symbol_completion_list): Update.
+       (make_symbol_completion_type): Declare.
+
+2012-12-07  Tom Tromey  <tromey@redhat.com>
+
+       * expression.h (parse_expression_for_completion): Rename
+       from parse_field_expression.
+       (parse_completion): Rename from in_parse_field.
+       * c-exp.y (lex_one_token): Update.
+       * completer.c (expression_completer): Update.
+       * go-exp.y (lex_one_token): Update.
+       * p-exp.y (yylex): Update.
+       * parse.c (parse_completion): Rename from in_parse_field.
+       (parse_exp_in_context): Update.
+       (parse_expression_for_completion): Rename from
+       parse_field_expression.  Update.
+
+2012-12-07  Tom Tromey  <tromey@redhat.com>
+
+       * typeprint.c (_initialize_typeprint): Set completer
+       for "whatis" and "ptype".
+
+2012-12-07  Joel Brobecker  <brobecker@adacore.com>
+
+       * copyright.py (NOT_FSF_LIST): Remove duplicate entry
+       "sim/common/cgen-fpu.h".  Remove invalid entries
+       "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
+       which actually have an FSF copyright header.
+
+2012-12-07  Joel Brobecker  <brobecker@adacore.com>
+
+       * osf-share/AT386/cma_thread_io.h: Delete.
+       * osf-share/HP800/cma_thread_io.h: Delete.
+       * osf-share/README: Delete.
+       * osf-share/RIOS/cma_thread_io.h: Delete.
+       * osf-share/cma_attr.h: Delete.
+       * osf-share/cma_deb_core.h: Delete.
+       * osf-share/cma_debug_client.h: Delete.
+       * osf-share/cma_errors.h: Delete.
+       * osf-share/cma_handle.h: Delete.
+       * osf-share/cma_init.h: Delete.
+       * osf-share/cma_list.h: Delete.
+       * osf-share/cma_mutex.h: Delete.
+       * osf-share/cma_sched.h: Delete.
+       * osf-share/cma_semaphore_defs.h: Delete.
+       * osf-share/cma_sequence.h: Delete.
+       * osf-share/cma_stack.h: Delete.
+       * osf-share/cma_stack_int.h: Delete.
+       * osf-share/cma_tcb_defs.h: Delete.
+       * osf-share/cma_util.h: Delete.
+       * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
+       in osf-share.
+       * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
+       * contrib/ari/gdb_find.sh: Remove handling of osf-share.
+       * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
+
+2012-12-06  Pedro Alves  <palves@redhat.com>
+           Tom Tromey  <tromey@redhat.com>
+
+       * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
+
+2012-12-06  Jens Elmenthaler <jens.elmenthaler@advantest.com>
+
+       PR mi/14741:
+       * mi/mi-cmd-var.c (varobj_update_one): Take value of
+       attribute "dynamic" and "displayhint" from printed child,
+       not the root variable.
+
+2012-12-06  Joel Brobecker  <brobecker@adacore.com>
+
+       * aix-thread.c (getthrds): Fix type of 4th parameter.
+       (get_signaled_thread): Change type of variable ktid to tid_t.
+
+2012-12-06  Hui Zhu  <hui_zhu@mentor.com>
+
+       * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
+       value of get_frame_block.
+
+2012-12-05  Pierre Muller  <muller@sourceware.org>
+
+       Avoid memory leaks on struct cmd_list_element.doc field.
+       * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
+       if flags contains DOC_ALLOCATED.
+       (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
+       flags.
+       (delete_cmd): Handle DOC_ALLOCATED flag.
+       * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
+       in flags filed of struct cmd_list_element.
+       (struct cmd_list_element): Document new flag item.
+
+2012-12-04  Doug Evans  <dje@google.com>
+
+       * symmisc.c: Whitespace fixes.
+
+2012-12-04  Karthik Bhat  <kv.bhat@samsung.com>
+
+       * i386-tdep.c (i386_skip_prologue): Using symbol table
+       to find the end of prologue for clang compiled binaries.
+       * amd64-tdep.c (amd64_skip_prologue): Using symbol table
+       to find the end of prologue for clang compiled binaries.
+
+2012-12-03  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
+       (dw2_find_symbol_file): Delete unused local file_data.
+
+2012-12-03  Tom Tromey  <tromey@redhat.com>
+
+       * ada-exp.y (write_object_renaming, write_var_or_type)
+       (write_ambiguous_var, write_var_from_sym): Make blocks const.
+       * ada-lang.c (replace_operator_with_call)
+       (find_old_style_renaming_symbol): Make blocks const.
+       * ada-lang.h (ada_find_renaming_symbol): Update.
+       (struct ada_symbol_info) <block>: Now const.
+       * breakpoint.c (watch_command_1): Update.
+       * breakpoint.h (struct watchpoint) <exp_valid_block,
+       cond_exp_valid_block>: Now const.
+       * c-exp.y (classify_inner_name, classify_name): Make block
+       argument const.
+       * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
+       const.
+       * expression.h (innermost_block, parse_exp_1): Update.
+       (union exp_element) <block>: Now const.
+       * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
+       (lookup_struct): Make block argument const.
+       * gdbtypes.h (lookup_template_type): Update.
+       * go-exp.y (classify_name, classify_packaged_name)
+       (package_name_p): Make block argument const.
+       * objc-lang.c (lookup_struct_typedef): Make block argument const.
+       * objc-lang.h (lookup_struct_typedef): Update.
+       * parse.c (parse_exp_in_context, parse_exp_1)
+       (write_exp_elt_block): Make block arguments const.
+       (expression_context_block, innermost_block): Now const.
+       * parser-defs.h (write_exp_elt_block): Update.
+       (expression_context_block, innermost_block, block_found): Now
+       const.
+       * printcmd.c (struct display) <block>: Now const.
+       * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
+       * valops.c (address_of_variable): Make block argument const.
+       * value.h (value_of_variable): Update.
+       * varobj.c (struct varobj_root) <valid_block>: Now const.
+
+2012-11-30  Yao Qi  <yao@codesourcery.com>
+
+       * breakpoint.c (print_one_breakpoint_location): Indent code.
+
+2012-11-30  Yao Qi  <yao@codesourcery.com>
+
+       * breakpoint.c (print_one_breakpoint_location): Combine two
+       blocks handling 'hit count' together.
+
+2012-11-30  Yao Qi  <yao@codesourcery.com>
+
+       * infrun.c (error_is_running, ensure_not_running): Move them
+       to ...
+       * infcmd.c (error_is_running, ensure_not_running): ... here.
+       Make them 'static'.
+       * inferior.h: Remove declarations of error_is_running and
+       ensure_not_running.
+
+2012-11-30  Yao Qi  <yao@codesourcery.com>
+
+       * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
+       check REGNUM >= 0.
+
+2012-11-30  Yao Qi  <yao@codesourcery.com>
+
+       * infrun.c: Make the declaration of 'init_infwait_state'
+       static.
+       (init_infwait_state): Make it 'static'.
+
+2012-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * python/python.c (finalize_python): Cast unused PyGILState_Ensure
+       return value to void to avoid compiler warning.
+
+2012-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * opencl-lang.c (opencl_print_type): New function.
+       (opencl_language_arch_info): Install it.
+
 2012-11-29  Tom Tromey  <tromey@redhat.com>
 
        * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and