2012-07-05 Hui Zhu <hui_zhu@mentor.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 4ab87071ca23403afab141fc9d2af9de11543779..020a60510ad750f7c8134a3be99739c11a6bfbe8 100644 (file)
@@ -1,3 +1,248 @@
+2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
+
+       * ax-gdb.c (cli/cli-utils.h): New include.
+       (linespec.h): Ditto.
+       (agent_eval_command_one): New function.
+       (agent_command_1): Ditto.
+       (agent_command): Call function agent_command_1.
+       (agent_eval_command): Ditto.
+       (_initialize_ax_gdb): Change help for "maint agent"
+       and "maint agent-eval".
+
+2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
+
+       * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
+       * cli/cli-utils.c (check_for_argument): New function.
+       * cli/cli-utils.h (check_for_argument): Ditto.
+
+2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * NEWS: Mention x32 ABI support.
+
+2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
+       AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
+
+       * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
+       and pc_regnum_from_eax to -1.  Update SP regnum from
+       sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
+       needed.
+
+       * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
+       pc_regnum_from_eax.
+
+2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
+       * dwarf2expr.h: Include gdbtypes.h.
+       (enum call_site_parameter_kind, union call_site_parameter_u): Remove
+       these forward declarations.
+       (cu_offset, sect_offset): Move these ...
+       * gdbtypes.h: Remove include dwarf2expr.h.
+       (cu_offset, sect_offset): ... here.
+
+2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
+       (amd64_linux_sigtramp_code): This.
+       (amd64_x32_linux_sigtramp_code): New.
+       (LINUX_SIGTRAMP_LEN): Updated.
+       (amd64_linux_sigtramp_start): Check x32 sigtramp.
+
+2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
+
+2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * config.in: Regenerate.
+       * configure: Regenerate.
+       * configure.ac: Remove check for gnu/libc-version.h.
+       * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
+       gnu/libc-version.h.
+       (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
+       variables libc_version, libc_major and libc_minor.  Replace sscanf by
+       inferior_has_bug.  Extend the comment.
+
+2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * linux-thread-db.c (inferior_has_bug): New function.
+       (thread_db_find_new_threads_silently): Return boolean as checked by
+       inferior_has_bug, describe it in the comments.
+       (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
+       earlier.  Abort the initialization if it returned non-zero.
+       (thread_db_new_objfile): Exclude debug files.
+       (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
+       if UNTIL_NO_NEW,
+
+2012-07-02  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
+       related to queue management.
+
+       * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
+       instead of "debug dwarf2-die" in debugging printfs.
+       (create_debug_info_hash_table_reader): Ditto.
+       (create_debug_info_hash_table): Ditto.
+       (init_dwo_file): Ditto.
+       (init_cutu_and_read_dies): Add debugging printf.
+       (init_cutu_and_read_dies_no_follow): Ditto.
+       (process_psymtab_comp_unit_reader): Ditto.
+
+2012-07-02  Stan Shebs  <stan@codesourcery.com>
+
+       Add target-side support for dynamic printf.
+       * NEWS: Mention the additional style.
+       * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
+       (struct bp_location): New field cmd_bytecode.
+       * breakpoint.c: Include format.h.
+       (disconnected_dprintf): New global.
+       (parse_cmd_to_aexpr): New function.
+       (build_target_command_list): New function.
+       (insert_bp_location): Call it.
+       (remove_breakpoints_pid): Skip dprintf breakpoints.
+       (print_one_breakpoint_location): Ditto.
+       (dprintf_style_agent): New global.
+       (dprintf_style_enums): Add dprintf_style_agent.
+       (update_dprintf_command_list): Add agent case.
+       (agent_printf_command): New function.
+       (_initialize_breakpoint): Add new commands.
+       * common/ax.def (printf): New bytecode.
+       * ax.h (ax_string): Declare.
+       * ax-gdb.h (gen_printf): Declare.
+       * ax-gdb.c: Include cli-utils.h, format.h.
+       (gen_printf): New function.
+       (maint_agent_print_command): New function.
+       (_initialize_ax_gdb): Add maint agent-printf command.
+       * ax-general.c (ax_string): New function.
+       (ax_print): Add printf disassembly.
+       * Makefile.in (SFILES): Add format.c
+       (COMMON_OBS): Add format.o.
+       * common/format.h: New file.
+       * common/format.c: New file.
+       * printcmd.c: Include format.h.
+       (ui_printf): Call parse_format_string.
+       * remote.c (remote_state): New field breakpoint_commands.
+       (PACKET_BreakpointCommands): New enum.
+       (remote_breakpoint_commands_feature): New function.
+       (remote_protocol_features): Add new BreakpointCommands entry.
+       (remote_can_run_breakpoint_commands): New function.
+       (remote_add_target_side_commands): New function.
+       (remote_insert_breakpoint): Call it.
+       (remote_insert_hw_breakpoint): Ditto.
+       (_initialize_remote): Add new packet configuration for
+       target-side breakpoint commands.
+       * target.h (struct target_ops): New field
+       to_can_run_breakpoint_commands.
+       (target_can_run_breakpoint_commands): New macro.
+       * target.c (update_current_target): Handle
+       to_can_run_breakpoint_commands.
+
+2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Execute -ix and -iex only after system and user gdbinit files.
+       * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
+       processing down after gdbinit files.
+
+2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Add fnmatch-gnu module.
+       * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
+       * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
+       * gnulib/aclocal.m4: Regenerate.
+       * gnulib/config.in: Regenerate.
+       * gnulib/configure: Regenerate.
+       * gnulib/import/dummy.c: Remove.
+       * gnulib/import/Makefile.am: Regenerate.
+       * gnulib/import/Makefile.in: Likewise.
+       * gnulib/import/m4/gnulib-cache.m4: Likewise.
+       * gnulib/import/m4/gnulib-comp.m4: Likewise.
+       * gnulib/import/alloca.c: New file.
+       * gnulib/import/alloca.in.h: Likewise.
+       * gnulib/import/config.charset: Likewise.
+       * gnulib/import/fnmatch.c: Likewise.
+       * gnulib/import/fnmatch.in.h: Likewise.
+       * gnulib/import/fnmatch_loop.c: Likewise.
+       * gnulib/import/localcharset.c: Likewise.
+       * gnulib/import/localcharset.h: Likewise.
+       * gnulib/import/m4/alloca.m4: Likewise.
+       * gnulib/import/m4/codeset.m4: Likewise.
+       * gnulib/import/m4/configmake.m4: Likewise.
+       * gnulib/import/m4/fcntl-o.m4: Likewise.
+       * gnulib/import/m4/fnmatch.m4: Likewise.
+       * gnulib/import/m4/glibc21.m4: Likewise.
+       * gnulib/import/m4/localcharset.m4: Likewise.
+       * gnulib/import/m4/locale-fr.m4: Likewise.
+       * gnulib/import/m4/locale-ja.m4: Likewise.
+       * gnulib/import/m4/locale-zh.m4: Likewise.
+       * gnulib/import/m4/mbrtowc.m4: Likewise.
+       * gnulib/import/m4/mbsinit.m4: Likewise.
+       * gnulib/import/m4/mbsrtowcs.m4: Likewise.
+       * gnulib/import/m4/mbstate_t.m4: Likewise.
+       * gnulib/import/m4/stdbool.m4: Likewise.
+       * gnulib/import/m4/wchar_h.m4: Likewise.
+       * gnulib/import/m4/wctype_h.m4: Likewise.
+       * gnulib/import/m4/wint_t.m4: Likewise.
+       * gnulib/import/mbrtowc.c: Likewise.
+       * gnulib/import/mbsinit.c: Likewise.
+       * gnulib/import/mbsrtowcs-impl.h: Likewise.
+       * gnulib/import/mbsrtowcs-state.c: Likewise.
+       * gnulib/import/mbsrtowcs.c: Likewise.
+       * gnulib/import/ref-add.sin: Likewise.
+       * gnulib/import/ref-del.sin: Likewise.
+       * gnulib/import/stdbool.in.h: Likewise.
+       * gnulib/import/streq.h: Likewise.
+       * gnulib/import/strnlen1.c: Likewise.
+       * gnulib/import/strnlen1.h: Likewise.
+       * gnulib/import/verify.h: Likewise.
+       * gnulib/import/wchar.in.h: Likewise.
+       * gnulib/import/wctype.in.h: Likewise.
+
+2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Support shell wildcards for 'set auto-load safe-path'.
+       * auto-load.c: Include fnmatch.h.
+       (filename_is_in_dir): Rename to ...
+       (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
+       it.  Update function comment.  Rename dir_len to pattern_len.  New
+       variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
+       messages.  Use gdb_filename_fnmatch.
+       (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
+       pattern.
+       (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
+       * defs.h (gdb_filename_fnmatch): New declaration.
+       * utils.c: Include fnmatch.h.
+       (gdb_filename_fnmatch): New function.
+
+2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
+       `-probe' and `-probe-stap' options.
+
+2012-07-01  Yao Qi  <yao@codesourcery.com>
+
+       * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
+       always_inserted_off, and always_inserted_enums.
+       Change always_inserted_mode's type to 'enum auto_boolean'.
+       (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
+       callers.
+       (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
+       of add_setshow_enum_cmd.
+       * infrun.c: Remove can_use_displaced_stepping_auto,
+       can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
+       can_use_displaced_stepping_enum.
+       Change can_use_displaced_stepping's type to 'enum auto_boolean'.
+       (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
+       (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
+       add_setshow_enum_cmd.
+
+2012-06-30  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (signatured_type): Make "per_cu" member first.
+       (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
+       currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
+
 2012-06-29  Doug Evans  <dje@google.com>
 
        * linespec.c: #include "stack.h".
This page took 0.05039 seconds and 4 git commands to generate.