Add -Wunused-function to compile flags.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index ee8385ee1cdfce25591f838caf1deb15c159d9fa..8759ef64e5d6d71e2095daf00622e2e7853886be 100644 (file)
@@ -1,3 +1,266 @@
+2010-01-19  Joel Brobecker  <brobecker@adacore.com>
+
+       Add -Wunused-function to compile flags.
+       * configure.ac: Add -Wunused-function to build_warnings.
+       * configure: Regenerate.
+
+2010-01-19  Joel Brobecker  <brobecker@adacore.com>
+
+       "delete" ada-lex.c:input function, not used.
+       * ada-lex.l: #define YY_NO_INPUT.
+
+2010-01-19  Joel Brobecker  <brobecker@adacore.com>
+
+       Delete free_named_symtabs and associated cleanup.
+       * symfile.h (free_named_symtabs): Delete declaration.
+       * symfile.c: Remove some commented out code (clear_symtab_users_once).
+       (cashier_psymtab): Comment function out.
+       Delete declaration.
+       (free_named_symtabs): Delete.
+       * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
+       * dbxread.c (end_psymtab): Likewise.
+       * dwarf2read.c (process_psymtab_comp_unit): Ditto.
+       * exec.c (exec_close_1): Ditto.
+       * xcoffread.c (xcoff_end_psymtab): Likewise.
+
+2010-01-19  Joel Brobecker  <brobecker@adacore.com>
+
+       * stack.c (print_block_frame_labels): Comment function out.
+
+2010-01-19  Joel Brobecker  <brobecker@adacore.com>
+
+       Delete unused or undefined functions.
+       * breakpoint.c (ep_parse_optional_filename): Delete.
+       * dcache.c (dcache_write_line): Remove declaration.
+       * infrun.c (build_infrun): Remove declaration.
+       * tracepoint.c (tracepoint_save_command): Remove declaration.
+       * linux-nat.c (init_lwp_list): Delete. No longer used.
+       * event-loop.c (check_async_signal_handlers): Delete declaration.
+       * infrun.c (init_execution_control_state): Delete.
+       (proceed): Update comment to avoid mentioning
+       init_execution_control_state.
+       * target.c (kill_or_be_killed, nosupport_runtime): Delete.
+       * ada-lang.c (ada_to_static_fixed_value): Delete.
+       * scm-lang.c (evaluate_subexp_scm): Delete declaration.
+       * cp-namespace.c (cp_copy_usings): Delete.
+       * xml-syscall.c (xml_number_of_syscalls): Delete.
+       * progspace.c (find_program_space_by_num): Delete.
+       * inflow.c (handle_sigio): Delete declaration.
+       * hppa-tdep.c (hppa_alignof): Delete.
+       * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
+       (mipsnbsd_core_osabi_sniffer): Delete.
+
+2010-01-18  Tom Tromey  <tromey@redhat.com>
+
+       PR c++/9680:
+       * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
+       (CONST_CAST): New tokens.
+       (exp): Add new productions.
+       (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
+       reinterpret_cast.
+       (is_cast_operator): New function.
+       (yylex): Handle cast operators specially.
+       * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
+       UNOP_REINTERPRET_CAST>: New cases.
+       * expprint.c (print_subexp_standard): Likewise.
+       (op_name_standard): Likewise.
+       (dump_subexp_body_standard): Likewise.
+       * parse.c (operator_length_standard): Likewise.
+       * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
+       UNOP_REINTERPRET_CAST.
+       * gdbtypes.c (class_types_same_p): New function.
+       (is_ancestor): Use it.
+       (is_public_ancestor): New function.
+       (is_unique_ancestor_worker): Likewise.
+       (is_unique_ancestor): Likewise.
+       * gdbtypes.h (class_types_same_p, is_public_ancestor)
+       (is_unique_ancestor): Declare.
+       * valops.c (value_reinterpret_cast): New function.
+       (dynamic_cast_check_1): Likewise.
+       (dynamic_cast_check_2): Likewise.
+       (value_dynamic_cast): Likewise.
+       * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
+
+2010-01-18  Joel Brobecker  <brobecker@adacore.com>
+
+       Fix build failure when building without Python support.
+       * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
+       is not defined.
+
+2010-01-18  Joel Brobecker  <brobecker@adacore.com>
+
+       Use XVS field type instead of doing a parallel lookup.
+       * ada-lang.c (ada_get_base_type): Follow the XVS field type
+       if it is a reference type instead of doing a type lookup using
+       the XVS field name.
+
+2010-01-18  Joel Brobecker  <brobecker@adacore.com>
+
+       Trust PAD types instead of using PAD___XVS.
+       * ada-lang.c (trust_pad_over_xvs): New static variable.
+       (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
+       parallel XVS type, follow the XVS type instead of the PAD type.
+       (unwrap_value): Make sure that there is no parallel XVE type
+       before returning the value as is.
+       (set_ada_list, show_ada_list): New static variables.
+       (set_ada_command, show_ada_command): New functions.
+       (_initialize_ada_language): Add new "set/show ada" prefix commands.
+       Add new "set/show ada trust-PAD-over-XVS" setting.
+
+2010-01-18  Tom Tromey  <tromey@redhat.com>
+           Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       Allow "source" to load python scripts.
+       * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
+       * python/python.c (source_python_script): New function.
+       * python/python.h (source_python_script): Add declaration.
+       * cli/cli-cmds.c: #include exceptions.h and python/python.h.
+       (script_ext_off, script_ext_soft, script_ext_strict)
+       (script_ext_enums, script_ext_mode): New static constants.
+       (show_script_ext_mode, find_and_open_script): New functions.
+       (source_script): Enhance to handle Python scripts.
+       (init_cli_cmds): Add set/show script-extension commands.
+
+2010-01-16  Stan Shebs  <stan@codesourcery.com>
+
+       * tracepoint.h (struct trace_status): Use unsigned long long
+       instead of size_t.
+       * tracepoint.c (trace_status_command): Fix printf directive.
+       (trace_save_command): Check fwrite returns, fix printf directive.
+       (trace_filename): New global.
+       (tfile_open): Set it, check read returns.
+       (tfile_close): Free trace_filename.
+       (tfile_get_traceframe_address): Check read returns.
+       (tfile_trace_find): Ditto.
+       (tfile_fetch_registers): Ditto.
+       (tfile_xfer_partial): Ditto.
+       (tfile_get_trace_state_variable_value): Ditto.
+
+2010-01-15  Stan Shebs  <stan@codesourcery.com>
+
+       Add trace file support.
+       * tracepoint.h (enum trace_stop_reason): New enum.
+       (struct trace_status): New struct.
+       (parse_trace_status): Declare.
+       (struct uploaded_tp): Move here from remote.c,
+       add fields for actions.
+       (struct uploaded_tsv): New struct.
+       * tracepoint.c (tfile_ops): New target vector.
+       (trace_fd): New global.
+       (tfile_open): New function.
+       (tfile_close): New function.
+       (tfile_files_info): New function.
+       (tfile_get_trace_status): New function.
+       (tfile_get_traceframe_address): New function.
+       (tfile_trace_find): New function.
+       (tfile_fetch_registers): New function.
+       (tfile_xfer_partial): New function.
+       (tfile_get_trace_state_variable_value): New function.
+       (init_tfile_ops): New function.
+       (_initialize_tracepoint): Call it, add tfile target.
+       (trace_status): New global.
+       (current_trace_status): New function.
+       (trace_running_p): Remove, change all users to get from
+       current_trace_status()->running.
+       (get_trace_status): Remove.
+       (trace_status_command): Call target_get_trace_status directly,
+       report more detail including tracing stop reasons.
+       (trace_find_command): Always allow tfind on a file.
+       (trace_find_pc_command): Ditto.
+       (trace_find_tracepoint_command): Ditto.
+       (trace_find_line_command): Ditto.
+       (trace_find_range_command): Ditto.
+       (trace_find_outside_command): Ditto.
+       (trace_frames_offset, cur_offset): Declare as off_t.
+       (trace_regblock_size): Rename from reg_size, update users.
+       (parse_trace_status): New function.
+       (tfile_interp_line): New function.
+       (disconnect_or_stop_tracing): Ensure current trace
+       status before asking what to do.
+       (stop_reason_names): New global.
+       (trace_save_command): New command.
+       (get_uploaded_tp): Move here from remote.c.
+       (find_matching_tracepoint): Ditto.
+       (merge_uploaded_tracepoints): New function.
+       (parse_trace_status): Use stop_reason_names.
+       (_initialize_tracepoint): Define tsave command.
+       * target.h (target_ops): New fields to_save_trace_data,
+       to_upload_tracepoints, to_upload_trace_state_variables,
+       to_get_raw_trace_data, change to_get_trace_status
+       to take a pointer to a status struct.
+       (target_save_trace_data): New macro.
+       (target_upload_tracepoints): New macro.
+       (target_upload_trace_state_variables): New macro.
+       (target_get_raw_trace_data): New macro.
+       * target.c (update_current_target): Add new methods, change
+       signature of to_get_trace_status.
+       * remote.c (hex2bin): Make globally visible.
+       (bin2hex): Ditto.
+       (remote_download_trace_state_variable): Download name also.
+       (remote_get_trace_status): Update parameter, use
+       parse_trace_status.
+       (remote_save_trace_data): New function.
+       (remote_upload_tracepoints): New function.
+       (remote_upload_trace_state_variables): New function.
+       (remote_get_raw_trace_data): New function.
+       (remote_start_remote): Use them.
+       (_initialize_remote_ops): Add operations.
+       * ax-gdb.c: Include breakpoint.h.
+       * breakpoint.c (create_tracepoint_from_upload): Use
+       break_command_really, return tracepoint, warn about unimplemented
+       parts.
+       * NEWS: Mention trace file addition.
+
+2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix compilation warning on gcc-3.4.
+       * exec.c (print_section_info): Move the `displacement' variable
+       initialization to its declaration.
+
+2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
+       comparison.
+
+2010-01-15  Eric Botcazou  <botcazou@adacore.com>
+
+       "info tasks" broken by typedefs in ATCB type definitions.
+       * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
+       ada_check_typedef before retrieving the length of the type for
+       regular fields.
+
+2010-01-15  Joel Brobecker  <brobecker@adacore.com>
+
+       Do not use name-based lookup for unconstrained packed arrays.
+       * ada-lang.c (find_parallel_type_by_descriptive_type):
+       Limit the fallback to name-based lookups to the case where
+       the type is a constrained packed array.
+
+2010-01-15  Joel Brobecker  <brobecker@adacore.com>
+
+       Enhance gdb-gdb.py to handle main_type.type_specific.
+       * gdb-gdb.py: Print the type-specific part of struct main_type.
+
+2010-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
+       * configure: Regenerate.
+       * config.in: Regenerate.
+       * utils.c: Include sys/resource.h.
+       (dump_core, can_dump_core): New.
+       (internal_vproblem): Update the comment.  Check can_dump_core while
+       setting dump_core_p.  Replace two abort calls by dump_core calls.
+
+2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Eli Zaretskii  <eliz@gnu.org>
+
+       * NEWS: Document the PIE support.
+
+2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
+       (check_is_pie_binary, _initialize_linux_tdep): Remove.
+
 2010-01-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
        (SUBDIR_PYTHON_SRCS): Likewise.
        (py-lazy-string.o): New rule.
 
-
 2010-01-13  Doug Evans  <dje@google.com>
 
        * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
This page took 0.089778 seconds and 4 git commands to generate.