2012-01-26 Pedro Alves <palves@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
index caf460b58590dab0137880e23ff2deef83419996..b918a442f6eeff819b724ee0f619a6d9c68c434c 100644 (file)
@@ -1,3 +1,177 @@
+2012-01-26  Pedro Alves  <palves@redhat.com>
+
+       * corelow.c (core_has_fake_pid): Delete.
+       (core_close): Delete references to `core_has_fake_pid'.
+       (add_to_thread_list): Adjust to mark the inferior's pid as fake.
+       (core_open): Delete references to `core_has_fake_pid'.
+       (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
+       the removed global.
+
+2012-01-26  Joel Brobecker  <brobecker@adacore.com>
+
+       * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
+       Remove language parameter from name_matcher.  Adjust the comment.
+       * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
+       Remove language parameter.
+       * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
+       * linespec.c (iterate_name_matcher): Likewise.
+       * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
+       name_matcher.  Adjust call accordingly.
+       * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
+       (maintenance_check_symtabs): Adjust type of parameter "fun".
+       * psymtab.h (maintenance_check_symtabs): Likewise.
+
+2012-01-26  Joel Brobecker  <brobecker@adacore.com>
+
+       * language.h (symbol_name_match_p_ftype): New typedef.
+       (struct language_defn): Replace field la_symbol_name_compare
+       by la_get_symbol_name_match_p.
+       * ada-lang.c (ada_get_symbol_name_match_p): New function.
+       (ada_language_defn): Use it.
+       * linespec.c (struct symbol_matcher_data): New type.
+       (iterate_name_matcher): Rewrite.
+       (iterate_over_all_matching_symtabs): Pass a pointer to
+       a symbol_matcher_data struct to expand_symtabs_matching
+       instead of just the lookup name.
+       * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
+       opencl-lang.c, p-lang.c, language.c: Delete field
+       la_symbol_name_compare, and replace by NULL for new field
+       la_get_symbol_name_match_p.
+       * symfile.h (struct quick_symbol_functions): Update comment.
+
+2012-01-25  Tom Tromey  <tromey@redhat.com>
+
+       * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
+       dereferencing.
+
+2012-01-24  Tom Tromey  <tromey@redhat.com>
+
+       PR symtab/12406:
+       * solib.c (update_solib_list): Update the program space's
+       added_solibs and deleted_solibs fields.
+       * progspace.h (struct program_space) <added_solibs,
+       deleted_solibs>: New fields.
+       (clear_program_space_solib_cache): Declare.
+       * progspace.c (release_program_space): Call
+       clear_program_space_solib_cache.
+       (clear_program_space_solib_cache): New function.
+       * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
+       bpstat_stop_status.  Use handle_solib_event.
+       * breakpoint.c: Include gdb_regex.h.
+       (print_solib_event): New function.
+       (bpstat_print): Use print_solib_event.
+       (bpstat_stop_status): Add special case for bp_shlib_event.
+       (handle_solib_event): New function.
+       (bpstat_what): Use handle_solib_event.
+       (struct solib_catchpoint): New.
+       (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
+       (breakpoint_hit_catch_solib, check_status_catch_solib)
+       (print_it_catch_solib, print_one_catch_solib)
+       (print_mention_catch_solib, print_recreate_catch_solib): New
+       functions.
+       (catch_solib_breakpoint_ops): New global.
+       (catch_load_or_unload, catch_load_command_1)
+       (catch_unload_command_1): New functions.
+       (internal_bkpt_check_status): Add special case for
+       bp_shlib_event.
+       (internal_bkpt_print_it): Use print_solib_event.
+       (initialize_breakpoint_ops): Initialize
+       catch_solib_breakpoint_ops.
+       (_initialize_breakpoint): Register "catch load" and "catch
+       unload".
+       * breakpoint.h (handle_solib_event): Declare.
+       * NEWS: Add entry for "catch load" and "catch unload".
+
+2012-01-24  Tom Tromey  <tromey@redhat.com>
+
+       * ada-lang.c: Include gdb_vecs.h.
+       * charset.c: Include gdb_vecs.h.
+       * tracepoint.h: Include gdb_vecs.h.
+       * gdb_vecs.h: New file.
+
+2012-01-24  Pedro Alves  <pedro@codesourcery.com>
+
+       * breakpoint.c (breakpoint_hit_catch_fork)
+       (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
+       (breakpoint_hit_catch_exec): Make use of the `ws' argument.
+       * infrun.c (inferior_has_forked, inferior_has_vforked)
+       (inferior_has_execd, inferior_has_called_syscall): Delete.
+       (handle_syscall_event): Get syscall_number from the execution
+       control state's wait status.
+       (wait_for_inferior): Don't clear syscall_number.
+
+2012-01-24  Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.c (bpstat_check_location, bpstat_stop_status,
+       pc_at_non_inline_function): Add `ws' parameter, and pass it down.
+       (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
+       (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
+       `ws' parameter.
+       (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
+       false for events other than TARGET_SIGNAL_TRAP.
+       (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
+       Add `ws' parameter.
+       (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
+       events other than TARGET_SIGNAL_TRAP.
+       (tracepoint_breakpoint_hit): Add `ws' parameter.
+       * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
+       parameter.
+       (bpstat_stop_status): Same.
+       (pc_at_non_inline_function): Same.
+       * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
+       to pass the current event's waitstatus to bpstat_stop_status
+       and pc_at_non_inline_function.
+
+2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup.
+       * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
+       Update the function comment for it.
+       (source_script_with_search): Call make_cleanup_fclose for STREAM.
+       * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
+       for STREAM.
+
+2012-01-24  Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.c (bpstat_stop_status): Moving clearing print_it
+       outside `bs->stop' block.
+       (bpstat_what): Rework bp_shlib_event handling.
+       (internal_bkpt_check_status): If the breakpoint is a
+       bp_shlib_event, then set bs->stop and bs->print if
+       stop_on_solib_events is set.
+
+2012-01-24  Gary Benson  <gbenson@redhat.com>
+
+       Delete #if 0'd out code.
+       * stack.c (print_frame_label_vars): Remove.
+       (catch_info): Likewise.
+       (_initialize_stack): Remove "info catch" command.
+       * NEWS: Mention the above.
+
+2012-01-24  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
+       it.
+       (remote_notice_new_inferior): If the remote end doesn't support
+       the multiprocess extensions, then the PID is fake.
+       (add_current_inferior_and_thread): New.
+       (remote_start_remote): Use it.
+       (extended_remote_attach_1): Adjust.
+       (extended_remote_create_inferior_1): Use
+       add_current_inferior_and_thread.
+
+2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix watchpoints to be specific for each inferior.
+       * breakpoint.c (watchpoint_in_thread_scope): Verify also
+       current_program_space.
+       * i386-nat.c (i386_inferior_data_cleanup): New.
+       (i386_inferior_data_get): Replace variable inf_data_local by an
+       inferior_data call.
+       (i386_use_watchpoints): Initialize i386_inferior_data.
+       * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
+       specific iterate_over_lwps.
+
 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Fix watchpoints across inferior fork.