2008-10-17 Michael Snyder <msnyder@vmware.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index c8163b72698076eab17852313030edac32f7f74d..29a29ff271942bbd4e3bc0d905877eb09612c563 100644 (file)
@@ -1,3 +1,850 @@
+2008-10-17  Michael Snyder  <msnyder@vmware.com>
+       Target interface for reverse debugging.
+       * target.h (enum target_waitkind): 
+       Add new wait event, TARGET_WAITKIND_NO_HISTORY.
+       (struct target_ops): New method to_can_execute_reverse.
+       (target_can_execute_reverse): New macro.
+       * target.c (update_current_target): Inherit to_can_execute_reverse.
+
+       Remote interface for reverse debugging.
+       * remote.c (remote_can_execute_reverse): New target method.
+       (remote_resume): Check for reverse exec direction, and send 
+       appropriate command to target.
+       (remote_wait_as): Check target response for NO_HISTORY status.
+       Also check for empty reply (target doesn't understand "bs" or "bc).
+       (remote_vcont_resume): Jump out if attempting reverse execution.
+
+       Event handling interface for reverse debugging.
+       * infrun.c (execution_direction): New state variable.
+       (enum inferior_stop_reason): Add NO_HISTORY reason.
+       (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY.
+       Handle stepping over a function call in reverse.
+       Handle stepping thru a line range in reverse.
+       Handle setting a step-resume breakpoint in reverse.
+       Handle stepping into a function in reverse.
+       Handle stepping between line ranges in reverse.
+       (print_stop_reason): Print reason for NO_HISTORY.
+       (step_into_function): Rename to handle_step_into_function.
+       (handle_step_into_function_backward): New function.
+       (set_exec_direction_func, show_exec_direction_func): New funcs.
+       (proceed): No need to singlestep over a breakpoint
+       when resuming in reverse.
+       
+       * inferior.h (enum exec_direction_kind): New enum.
+       (execution_direction): Export new execution state variable.
+
+       * breakpoint.c (make_breakpoint_silent): New function.
+       * breakpoint.h (make_breakpoint_silent): Export.
+       * infcmd.c (finish_command): Check for reverse exec direction.
+       (finish_backward): New function, handle finish cmd in reverse.
+
+       User interface for reverse execution.
+       * Makefile.in (reverse.c): New file.
+       * reverse.c: New file.  User interface for reverse execution.
+
+2008-10-17  Pedro Alves  <pedro@codesourcery.com>
+
+       * remote.c (record_currthread): Add inferior before child threads.
+       (remote_threads_info): Check for exited threads.  Mention
+       notification order.
+
+2008-10-16  Joel Brobecker  <brobecker@adacore.com>
+
+       * breakpoint.h (enum bptype): New enum bp_catchpoint.
+       Delete bp_catch_fork and bp_catch_vfork.
+       (struct breakpoint_ops): Add new methods "insert", "remove"
+       and "breakpoint_hit".
+       * breakpoint.c (create_fork_vfork_event_catchpoint)
+       (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove.
+       (insert_catchpoint): Remove handling of bp_catch_fork and
+       bp_catch_vfork catchpoints, and handle them as bp_catchpoint
+       catchpoints instead.
+       (insert_bp_location, update_breakpoints_after_exec)
+       (remove_breakpoint, bpstat_check_location, bpstat_what)
+       (allocate_bp_location): Likewise.
+       (print_it_typical, print_one_breakpoint_location, mention): Remove
+       handling of bp_catch_fork and bp_catch_vfork breakpoints.
+       (ep_is_catchpoint, user_settable_breakpoint)
+       (breakpoint_address_is_meaningful, adjust_breakpoint_address)
+       (breakpoint_re_set_one, disable_command, enable_command):
+       Remove use of bp_catch_fork and bp_catch_vfork.  Add handling of
+       bp_catchpoint breakpoints.
+       (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork)
+       (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork):
+       New functions.
+       (catch_fork_breakpoint_ops): New static constant.
+       (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork)
+       (print_it_catch_vfork, print_one_catch_vfork)
+       (print_mention_catch_vfork): New functions.
+       (catch_vfork_breakpoint_ops): New static constant.
+       (create_catchpoint, create_fork_vfork_event_catchpoint): New functions.
+       (catch_fork_command_1): Use create_fork_vfork_event_catchpoint
+       to create the fork and vfork catchpoints.
+       (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields.
+       * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops
+       fields.
+       (catch_exception_unhandled_breakpoint_ops): Likewise.
+       (catch_assert_breakpoint_ops): Likewise.
+
+2008-10-16  Pedro Alves  <pedro@codesourcery.com>
+
+       * remote.c (set_general_process): New.
+       (remote_check_symbols): Use it.
+
+2008-10-16  Pedro Alves  <pedro@codesourcery.com>
+
+       * remote.c (push_remote_target): Delete.
+       * target.h (push_remote_target): Delete declaration.
+
+2008-10-15  Pedro Alves  <pedro@codesourcery.com>
+
+       * remote.c (remote_close): Unregister remote_desc from the event
+       loop.  Always restore the SIGINT handler.  Discard all inferiors
+       here.
+       (remote_detach_1, remote_disconnect): Don't unregister the file
+       descriptor from the event loop here.
+       (interrupt_query, readchar, getpkt_sane): Pop the target instead
+       of morning the current inferior.
+       (remote_kill): Don't unregister the file descriptor from the event
+       loop here.
+       (remote_mourn_1): Don't discard inferiors here.
+
+2008-10-15  Pedro Alves  <pedro@codesourcery.com>
+
+       * breakpoint.c (breakpoint_init_inferior): Clean up the moribund
+       locations list.
+       (moribund_breakpoint_here_p): Record the moribund
+       location in the moribund_locations vector.
+       * breakpoint.h (moribund_breakpoint_here_p): Declare.
+       (displaced_step_fixup): Check if the breakpoint the thread was
+       trying to step over has been removed since having been placed in
+       the displaced stepping queue.
+       (adjust_pc_after_break): In non-stop mode, check for a moribund
+       breakpoint at the stop pc.
+       (handle_inferior_event): Don't retire moribund breakpoints on
+       TARGET_WAITKIND_IGNORE.
+
+2008-10-15  Pedro Alves  <pedro@codesourcery.com>
+
+       * infrun.c (displaced_step_prepare): Switch thread temporarily
+       while we're here.
+       (displaced_step_fixup): Make sure target_resume sees ptid as
+       inferior_ptid.  Add debug output.
+
+2008-10-14  Pedro Alves  <pedro@codesourcery.com>
+
+       Remove dead code.
+
+       * breakpoint.c (show_breakpoint_hit_counts): Delete.
+       (print_one_breakpoint_location): Adjust.
+       (breakpoint_clear_ignore_counts): Delete.
+       * breakpoint.h (breakpoint_clear_ignore_counts): Remove
+       declaration.
+       * target.c (generic_mourn_inferior): Don't clear ignore
+       counts (never reached).
+
+2008-10-10  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (comp_unit_head): Use unsigned int consistently
+       for dwarf section offsets and sizes.
+       (dwarf2_cu): Ditto.
+       (dwarf2_per_cu_data): Ditto.
+       (create_all_comp_units): Change offset to unsigned int.
+       (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die,
+       dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto.
+
+       * dwarf2read.c (read_initial_length): Delete cu_header arg.
+       All callers updated.
+       (read_checked_initial_length_and_offset): New function.
+       (read_offset_1): New function.
+       (read_offset): Call it.
+       (dwarf_decode_line_header): Call read_checked_initial_length_and_offset
+       instead of read_initial_length.  Call read_offset_1 instead of
+       read_offset.
+
+       * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'.
+       All callers updated.
+
+       * dwarf2read.c (dwarf_attr_name): Unconditionally support all
+       DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with
+       DW_AT_HP_block_index.
+
+2008-10-10  Pedro Alves  <pedro@codesourcery.com>
+
+       * remote.c (remote_start_remote): Always tell the stub if we're in
+       extended-remote.
+
+2008-10-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * remote.c (remote_wait): Rename to...
+       (remote_wait_as): ... this.  Don't loop here.  If the remote
+       didn't stop, return TARGET_WAITKIND_IGNORE.
+       (remote_wait): New, reimplemented on top of remote_wait_as.
+
+2008-10-09  Thomas Schwinge  <tschwinge@gnu.org>
+
+       * Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem
+       is fixed upstream.
+
+       * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
+
+       * MAINTAINERS (Write After Approval): Add myself.
+
+2008-10-09  Pedro Alves  <pedro@codesourcery.com>
+
+       Make it compile without warnings.
+
+       * procfs.c (create_procinfo): Initialize `parent'.
+       (dead_procinfo): Pass a constant string as format to error.
+       (procfs_address_to_host_pointer): Add cast to gdb_type *.
+       (procfs_find_LDT_entry): Adjust format string to long int
+       ptid.tid.
+       (procfs_xfer_partial): Adjust prototype.  Add gdb_byte* cast.
+       (procfs_xfer_memory): Adjust prototype.
+       (info_mappings_callback, info_proc_mappings): Adjust to not pass a
+       variable as printf_filtered format.
+       (procfs_make_note_section): Change type of auxv local to gdb_byte.
+       * Makefile.in: Remove special rule.
+
+2008-10-09  Pedro Alves  <pedro@codesourcery.com>
+           Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * remote.c (remote_open_1): Move acknowledging any pending ack,
+       querying supported features, activating noack mode, finding the
+       target description, enabling extended remote, and checking remote
+       symbols from here ...
+       (remote_start_remote): ... to here.
+       (remote_open_1): Don't pop the target if it is already gone.
+       * target.c (unpush_target): Check for the dummy target.
+
+2008-10-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * ser-mingw.c: Include "command.h".
+       (pipe_windows_open): Declare locals at the beginning of the scope.
+
+2008-10-08  Pedro Alves  <pedro@codesourcery.com>
+
+       * remote.c (struct remote_state) <waiting_for_stop_reply>: New
+       field.
+       (remote_open_1): Clear waiting_for_stop_reply.
+       (remote_resume): Set waiting_for_stop_reply.
+       (remote_wait): Clear or set waiting_for_stop_reply accordingly.
+       (putpkt_binary): If we're in async mode and waiting for a stop
+       reply, bail out with an error.
+       (extended_remote_mourn_1): Clear waiting_for_stop_reply.
+
+2008-10-08  Pedro Alves  <pedro@codesourcery.com>
+
+       * remote.c (remote_get_thread_info): If the remote doesn't support
+       the query, bail out.
+
+2008-10-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Convert static_kind into loc_kind enum.
+       * gdbtypes.h (enum field_loc_kind): New.
+       (union field_location): New field dwarf_block.
+       (struct field): Rename static_kind as loc_kind.
+       (FIELD_STATIC_KIND): Rename to ...
+       (FIELD_LOC_KIND): ... here.
+       (TYPE_FIELD_STATIC_KIND): Rename to ...
+       (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND.
+       (TYPE_FIELD_STATIC_HAS_ADDR): Remove.
+       (TYPE_FIELD_STATIC): Remove.
+       (TYPE_FIELD_BITPOS): Reformat.
+       (SET_FIELD_BITPOS): New.
+       (FIELD_PHYSADDR): Rename to ...
+       (FIELD_STATIC_PHYSADDR): ... here.
+       (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename.
+       (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND.
+       (FIELD_PHYSNAME): Rename to ...
+       (FIELD_STATIC_PHYSNAME): ... here.
+       (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename.
+       (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND.
+       (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New.
+       (field_is_static): New declaration.
+       * gdbtypes.c (field_is_static): New function.
+       (copy_type_recursive): Update throughout.
+       * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c,
+       eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c,
+       p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
+
+2008-10-07  Thomas Schwinge  <tschwinge@gnu.org>
+           Pedro Alves  <pedro@codesourcery.com>
+
+       * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to
+       avoid a name collision.
+       * gnu-nat.c: Likewise.
+       * i386gnu-nat.c: Likewise.
+
+2008-10-07  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
+       of arguments that are references.
+
+2008-10-06  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (dwarf2_die_debug): New static global.
+       (dump_die_shallow): Renamed from dump_die, New args f, indent.
+       Print to specified file, indented by the specified amount.
+       (dump_die_for_error): New fn.  Point all existing callers of
+       dump_die here.
+       (dump_die_die_1,dump_die): New fns, replaces ...
+       (dump_die_list): ... deleted.
+       (read_die_and_children_1): Old contents of read_die_and_children
+       moved here.
+       (read_die_and_children): Rewrite.
+       (read_die_and_siblings): Call read_die_and_children_1 instead of
+       read_die_and_children.
+       (_initialize_dwarf2_read): New option "debug dwarf2-die".
+       * gdbinit.in (pdie): New macro.
+
+       * dwarf2read.c (offset_in_cu_p): New function.
+       (find_partial_die,follow_die_ref): Use it.
+
+       * symmisc.c (maintenance_info_symtabs): Watch for ^c.
+       (maintenance_info_psymtabs): Ditto.
+
+2008-10-05  Michael Snyder  <msnyder@vmware.com>
+
+       * infrun.c (handle_inferior_event): Fix typo in comment.
+
+2008-10-04  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.
+
+2008-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       PR gdb/2384:
+       * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
+       different lifetimes.
+       
+2008-10-03  Joel Brobecker  <brobecker@adacore.com>
+
+       * solib-osf.c: Include "solib.h".
+
+2008-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
+       
+       * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv
+       and check for out-of-memory condition.
+       * exec.c (exec_file_command): Call it.
+       * infrun.c (handle_command, xdb_handle_command): Likewise.
+       * interps.c (interpreter_exec_cmd): Likewise.
+       * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
+       * procfs.c (info_proc_cmd): Likewise.
+       * remote-mips.c (common_open): Likewise.
+       * remote-sim.c (gdbsim_kill, gdbsim_create_inferior)
+       (gdbsim_open): Likewise.
+       * remote.c (extended_remote_run, remote_put_command)
+       (remote_get_command, remote_delete_command): Likewise.
+       * ser-mingw.c (pipe_windows_open): Likesise.
+       * source.c (add_path, show_substitute_path_command)
+       (unset_substitute_path_command, set_substitute_path_command):
+       Likewise.
+       * stack.c (backtrace_command): Likewise.
+       * symfile.c (symbol_file_command, generic_load)
+       (add_symbol_file_command): Likesise.
+       * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols)
+       (maintenance_print_msymbols): Likewise.
+
+2008-10-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined.
+       * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c
+       (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix),
+       valops.c (value_cast), varobj.c (c_number_of_children): Replace
+       TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by
+       TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
+       * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
+       * f-valprint.c (f77_get_dynamic_upperbound): Replace with ...
+       (f77_get_upperbound): ... this function handling now only
+       TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
+       (f77_get_dynamic_lowerbound): Replace with ...
+       (f77_get_lowerbound): ... this function handling now only
+       TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED.
+       (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl):
+       Update their callers.
+       * eval.c (evaluate_subexp_standard): Update their callers.
+       * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound)
+       (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their
+       prototypes.
+       (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove.
+       * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove
+       the lower_bound_was_default variable.  Update the
+       f77_get_dynamic_upperbound, f77_get_upperbound and
+       TYPE_ARRAY_UPPER_BOUND_TYPE calls.
+       * gdbtypes.c (print_bound_type): Remove the function.
+       (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and
+       LOWER_BOUND_TYPE.
+       * gdbtypes.h (enum array_bound_type): Remove.
+       (struct main_type): Remove the fields upper_bound_type and
+       lower_bound_type.  Comment the new overload of the field artificial.
+       (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ...
+       (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro.
+       (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ...
+       (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro.
+
+2008-10-02  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.
+
+2008-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update
+       comments.
+       (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver.
+       (mips_linux_init_abi): Do not override skip_trampoline_code.
+       * configure.tgt (mips*-*-linux*): Add glibc-tdep.o.
+       * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches.
+       (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs.
+       (mips_skip_mips16_trampoline_code): Rename from
+       mips_skip_trampoline_code.
+       (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New.
+       * infrun.c (handle_inferior_event): Do not pass zero to
+       in_solib_dynsym_resolve_code.
+
+2008-10-02  Pierre Muller  <muller@ics.u-strasbg.fr>
+           Pedro Alves  <pedro@codesourcery.com>
+
+       * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
+
+
+2008-10-01  Tom Tromey  <tromey@redhat.com>
+
+       * symtab.c (search_symbols): Update.
+       * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
+
+2008-10-01  Tom Tromey  <tromey@redhat.com>
+
+       * symfile.c (syms_from_objfile): Update.
+       (reread_symbols): Update.
+       * objfiles.h (OBJF_SYMS): Remove.
+       (OBJF_REORDERED): Renumber.
+       (OBJF_SHARED): Likewise.
+       (OBJF_READNOW): Likewise.
+       (OBJF_USERLOADED): Likewise.
+
+2008-10-01  Tom Tromey  <tromey@redhat.com>
+
+       * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
+       (find_pc_sect_symtab): Likewise.
+       * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
+       * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
+       MSYMBOL_TYPE, not SYMBOL_TYPE.
+       * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
+       * objc-lang.c (find_methods): Use MSYMBOL_TYPE.
+       * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
+       MSYMBOL_TYPE.
+       * m2-exp.y (yylex): Use SYMBOL_CLASS.
+
+2008-10-01  Tom Tromey  <tromey@redhat.com>
+
+       * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.
+       (scan_xcoff_symtab): Update.
+       * mdebugread.c (record_minimal_symbol): Update.
+       (parse_partial_symbols): Update.
+       * elfread.c (record_minimal_symbol): Update.
+       * dbxread.c (record_minimal_symbol): Update.
+       * coffread.c (record_minimal_symbol): Update.
+       * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine.
+       (sh64_elf_make_msymbol_special): Update.
+       * mips-tdep.c (mips_elf_make_msymbol_special): Use
+       MSYMBOL_TARGET_FLAG_1.
+       (mips_elf_make_msymbol_special): Likewise.
+       (msymbol_is_special): Likewise.
+       * minsyms.c (prim_record_minimal_symbol_and_info): Update.
+       (install_minimal_symbols): Likewise.
+       (prim_record_minimal_symbol): Update.
+       (prim_record_minimal_symbol_and_info): Remove 'info' argument.
+       * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine.
+       (MSYMBOL_SET_RTI): Redefine.
+       (MSYMBOL_IS_RTC): Redefine.
+       (MSYMBOL_IS_RTI): Redefine.
+       * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine.
+       (MSYMBOL_IS_SPECIAL): Redefine.
+       * symtab.h (struct minimal_symbol) <info>: Remove.
+       <target_flag_1, target_flag_2>: New fields.
+       (MSYMBOL_INFO): Remove.
+       (MSYMBOL_TARGET_FLAG_1): New macro.
+       (MSYMBOL_TARGET_FLAG_2): Likewise.
+       (prim_record_minimal_symbol_and_info): Update.
+
+2008-09-30  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (is_digits_suffix): Delete unused function.
+
+2008-09-30  Paul Hilfinger  <hilfinger@adacore.com>
+
+       * ada-lang.c (ada_modulus): Correct to avoid sign problem with
+       moduli >= 2**31.
+
+2008-09-30  Paul Hilfinger  <hilfinger@adacore.com>
+
+       * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
+       variant branch.
+       (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
+       supposed to be null.  Fixes debugger segfaults.
+       (is_unchecked_variant): New function.
+       (to_fixed_variant_branch_type): Modify to leave unchecked unions
+       untouched.
+       (ada_template_to_fixed_record_type_1): Fix comment.
+
+2008-09-30  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (standard_exc): New static constant.
+       (ada_exception_catchpoint_cond_string): Add special handling
+       for the predefined exceptions.
+
+2008-09-30  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro.  Update
+       the code accordingly.
+
+2008-09-30  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange
+       treatment of expect_type. Return the correct type when dereferencing
+       an integer.
+
+2008-09-30  Tom Tromey  <tromey@redhat.com>
+
+       PR gdb/2484:
+       * symtab.c (struct add_macro_name_data): New struct.
+       (add_macro_name): New function.
+       (default_make_symbol_completion_list): Complete macro names.
+       * scm-lang.c (scm_language_defn): Update.
+       * p-lang.c (pascal_language_defn): Update.
+       * objc-lang.c (objc_language_defn): Update.
+       * macrotab.h (macro_callback_fn): Add user_data argument.
+       (macro_for_each): Likewise.
+       (macro_for_each_in_scope): Declare.
+       * macrotab.c: (struct macro_for_each_data): New struct.
+       (foreach_macro): Use it.
+       (macro_for_each): Likewise.
+       (foreach_macro_in_scope): New function.
+       (macro_for_each_in_scope): Likewise.
+       * macrocmd.c (print_one_macro): Add argument.
+       (macro_list_command): Pass NULL to macro_for_each.
+       * m2-lang.c (m2_language_defn): Update.
+       * language.h (struct language_defn) <la_macro_expansion>: New
+       field.
+       (macro_expansion): New enum.
+       * language.c (unknown_language_defn): Update.  Fix order of
+       initializers.
+       (auto_language_defn): Likewise.
+       (local_language_defn): Update.
+       * jv-lang.c (java_language_defn): Update.
+       * f-lang.c (f_language_defn): Update.
+       * c-lang.c (c_language_defn): Update.
+       (cplus_language_defn): Likewise.
+       (asm_language_defn): Likewise.
+       (minimal_language_defn): Likewise.
+       * ada-lang.c (ada_language_defn): Update.
+
+2008-09-30  Joel Brobecker  <brobecker@adacore.com>
+
+       * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.
+       (get_scope_pc_bounds): Use it.
+
+2008-09-27  Tom Tromey  <tromey@redhat.com>
+
+       * NEWS: Update.
+       * macrocmd.c (extract_identifier): Add is_parameter argument.
+       (macro_define_command): Update.
+       (macro_undef_command): Likewise.
+       * macroexp.c (stringify): New function.
+       (find_parameter): Likewise.
+       (gather_arguments): Add nargs argument.  Handle varargs.
+       (substitute_args): Add is_varargs and va_arg_name arguments.
+       Handle varargs, splicing, stringification.  Use find_parameter.
+       (expand): Handle varargs.
+
+2008-09-27  Tom Tromey  <tromey@redhat.com>
+
+       * scm-lang.c (scm_language_defn): Update.
+       * p-typeprint.c (pascal_print_typedef): New function.
+       * p-lang.h: (pascal_print_typedef): Declare.
+       * p-lang.c (pascal_language_defn): Update.
+       * objc-lang.c (objc_language_defn): Update.
+       * m2-typeprint.c (m2_print_typedef): New function.
+       * m2-lang.h (m2_print_typedef): Declare.
+       * m2-lang.c (m2_language_defn): Update.
+       * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal):
+       Remove.
+       (struct language_defn) <la_print_typedef>: New field.
+       (default_print_typedef): Declare.
+       (LA_PRINT_TYPEDEF): New define.
+       * language.c (unknown_language_defn): Update.
+       (auto_language_defn): Update.
+       (local_language_defn): Update.
+       * jv-lang.c (java_language_defn): Update.
+       * f-lang.c (f_language_defn): Update.
+       * c-typeprint.c (c_print_typedef): New function.
+       * c-lang.h (c_print_typedef): Declare.
+       * c-lang.c (c_language_defn): Update.
+       (cplus_language_defn): Update.
+       (asm_language_defn): Update.
+       (minimal_language_defn): Update.
+       * ada-lang.c (ada_language_defn): Update.
+       * typeprint.c (default_print_typedef): New function.
+
+2008-09-27  Tom Tromey  <tromey@redhat.com>
+
+       * jv-exp.y (insert_exp): Define using ISO syntax.
+       (copy_exp): Likewise.
+       (push_expression_name): Likewise.
+       (push_fieldnames): Likewise.
+       (java_type_from_name): Likewise.
+       (yyerror): Likewise.
+       (yylex): Likewise.
+       (parse_number): Likewise.
+
+2008-09-26  Joel Brobecker  <brobecker@adacore.com>
+
+       * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.
+
+2008-09-25  Stephan Springl  <springl-gdb@bfw-online.de> (tiny change)
+
+       * stack.c (print_frame_args): Fix typos in comments.
+
+2008-09-25  Sérgio Durigan Júnior  <sergiodj@linux.vnet.ibm.com>
+
+       * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
+
+2008-09-24  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
+       
+2008-09-24  Andreas Schwab  <schwab@suse.de>
+
+       * frame.c (get_frame_register_bytes): Take pseudo registers into
+       account.  Avoid excessive function calls.
+
+2008-09-23  Doug Evans  <dje@google.com>
+
+       * dcache.c (state_chars): New static global.
+       (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
+       All uses updated.
+       (dcache_info): Print cache state as mnemonically useful letters instead
+       of magic numbers.
+
+       * dwarf2read.c (comp_unit_head): Reorganize for better packing.
+
+2008-09-22  Tom Tromey  <tromey@redhat.com>
+
+       * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
+       printf_filtered.
+
+2008-09-22  Pedro Alves  <pedro@codesourcery.com>
+
+       * infrun.c (follow_exec): Don't do a generic mourn.  Instead
+       inline the required bits.
+       * breakpoint.h (enum inf_context): Add inf_execd.
+
+2008-09-22  Pedro Alves  <pedro@codesourcery.com>
+
+       * infrun.c (handle_inferior_event): In the follow exec case,
+       context-switch before doing anything else.
+
+2008-09-22  Pedro Alves  <pedro@codesourcery.com>
+
+       * top.c (any_thread_of, kill_or_detach): New functions.
+       (quit_target): Iterate over all inferiors, killing or detaching
+       accordingly.
+
+2008-09-22  Pedro Alves  <pedro@codesourcery.com>
+
+       Remove the attach_flag global, and make it per-inferior.
+
+       * inferior.h (attach_flag): Delete.
+       (inferior_process): Declare.
+       * solib.c (update_solib_list): Adjust.
+       * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
+       * inf-ptrace.c (inf_ptrace_detach): Adjust.
+       (inf_ptrace_files_info): Get it from the current inferior.
+       * inf-ttrace.c (inf_ttrace_attach): Adjust.
+       (inf_ttrace_files_info): Get it from the current
+       inferior.
+       * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
+       (clear_sigint_trap): Get it from the current process.
+       * remote.c (extended_remote_attach_1)
+       (extended_remote_create_inferior_1): Adjust.
+       * top.c (quit_confirm, quit_target): Get it from the current inferior.
+       * procfs.c (do_detach): Adjust.
+       (procfs_wait): Get it from the event inferior.
+       (procfs_files_info): Get it from the current inferior.
+       * nto-procfs.c (procfs_files_info): Likewise.
+       (procfs_attach): Adjust.  Set the attach_flag here.
+       (do_attach): Don't set it here.
+       (procfs_detach): Don't clear it.
+       (procfs_mourn_inferior): Don't clear it.
+       * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
+       * target.c (attach_flag): Delete.
+       (generic_mourn_inferior): Don't clear it.
+       * win32-nat.c (get_win32_debug_event): Get it from the event
+       process.
+       (do_initial_win32_stuff): Add attaching argument.  Set attach_flag
+       in the inferior accordingly.
+       (win32_attach): Don't set the attach_flag here.  Pass 1 to
+       do_intial_win32_stuff.
+       (win32_files_info): Get it from the current inferior.
+       (win32_create_inferior): Dont clear attach_flag here.  Pass 0 to
+       do_intial_win32_stuff.
+
+2008-09-22  Pedro Alves  <pedro@codesourcery.com>
+
+       Make the stop_soon global be per-inferior instead.
+
+       * infcmd.c (attach_command_post_wait): Adjust.
+       (attach_command): Likewise.
+
+       * inferior.h (stop_soon): Delete.
+       (struct inferior): Add stop_soon member.
+
+       * infrun.c (stop_soon): Delete.
+       (clear_proceed_status, start_remote)
+       (fetch_inferior_event, handle_inferior_event): Adjust.
+       (signal_stop_state): Don't check stop_soon here.  Check in callers
+       instead.
+       (save_inferior_status, restore_inferior_status): Adjust.
+
+       * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
+       signals to common code if starting up the inferior.
+       
+       * inferior.h (struct inferior_info): Added stop_soon member.
+       * inferior.c (add_inferior) Clear stop_soon.
+
+       * mips-tdep.c (heuristic_proc_start): Adjust.
+       * nto-procfs.c (procfs_create_inferior): Adjust.
+       * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
+       * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
+       * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
+       * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
+
+       * win32-nat.c (do_initial_win32_stuff): Adjust.
+
+       * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
+
+2008-09-22  Pedro Alves  <pedro@codesourcery.com>
+
+       Implement remote multi-process extensions.
+
+       * remote.c (struct remote_state): Add extended and
+       multi_process_aware fields.
+       (remote_multi_process_p): New.
+       (PACKET_vKill): New.
+       (record_currthread): Use thread_change_ptid.  Notice new
+       inferiors.
+       (set_thread, remote_thread_alive): Use write_ptid.
+       (write_ptid, read_ptid): New.
+       (remote_current_thread, remote_threads_extra_info): Use them.
+       (remote_threads_info): Likewise.  Detect new inferiors.
+       (remote_start_remote): Add inferior to inferior list.
+       (remote_multi_process_feature): New.
+       (remote_protocol_features): Add "multiprocess" feature.
+       (remote_query_supported): Pass "multiprocess+" as supported
+       features.
+       (remote_open_1): Clear multi_process_aware.  Set extended
+       accordingly.
+       (remote_detach_1): Detach current process.  Use extended packet
+       format for extended-remote multi-process.  Detach process from the
+       inferior list.  Only mourn after printing output.
+       (extended_remote_attach_1): Add process to the inferior list.
+       (remote_vcont_resume): Use write_ptid to pass the thread ids.
+       (remote_wait): Use read_ptid.  Implement the extended
+       multi-process extension format of the 'W' and 'X' reply packets.
+       Remove exited inferiors from inferior list.
+       (remote_xfer_memory): Set general thread.
+       (remote_vkill): New.
+       (extended_remote_kill): New.
+       (remote_mourn_1): Discard all inferiors.
+       (select_new_thread_callback): New.
+       (extended_remote_mourn_1): If there are more processes to debug,
+       switch to a thread in another process, and don't pop the target.
+       (extended_remote_create_inferior_1): Add the new process to the
+       inferior list.
+       (remote_stopped_by_watchpoint): Indenting.
+       (remote_xfer_partial): Set the general thread.
+       (remote_pid_to_str): If the remote is multi-process aware, print
+       the process id as well as the thread id.
+       (remote_get_thread_local_address): Use write_ptid.
+       (init_extended_remote_ops): Register extended_remote_kill.
+       (_initialize_remote): Register new packets.  Change
+       magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
+       member to 42000.
+
+       * thread.c (thread_change_ptid): Also account for the inferior pid
+       changing.
+
+       * inferior.h (discard_all_inferiors): Declare.
+       * inferior.c (discard_all_inferiors): New.
+
+2008-09-22  Pedro Alves  <pedro@codesourcery.com>
+
+       * gnu-nat.c (gnu_attach): Add process to inferiors table.
+       (gnu_detach): Remove it.
+       * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
+       table.
+       * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
+       to inferior table accordingly.
+       (inf_ptrace_attach): Add new process to inferior table.
+       (inf_ptrace_detach): Remove it.
+       * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
+       to inferior table accordingly.
+       (inf_ttrace_attach): Add process to inferior table.
+       (inf_ttrace_detach): Remove it.
+       * linux-fork.c (init_fork_list): Delete any left over inferior.
+       (linux_fork_mourn_inferior, detach_fork_command): Also delete
+       processes from inferior list.
+       * monitor.c (monitor_open): Add process to inferior list.
+       (monitor_close): Remove it.
+       * nto-procfs.c (procfs_attach): Add process to inferior list.
+       Find threads after pushing the target.
+       (procfs_detach): Remove process from inferior list.
+       (procfs_create_inferior): Add process to inferior list.
+       * procfs.c (procfs_detach): Remove process from inferior list.
+       (do_attach): Add process to inferior list.
+       * remote-sim.c (sim_create_inferior): Add process to inferior list.
+       (gdbsim_close): Remove it.
+       * target.c (generic_mourn_inferior): If inferior_ptid is not
+       null_ptid, remove the corresponding inferior from inferior list.
+       * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
+       (win32_detach): Remove it.
+       * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
+       to inferior list accordingly.
+       * fork-child.c (fork_inferior): Add process to inferior list.
+       * corelow.c (CORELOW_PID): Define.
+       (core_close): Remove core from inferior list.
+       (core_open): Add it.
+
+2008-09-22  Pedro Alves  <pedro@codesourcery.com>
+
+       * inferior.h: Forward declare struct ui_out.
+       Forward declare struct private_inferior.
+       (struct inferior): New.
+       (init_inferior_list, add_inferior, add_inferior_silent)
+       (delete_inferior, delete_inferior_silent, detach_inferior)
+       (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
+       (valid_inferior_id, find_inferior_pid): New functions.
+       (inferior_callback_func): New typedef.
+       (iterate_over_inferiors, print_inferior, have_inferiors)
+       (current_inferior): New functions.
+       * inferior.c: New file.
+
+       * Makefile.in (SFILES): Add inferior.c.
+       (COMMON_OBS): Add inferior.o.
+
+2008-09-22  Jonathan Larmour  <jifl@eCosCentric.com>
+
+       * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
+       instead of determining symbol and line info directly.
+       * MAINTAINERS: Update my email address.
+
+2008-09-22  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
+       at the same address as a prologue marker.  Do not skip an entire
+       function.
+
 2008-09-22  Andrew Stubbs  <ams@codesourcery.com>
 
        * frame.c (get_frame_register_bytes): Comment improvments.
This page took 0.034612 seconds and 4 git commands to generate.