+2009-03-18 Doug Evans <dje@google.com>
+
+ * linux-nat.c (linux_nat_find_memory_regions): Result of PIDGET is an
+ int, not a long long.
+ (linux_nat_info_proc_cmd): Store pid in long instead of long long.
+
+ * expprint.c (dump_raw_expression): Print note if non-NULL.
+
+ * printcmd.c (display_uses_solib_p): Redo loop, scan element list
+ backwards.
+
+2009-03-18 Nathan Sidwell <nathan@codesourcery.com>
+
+ * Makefile.in: Update license to GPLv3.
+ * ada-exp.y: Update license to GPLv3.
+ * ada-lex.l: Update license to GPLv3.
+ * c-exp.y: Update license to GPLv3.
+ * cp-name-parser.y: Update license to GPLv3.
+ * darwin-nat-info.c: Update license to GPLv3.
+ * f-exp.y: Update license to GPLv3.
+ * gdb_thread_db.h: Update license to GPLv3.
+ * hppanbsd-nat.c: Update license to GPLv3.
+ * hppanbsd-tdep.c: Update license to GPLv3.
+ * hppaobsd-tdep.c: Update license to GPLv3.
+ * jv-exp.y: Update license to GPLv3.
+ * m2-exp.y: Update license to GPLv3.
+ * objc-exp.y: Update license to GPLv3.
+ * p-exp.y: Update license to GPLv3.
+ * reply_mig_hack.awk: Update license to GPLv3.
+ * reverse.c: Update license to GPLv3.
+ * xtensa-xtregs.c: Update license to GPLv3.
+
+2009-03-18 Pedro Alves <pedro@codesourcery.com>
+
+ * remote.c (remote_close): Don't call generic_mourn_inferior.
+ (remote_mourn_1): Call generic_mourn_inferior after closing the
+ target.
+
+2009-03-18 Pedro Alves <pedro@codesourcery.com>
+
+ * remote.c (remote_start_remote): Add missing call to
+ init_wait_for_inferior in non-stop mode.
+
+2009-03-18 Pedro Alves <pedro@codesourcery.com>
+
+ * breakpoint.c (bpstat_should_step): Only consider software
+ watchpoints that have a location.
+
+2009-03-17 Joel Brobecker <brobecker@adacore.com>
+
+ Add a target_ops parameter to the to_kill method in struct target_ops.
+
+ * target.h (struct target_ops): Add a "target_ops *" parameter to
+ method to_kill.
+ (target_kill): Remove macro. Add declaration.
+ * target.c (debug_to_kill): Delete, no longer necessary.
+ (target_kill): New function.
+ (update_current_target): Stop inheriting the to_kill method.
+ Do not de_fault it to no_process either.
+ (setup_target_debug): Do not set current_target.to_kill.
+ * gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c,
+ linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c,
+ remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update
+ accordingly.
+
+2009-03-17 Doug Evans <dje@google.com>
+
+ * amd64-linux-nat.c (si_timerid,si_overrun): Provide definition for
+ glibc 2.3.2 and earlier.
+
+2009-03-17 Joel Brobecker <brobecker@adacore.com>
+
+ * frame.c (get_prev_frame_1): Do not perform the inner_frame
+ sanity check if this_frame is not NORMAL.
+ (frame_id_inner): Update the description of this function.
+
+2009-03-17 Hui Zhu <teawater@gmail.com>
+
+ * stack.c: Change the introduce of "disassemble-next-line".
+
+2009-03-17 Pedro Alves <pedro@codesourcery.com>
+
+ * mi/mi-main.h (mi_print_timing_maybe): Add strict prototype,
+ declare as extern.
+
+2009-03-17 Hui Zhu <teawater@gmail.com>
+
+ * stack.c: Include valprint.h.
+ (disassemble_next_line): New enum.
+ (show_disassemble_next_line): New function. Show the current
+ value of disassemble-next-line.
+ (gdb_disassembly_stub_args): New struct for argument passing
+ between function do_gdb_disassembly and function
+ gdb_disassembly_stub.
+ (gdb_disassembly_stub): New function. Helper for
+ gdb_disassembly.
+ (do_gdb_disassembly): New function. Use TRY_CATCH to catch
+ the exception from the gdb_disassembly because it will be
+ broken by filter sometime.
+ (print_frame_info): If disassemble-next-line is set to auto
+ or on and doesn't have the line debug messages for $pc,
+ output the next instruction.
+ If disassemble-next-line is set to on and there is line debug
+ messages, output assembly codes for next line.
+ (_initialize_stack): Make the "set disassemble-next-line"
+ command an auto-boolean command. Change its class to
+ class_stack. Place it in the top level set list. Extend help
+ to describe the auto mode.
+
+2009-03-17 Pedro Alves <pedro@codesourcery.com>
+
+ * infrun.c (normal_stop): Don't overwrite old_chain.
+
+2009-03-16 Joel Brobecker <brobecker@adacore.com>
+
+ * remote-mips.c (mips_load): Replace call to regcache_set_valid_p,
+ which is undefined, by call to regcache_invalidate, which should
+ do what the original author wanted to do.
+
+2009-03-16 Joel Brobecker <brobecker@adacore.com>
+
+ * remote-mips.c (mips_mourn_inferior): Add missing ops parameter.
+ (mips_create_inferior): Likewise.
+
+2009-03-16 Joel Brobecker <brobecker@adacore.com>
+
+ * go32-nat.c (go32_create_inferior): Add missing ops parameter.
+
+2009-03-16 Joel Brobecker <brobecker@adacore.com>
+
+ * darwin-nat.c (darwin_resume): Fix a compiler warning when
+ building on x86_64-darwin.
+
+2009-03-16 Tristan Gingold <gingold@adacore.com>
+
+ * configure.tgt: Add handling for x86_64-darwin.
+
+2009-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * auxv.c (fprint_target_auxv): New TAG for AT_RANDOM.
+
+2009-03-15 Joel Brobecker <brobecker@adacore.com>
+
+ * aix-thread.c (aix_thread_thread_alive, aix_thread_pid_to_str):
+ Use the ops parameter to get to the target beneath, rather than
+ using the current_target global. Using the current_target global
+ was an unintended accident.
+
+2009-03-15 Joel Brobecker <brobecker@adacore.com>
+
+ Fix an error happening while loading symbols from a core file
+ (on AIX).
+
+ * rs6000-nat.c (xcoff_relocate_symtab): Use target_has_execution
+ to detect whether we're debugging a core file or not.
+
+2009-03-15 Joel Brobecker <brobecker@adacore.com>
+
+ Modernize the aix-thread later by getting rid of the base_target
+ global. This brings back to life the AIX port which was otherwise
+ crashing all the time.
+
+ * aix-thread.c (base_target): Delete.
+ (pd_enable): Do not set base_target.
+ (aix_thread_attach): Use find_target_beneath instead of base_target.
+ (aix_thread_detach, aix_thread_resume, aix_thread_wait)
+ (aix_thread_fetch_registers, aix_thread_store_registers),
+ (aix_thread_xfer_partial, aix_thread_mourn_inferior)
+ (aix_thread_thread_alive, aix_thread_pid_to_str): Likewise.
+ (aix_thread_kill): Delete. Does not seem necessary.
+ (init_aix_thread_ops): Do not set aix_thread_ops.to_kill.
+
+2009-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * stack.c (return_command <retval_exp>): New variables retval_expr
+ and old_chain. Inline parse_and_eval to initialize retval_expr. Check
+ RETVAL_EXPR for UNOP_CAST and set RETURN_TYPE to the RETURN_VALUE type
+ if RETURN_TYPE is NULL.
+
+>>>>>>> 1.10280
+2009-03-14 Pedro Alves <pedro@codesourcery.com>
+
+ * remote.c (PACKET_qAttached): New.
+ (remote_query_attached): New.
+ (remote_add_inferior): Add new `attached' argument. Handle it.
+ (remote_notice_new_inferior, remote_start_remote): Adjust to pass
+ -1 to remote_add_inferior in new parameter.
+ (extended_remote_attach_1): Adjust to pass 1 to
+ remote_add_inferior in the new parameter.
+ (extended_remote_create_inferior_1): Adjust to pass 0 to
+ remote_add_inferior in the new parameter.
+ (_initialize_remote): Add "set/show remote query-attached-packet"
+ commands.
+
+2009-03-13 Tom Tromey <tromey@redhat.com>
+
+ * symtab.c (lookup_symbol_in_language): Use a cleanup.
+
+2009-03-13 Doug Evans <dje@google.com>
+
+ * exceptions.h: Clean up some comments on catch_exceptions usage.
+ * exceptions.c: Ditto. Plus mark catch_errors as superseded by
+ catch_exceptions.
+
+2009-02-17 Joel Brobecker <brobecker@adacore.com>
+
+ The following patch helps getting rid of a warning inside solib-som.c.
+
+ * source.c (source_full_path_of): Constify parameter filename.
+ * defs.h (source_full_path_of): Update declaration accordingly.
+
+2009-03-12 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (ada_evaluate_subexp): Merge case BINOP_REM and
+ BINOP_MOD cases with the handling of case BINOP_DIV and BINOP_MUL.
+ Remove useless op value checks when EVAL_AVOID_SIDE_EFFECTS.
+
+2009-03-12 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (ada_evaluate_subexp) <BINOP_DIV>: make sure to
+ promote the operands when noside is EVAL_AVOID_SIDE_EFFECTS.
+
+2009-03-12 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-tasks.c (ada_task_is_alive): Move up and make static.
+ * ada-lang.h (ada_task_is_alive): Remove declaration.
+
+2009-03-12 Jerome Guitton <guitton@adacore.com>
+
+ * ada-lang.c (ada_delta): Change the type of numerators and
+ denominators to DOUBLEST, as they may not fit into a long.
+ (scaling_factor): Ditto.
+
+2009-03-12 Jerome Guitton <guitton@adacore.com>
+
+ * language.c (lang_bool_type): Set lai->bool_type_symbol to NULL.
+
+2009-03-12 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: For tagged
+ types, if we are unable to determine the actual symbol type
+ from its tag, then use the static approximation instead.
+
+2009-03-12 Joel Brobecker <brobecker@adacore.com>
+
+ Fix crash printing packed record with packed array.
+
+ * ada-lang.c (ada_modulus_from_name): New function.
+ (ada_modulus): In the case where the type length is bigger than
+ the size of the type used to hold the bounds, try determining
+ the modulus from the type name.
+ (ada_value_primitive_packed_val): Fix bug in the computation of
+ ntarg causing an out-of-buffer invalid access.
+
+2009-03-12 Joel Brobecker <brobecker@adacore.com>
+
+ Fix segfault when printing short_integer'last.
+
+ * ada-lang.c (ada_find_any_type): Search in the primitive types
+ if a symbol could not be found.
+
+2009-03-12 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-tasks.c (task_states,long_task_states): Add new states
+ Activating and Acceptor_Delay_Sleep. Update the description
+ of state Acceptor_Sleep.
+
+2009-03-12 Jonas Maebe <jonas.maebe@elis.ugent.be> (obvious change)
+
+ Fix a build failure on Darwin following some changes in
+ the profile of some target_ops methods.
+
+ * darwin-nat.c (darwin_kill_inferior): Add target_ops parameter
+ where missing.
+ (darwin_stop_inferior, darwin_detach): Likewise.
+
+2009-03-12 Vladimir Prus <vladimir@codesourcery.com>
+
+ Include token in ^running notification for CLI commands.
+
+ * mi/mi-main.c (mi_execute_command): Set current_token here.
+ (mi_cmd_execute): Do not set current_token here.
+
+2009-03-12 Vladimir Prus <vladimir@codesourcery.com>
+
+ Fix MI timings.
+
+ * mi/mi-main.c (mi_print_timing_maybe): New.
+ (captured_mi_execute_command): Simplify. Output timings to
+ CLI commands, too.
+ (mi_execute_async_cli_command): Do not print timings.
+ * mi/mi-main.h (mi_print_timing_maybe): Declare.
+ * mi/mi-interp.c (mi_on_normal_stop): Call mi_print_timing_maybe.
+
+2009-03-12 Jerome Guitton <guitton@adacore.com>
+
+ * xcoffread.c (process_linenos): Check if the line in the
+ include table refers to the main source file and, if so,
+ add them to the main subfile.
+
+2009-03-12 Joel Brobecker <brobecker@adacore.com>
+
+ Fix a build failure on AIX introduced after a change in the profile
+ of some of the "methods" in the target_ops structure.
+ * aix-thread.c: Add missing target_ops parameter throughout.
+
+ Implement Ada task switching on AIX.
+ * aix-thread.c (aix_thread_get_ada_task_ptid): New function.
+ (init_aix_thread_ops): Set aix_thread_ops.to_get_ada_task_ptid.
+
+2009-03-11 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * breakpoint.c (bpstat_check_breakpoint_conditions): Use
+ value_mark and value_free_to_mark.
+ * objfiles.c (free_objfile): Call objfile_free_data before
+ freeing the BFD.
+
+2009-03-10 Hui Zhu <teawater@gmail.com>
+
+ * disasm.c (gdb_disassembly): Remove unused argument
+ "line_num".
+ * disasm.h (gdb_disassembly): Ditto.
+ * cli/cli-cmds.c (print_disassembly): Ditto.
+ * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
+
+2009-03-09 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * solib.c (solib_contains_address_p): New function.
+ (solib_name_from_address): Use it.
+ * printcmd.c (display_uses_solib_p): Use it.
+ * solib.h (solib_contains_address_p): Declare it.
+
+2009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * varobj.c (free_variable): Call value_free.
+
+2009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ PR gdb/9873:
+ * dwarf2read.c (dwarf_decode_macros): New variable `at_commandline'.
+ Move the variable `macinfo_type' out of the loop. Create a new
+ processing pass before the current one to pre-create `current_file'.
+ New complaint on misplaced zero/non-zero definitions/includes.
+ Skip first DW_MACINFO_start_file with `at_commandline' set.
+
+2008-03-09 Vladimir Prus <vladimir@codesourcery.com>
+
+ * solib.c (reload_shared_libraries): Give
+ inferior a chance to reset solib breakpoint.
+ Reinit frame cache.
+
+2009-03-08 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * windows-nat.c (dr): Redefine to use largest possible integer which
+ holds a pointer.
+ (cygwin_set_dr): Avoid coercion.
+
+2009-03-08 Oswald Buddenhagen <oswald.buddenhagen@trolltech.de>
+
+ * windows-nat.c (windows_create_inferior): Implement --tty handling on
+ non-cygwin.
+
+2009-03-06 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ Rename solib_address to solib_name_from_address.
+ * breakpoint.c (insert_bp_location, disable_breakpoints_in_shlibs)
+ (disable_breakpoints_in_unloaded_shlib): Update.
+ * printcmd.c (display_uses_solib_p): Likewise.
+ * stack.c (print_frame): Likewise.
+ * solib.c: Rename.
+ * solib.h: Rename.
+
+2009-03-05 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * printcmd.c (do_one_display): Reparse exp_string.
+ (display_uses_solib_p): New function.
+ (clear_dangling_display_expressions): New function.
+ (_initialize_printcmd): Add observer.
+ * solib.c (no_shared_libraries): Swap order of calls to
+ clear_solib and objfile_purge_solibs.
+
+2009-03-05 Joel Brobecker <brobecker@adacore.com>
+
+ Implement the target-specific part of Ada tasking support
+ on Tru64.
+
+ * dec-thread.c (dec_thread_get_ada_task_ptid): New function.
+ (init_dec_thread_ops): Set the to_get_ada_task_ptid method.
+
+2009-03-05 Joel Brobecker <brobecker@adacore.com>
+
+ Get rid of the global "base_target" and use "find_target_beneath"
+ to find the underlying target.
+ * dec-thread.c (base_target): Delete.
+ (enable_dec_thread): Remove assignement to base_target.
+ (dec_thread_detach, dec_thread_wait, dec_thread_wait)
+ (dec_thread_fetch_registers, dec_thread_store_registers)
+ (dec_thread_mourn_inferior, dec_thread_pid_to_str):
+ Update the function profile if necessary.
+ Use find_target_beneath to call the same method but from
+ the underlying target, removing the need for "base_target".
+
+ * dec-thread.c (dec_thread_get_regsets, dec_thread_set_regsets):
+ Fix a copy/paste error in a few debug traces...
+
+ * solib-osf.c (init_so): Use a simpler method for computing
+ the size of lm_info structure. This also gets rid of warning
+ emitted by the compiler.
+
+2009-03-05 Pedro Alves <pedro@codesourcery.com>
+
+ * breakpoint.c (check_duplicates_for): Skip permanent breakpoints
+ duplicates of permanent breakpoints.
+
+2009-03-04 Pedro Alves <pedro@codesourcery.com>
+
+ * inferior.h (notice_new_inferior): Declare.
+ * infcmd.c (notice_new_inferior): New.
+ * remote.c (remote_add_inferior, remote_add_thread): New.
+ (notice_new_inferiors): Rename to...
+ (remote_notice_new_inferior): ... this. Add RUNNING argument.
+ Use remote_add_thread instead of add_thread, passing it the
+ RUNNING argument. Add an inferior with remote_add_inferior. If
+ we just learned about an inferior, call notice_new_inferior.
+ (record_currthread): Adjust.
+ (remote_threads_info): Adjust to use remote_notice_new_inferior.
+ (remote_start_remote, extended_remote_attach_1): Use
+ remote_add_inferior.
+ (process_stop_reply): Adjust. Call remote_notice_new_inferior
+ after handling expedited registers and watchpoint state.
+ (extended_remote_create_inferior_1): Use remote_add_inferior.
+
+2009-03-04 Aleksandar Ristovski <aristovski@qnx.com>
+
+ * infcmd.c (registers_info): Remove register number case.
+
+2009-03-03 Pedro Alves <pedro@codesourcery.com>
+
+ * top.c (quit_target): Check for target_has_execution before
+ killing or detaching from inferiors.
+
+2009-03-02 Joel Brobecker <brobecker@adacore.com>
+
+ Remove some unused routines.
+
+ * ada-lang.c (is_suppressed_name, ada_suppress_symbol_printing):
+ Delete.
+ * ada-lang.c (ada_task_list_iterator_ftype)
+ (iterate_over_live_ada_tasks): Delete.
+ * ada-tasks.c (ada_get_environment_task, iterate_over_live_ada_tasks):
+ Delete.
+
+2009-03-01 Doug Evans <dje@google.com>
+
+ * symtab.c: Remove trailing whitespace throughout the file.
+ (expand_line_sal): Fix some typos and whitespace.
+
+ * Makefile.in (clean): rm -f $(DEPDIR)/*.
+
+ * Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.
+ (init.c): signals/ -> common/.
+ (signals.o): Update.
+ * target.h (target_signal_to_string,target_signal_to_string)
+ (target_signal_from_name,target_signal_to_host_p)
+ (target_signal_from_host,target_signal_to_host): Move to ...
+ * common/gdb_signals.h: ... here. New file.
+ * common/signals.c: Moved here from signals/signals.c.
+ #include gdb_signals.h, remove #include of target.h in gdb case.
+ (target_signal_from_command,default_target_signal_to_host)
+ (default_target_signal_from_host): Move inside #ifndef GDBSERVER.
+
+ Include thread ID in target_wait debugging output.
+ * infrun.c (print_target_wait_results): New function.
+ (wait_for_inferior,fetch_inferior_event): Call it.
+
+2009-02-27 Pedro Alves <pedro@codesourcery.com>
+
+ * gdb_proc_service.h (struct ps_prochandle): Replace pid_t field
+ with a ptid_t field.
+ * linux-thread-db.c (thread_get_info_callback): Build the ptid
+ using the pid stored in proc_handle.ptid.
+ (thread_from_lwp, thread_db_attach_lwp, enable_thread_event)
+ (check_for_thread_db, thread_db_detach, check_event)
+ (thread_db_mourn_inferior, find_new_threads_callback)
+ (thread_db_find_new_threads_1): Adjust.
+ * proc-service.c (ps_xfer_memory, ps_lgetregs, ps_lsetregs)
+ (ps_lgetfpregs, ps_lsetfpregs, ps_getpid): Adjust.
+
+2009-02-27 Phil Muldoon <pmuldoon@redhat.com>
+
+ * valprint.c (read_string): Rework clean-up logic. Use
+ free_current_contents to clean-up buffer.
+
+2009-02-27 Andreas Schwab <schwab@linux-m68k.org>
+
+ * MAINTAINERS: Update e-mail address.
+
+2009-02-26 Phil Muldoon <pmuldoon@redhat.com>
+
+ * python/python-utils.c (python_string_to_unicode): Always return
+ a new reference.
+ (python_string_to_target_string): Decrement transient python
+ instance.
+ (python_string_to_host_string): Likewise.
+
+2007-02-26 Pedro Alves <pedro@codesourcery.com>
+
+ * mips-linux-nat.c (mips64_linux_fetch_registers): Pass `ops' to
+ call to super_fetch_registers.
+ (mips64_linux_store_registers): Pass `ops' to call to
+ super_store_registers.
+
+2009-02-25 Doug Evans <dje@google.com>
+
+ * breakpoint.c (insert_bp_location): Add \n to overlay breakpoint
+ error message.
+
+ * breakpoint.c (disable_breakpoints_in_shlibs): Delete local
+ disabled_shlib_breaks, unused.
+
+ * printcmd.c (build_address_symbolic): Fix comment.
+
+2009-02-25 Hui Zhu <teawater@gmail.com>
+
+ * cli/cli-script.c (define_command): Add _() to query.
+ * gnu-nat.c (inf_validate_task_sc): Ditto.
+ * infcmd.c (kill_if_already_running): Ditto.
+ (jump_command): Ditto.
+ (attach_command): Ditto.
+ * inflow.c (kill_command): Ditto.
+ * infrun.c (handle_command): Ditto.
+ * maint.c (maintenance_dump_me): Ditto.
+ * memattr.c (mem_delete_command): Ditto.
+ * monitor.c (monitor_interrupt_query): Ditto.
+ * nto-procfs.c (interrupt_query): Ditto.
+ * printcmd.c (undisplay_command): Ditto.
+ * remote-mips.c (mips_kill): Ditto.
+ * remote.c (interrupt_query): Ditto.
+ * solib-irix.c (irix_open_symbol_file_object): Ditto.
+ * solib-osf.c (osf_open_symbol_file_object): Ditto.
+ * solib-pa64.c (pa64_open_symbol_file_object): Ditto.
+ * solib-som.c (som_open_symbol_file_object): Ditto.
+ * solib-svr4.c (open_symbol_file_object): Ditto.
+ * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
+ * target.c (kill_or_be_killed): Ditto.
+ * tracepoint.c (delete_trace_command): Ditto.
+ * top.c (quit_confirm): Add _() to s that will be used
+ in query.
+
+2009-02-24 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ Fix windows-nat.c compilation failure.
+
+ * windows-nat.c (windows_thread_alive): Fix forward declaration.
+ (get_windows_debug_event): Add ops parameter to call to windows_resume.
+
+2009-02-23 Pedro Alves <pedro@codesourcery.com>
+
+ * remote-sim.c (gdbsim_resume): Add target_ops* argument.
+
+2009-02-23 Jay Krell <jay.krell@cornell.edu> (tiny change)
+
+ * symtab.c (find_line_symtab): Initialize exact to avoid
+ a compiler warning.
+
+2009-02-23 Pedro Alves <pedro@codesourcery.com>
+
+ * i386-linux-nat.c (i386_linux_fetch_inferior_registers): Pass
+ `ops' to recursive call.
+
+2009-02-23 Pedro Alves <pedro@codesourcery.com>
+
+ * corelow.c (get_core_registers): Adjust.
+ (core_file_thread_alive): Rename to...
+ (core_thread_alive): ... this.
+ (core_pid_to_str): Try gdbarch_core_pid_to_str first.
+ (init_core_ops): Adjust.
+ (coreops_suppress_target): Delete.
+ (_initialize_corelow): Unconditionally add core_ops.
+ * procfs.c: Include "inf-child.h".
+ (procfs_ops): Delete.
+ (init_procfs_ops): Delete. Reimplement as...
+ (procfs_target): ... this, inheriting from inf-child.
+ (procfs_attach, procfs_detach, procfs_fetch_registers): Adjust.
+ (procfs_prepare_to_store): Delete.
+ (procfs_store_registers, procfs_resume): Adjust.
+ (procfs_open): Delete.
+ (procfs_suppress_run): Delete.
+ (procfs_can_run): Delete.
+ (procfs_mourn_inferior): Adjust.
+ (procfs_init_inferior): Add target_ops parameter. Adjust.
+ (procfs_create_inferior): Don't pass procfs_init_inferior to
+ fork_inferior. Instead call it after fork_inferior returns.
+ (procfs_find_new_threads): Adjust.
+ (_initialize_procfs): Adjust to use procfs_target instead of
+ init_procfs_ops.
+ * sol-thread.c (orig_core_ops, sol_core_ops): Delete.
+ (lwp_to_thread): Use target_thread_alive.
+ (sol_thread_open): Delete.
+ (sol_thread_attach): Delete.
+ (sol_thread_detach, sol_thread_resume, sol_thread_wait)
+ (sol_thread_fetch_registers, sol_thread_store_registers): Adjust
+ to use find_target_beneath.
+ (sol_thread_prepare_to_store, sol_thread_xfer_memory): Delete.
+ (sol_thread_xfer_partial): Adjust to use find_target_beneath.
+ (sol_thread_files_info, sol_thread_kill_inferior): Delete.
+ (check_for_thread_db): New.
+ (sol_thread_notice_signals, sol_thread_create_inferior): Delete.
+ (sol_thread_new_objfile): Call check_for_thread_db.
+ (sol_thread_mourn_inferior): Adjust to use find_target_beneath.
+ (sol_thread_can_run): Delete.
+ (sol_thread_alive): Adjust to use find_target_beneath.
+ (sol_thread_stop): Delete.
+ (rw_common): Use target_write_memory or target_read_memory.
+ (ps_lgetregs, ps_lgetfpregs): Use target_fetch_registers.
+ (ps_lsetregs, ps_lsetfpregs): Use target_store_registers.
+ (solaris_pid_to_str): Remove check for libthread_db initialization
+ failing.
+ (sol_find_new_threads): Remove check for libthread_db
+ initialization failing, or for an invalid inferior_ptid. Adjust
+ to use find_target_beneath.
+ (sol_core_open, sol_core_close, sol_core_detach,
+ sol_core_files_info, sol_find_memory_regions,
+ sol_make_note_section, ignore): Delete.
+ (init_sol_thread_ops): Make it a thread_stratum target. Remove
+ unneeded callback settings.
+ (init_sol_core_ops): Delete.
+ (_initialize_sol_thread): No longer call init_sol_core_ops, set
+ procfs_suppress_run, or hack with core_ops.
+
+ * target.h (struct target_ops): Add a target_ops * parameter to
+ to_resume, to_fetch_registers, to_store_registers, to_thread_alive
+ and to_find_new_threads.
+ (target_fetch_registers, target_store_registers)
+ (target_thread_alive, target_find_new_threads): Redeclare as
+ function.
+
+ * target.c (update_current_target): Do not inherit or de_fault
+ to_resume, to_fetch_registers, to_store_registers,
+ to_thread_alive, to_find_new_threads.
+ (target_resume): Adjust.
+ (target_thread_alive, target_find_new_threads): New.
+ (debug_to_resume, debug_to_fetch_registers): Delete.
+ (target_fetch_registers): New.
+ (debug_to_store_registers): Delete.
+ (target_store_registers): New.
+ (debug_to_thread_alive, debug_to_find_new_threads): Delete.
+ (setup_target_debug): Adjust.
+
+ * gdbcore.h (core_ops): Delete declaration.
+
+ * inf-ptrace.c, linux-nat.c, remote.c, amd64-linux-nat.c,
+ inf-child.c, linux-thread-db.c, bsd-uthread.c, inf-ttrace.c,
+ i386-sol2-tdep.c, darwin-nat.c, gnu-nat.c, go32-nat.c,
+ hpux-thread.c, i386-linux-nat.c, i386fbsd-nat.c, monitor.c,
+ nto-procfs.c, remote-m32r-sdi.c, remote-mips.c, windows-nat.c,
+ alphabsd-nat.c, amd64bsd-nat.c, arm-linux-nat.c, armnbsd-nat.c,
+ bsd-kvm.c, hppa-hpux-nat.c, hppa-linux-nat.c, hppabsd-nat.c,
+ hppanbsd-nat.c, i386-darwin-nat.c, i386bsd-nat.c,
+ ia64-linux-nat.c, m32r-linux-nat.c, m68kbsd-nat.c,
+ m68klinux-nat.c, m88kbsd-nat.c, mips-linux-nat.c,
+ mips64obsd-nat.c, mipsnbsd-nat.c, ppc-linux-nat.c, ppcnbsd-nat.c,
+ ppcobsd-nat.c, remote-sim.c, rs6000-nat.c, s390-nat.c,
+ shnbsd-nat.c, sparc-nat.c, sparc-nat.h, spu-linux-nat.c,
+ vaxbsd-nat.c, xtensa-linux-nat.c: Adjust to target_ops changes.
+
+ * gdbarch.sh (core_pid_to_str): New gdbarch callback.
+ * gdbarch.h, gdbarch.c: Regenerate.
+
+ * sol2-tdep.c: Include "inferior.h".
+ (sol2_core_pid_to_str): New.
+ * sol2-tdep.h (sol2_core_pid_to_str): Declare.
+
+ * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
+ * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
+ * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
+ * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
+
+2009-02-22 Doug Evans <dje@google.com>
+
+ * exec.c (exec_file_attach): Fix comment.
+
+2009-02-22 Pedro Alves <pedro@codesourcery.com>
+
+ Silence a few -Wmissing-prototypes warnings.
+
+ PR build/9877:
+ * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Make
+ it static.
+ * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Declare.
+ * amd64fbsd-tdep.c (amd64fbsd_init_abi): Make it static.
+ * amd64nbsd-tdep.c (_initialize_amd64nbsd_ndep): Rename to ...
+ (_initialize_amd64nbsd_tdep): ... this.
+ * arm-linux-tdep.c (arm_linux_software_single_step): Make it static.
+ (_initialize_arm_linux_tdep): Declare.
+ * armbsd-tdep.c (armbsd_fpreg_offset): Make it static.
+ * armnbsd-tdep.c (_initialize_arm_netbsd_tdep): Declare.
+ * armobsd-tdep.c (_initialize_armobsd_tdep): Declare.
+ * avr-tdep.c (avr_return_value): Make it static.
+ (avr_frame_unwind_cache): Ditto.
+ * bsd-uthread.c (bsd_uthread_inferior_created): Ditto.
+ (bsd_uthread_solib_loaded): Ditto.
+ (bsd_uthread_solib_unloaded): Ditto.
+ (bsd_uthread_target): Ditto.
+ (_initialize_bsd_uthread): Declare.
+ * cris-tdep.c (crisv32_single_step_through_delay): Make it static.
+ (cris_frame_unwind_cache): Ditto.
+ * frv-tdep.c (frv_return_value): Ditto.
+ * h8300-tdep.c (h8300_use_struct_convention): Ditto.
+ (h8300h_use_struct_convention): Ditto.
+ * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend):
+ Ditto.
+ * hppa-tdep.h (hppa_low_sign_extend, hppa_sign_extend): Delete
+ declarations.
+ * hppabsd-tdep.c: Include hppabsd-tdep.h.
+ (hppabsd_find_global_pointer): Make it static.
+ * hppabsd-tdep.h: New.
+ * hppanbsd-tdep.c: Include hppabsd-tdep.h.
+ (hppabsd_init_abi): Remove declaration.
+ (_initialize_hppabsd_tdep): Remove declaration.
+ (_initialize_hppanbsd_tdep): Declare.
+ * hppaobsd-tdep.c: Include hppabsd-tdep.h.
+ (hppabsd_init_abi): Delete declaration.
+ (hppaobsd_init_abi): Make it static.
+ * i386-nto-tdep.c (_initialize_i386nto_tdep): Declare.
+ * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Declare.
+ * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Declare.
+ * ia64-tdep.c (ia64_register_reggroup_p): Make it static.
+ * iq2000-tdep.c (_initialize_iq2000_tdep): Declare.
+ * m32c-tdep.c (m32c_register_reggroup_p): Make it static.
+ (m32c_analyze_prologue, m32c_virtual_frame_pointer): Ditto.
+ (_initialize_m32c_tdep): Declare.
+ * m32r-rom.c (_initialize_m32r_rom): Declare.
+ * m32r-tdep.c (m32r_skip_prologue): Make it static.
+ (m32r_return_value): Ditto.
+ * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Make it static.
+ (m68hc11_return_value): Ditto.
+ * m68klinux-tdep.c (_initialize_m68k_linux_tdep): Declare.
+ * m88k-tdep.c (m88k_frame_cache): Make it static.
+ * mep-tdep.c (mep_gdb_print_insn): Ditto.
+ (mep_return_value): Ditto.
+ (_initialize_mep_tdep): Declare.
+ * mips-irix-tdep.c (_initialize_mips_irix_tdep): Declare.
+ * mips-linux-tdep.c (supply_64bit_reg): Make it static.
+ (mips_linux_syscall_next_pc): Ditto.
+ (_initialize_mips_linux_tdep): Declare.
+ * mips-tdep.c (mips_single_step_through_delay): Make it static.
+ * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Declare.
+ * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Declare.
+ * mn10300-tdep.c (_initialize_mn10300_tdep): Declare.
+ * mt-tdep.c (_initialize_mt_tdep): Declare.
+ * nbsd-tdep.c: Include nbsd-tdep.h.
+ * nto-tdep.c (find_load_phdr): Make it static.
+ (_initialize_nto_tdep): Declare.
+ * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Make it
+ static.
+ (_initialize_ppc_linux_tdep): Declare.
+ * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint)
+ (m32r_insert_watchpoint, m32r_remove_watchpoint)
+ (m32r_stopped_data_address, m32r_stopped_by_watchpoint): Make
+ static.
+ * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Declare.
+ * rs6000-nat.c: Include xcoffread.h.
+ (find_toc_address): Don't extern declare get_toc_offset. Adjust
+ to call xcoff_get_to_offset.
+ * rs6000-tdep.c (ppc_vsx_support_p, ppc_displaced_step_fixup)
+ (rs6000_skip_main_prologue, rs6000_in_solib_return_trampoline)
+ (rs6000_skip_trampoline_code): Make static.
+ * s390-tdep.c (s390_regset_from_core_section): Ditto.
+ * sh-tdep.c (sh_register_reggroup_p): Ditto.
+ * shnbsd-tdep.c (shnbsd_regset_from_core_section): Ditto.
+ (_initialize_shnbsd_tdep): Declare.
+ * solib-frv.c (displacement_from_map): Make static.
+ (_initialize_frv_solib): Declare.
+ * solib-irix.c (fetch_lm_info): Make static.
+ (_initialize_irix_solib): Declare.
+ * solib-som.c: Include solib-som.h.
+ (som_solib_select): Line break.
+ * sparc-tdep.c (sparc_regset_from_core_section): Make static.
+ * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Rename to ...
+ (_initialize_sparcnbsd_tdep): ... this.
+ * spu-tdep.c (spu_software_single_step): Make it static.
+ (_initialize_spu_tdep): Declare.
+ * vax-tdep.c (vax_frame_cache): Make it static.
+ * xcoffread.c: Include xcoffread.h.
+ (get_toc_offset): Rename to ...
+ (xcoff_get_toc_offset): ... this.
+ (_initialize_xcoffread): Declare.
+ * xcoffread.h: New.
+ * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Declare.
+ * xtensa-tdep.c (xtensa_skip_prologue, xtensa_derive_tdep): Make
+ static.
+ (_initialize_xtensa_tdep): Declare.
+
+2008-02-21 Pedro Alves <pedro@codesorcery.com>
+
+ Silence a few -Wmissing-prototypes warnings.
+
+ PR build/9877:
+ * amd64-nat.c: Include "amd64-nat.h".
+ * fork-child.c (_initialize_fork_child): Ditto.
+ * gcore.c (_initialize_gcore): Ditto.
+ * inf-ptrace.c: Include "inf-ptrace.h".
+ (inf_ptrace_store_registers): Make it static.
+ * linux-nat.c (linux_nat_terminal_ours): Make it static.
+ (_initialize_linux_nat): Declare before definition.
+ * linux-tdep.c: Include "linux-tdep.h".
+ * linux-thread-db.c (_initialize_thread_db): Declare before
+ definition.
+ * proc-service.c (_initialize_proc_service): Ditto.
+ * remote.c (remote_send_printf): Make it static.
+ * solib.c: Include "solib.h".
+ * symfile-mem.c (_initialize_symfile_mem): Declare before
+ definition.
+ * ada-lang.c (ada_la_decode, ada_match_name)
+ (ada_suppress_symbol_printing, ada_is_array_type)
+ (ada_value_ptr_subscript, ada_array_length)
+ (ada_to_static_fixed_value): Make them static.
+ (_initialize_ada_language): Declare before definition.
+ * ada-tasks.c (ada_get_task_number, ada_get_environment_task)
+ (ada_task_list_changed, ada_new_objfile_observer): Make them
+ static.
+ (_initialize_tasks): Declare before definition.
+ * addrmap.c (_initialize_addrmap): Declare before definition.
+ * auxv.c (default_auxv_parse): Make it static.
+ * bfd-target.c (target_bfd_xfer_partial, target_bfd_xclose): Make
+ them static.
+ * breakpoint.c (remove_sal): Add line break.
+ (expand_line_sal_maybe): Make it static.
+ * cp-name-parser.y: Include "cp-support.h".
+ * cp-valprint.c (cp_find_class_member): Make it static.
+ * eval.c (value_f90_subarray): Ditto.
+ * exceptions.c (print_any_exception): Ditto.
+ * findcmd.c (_initialize_mem_search): Declare before definition.
+ * frame.c (frame_observer_target_changed): Make it static.
+ * gnu-v3-abi.c (gnuv3_find_method_in): Make it static.
+ * inf-child.c: Include "inf-child.h".
+ * inferior.h (valid_inferior_id): Rename to ...
+ (valid_gdb_inferior_id): ... this.
+ * infrun.c (infrun_thread_stop_requested, siginfo_make_value):
+ Make them static.
+ * jv-lang.c (java_language_arch_info): Make it static.
+ * m2-typeprint.c (m2_get_discrete_bounds): Ditto.
+ * osdata.c (info_osdata_command): Make it static.
+ * regcache.c (regcache_observer_target_changed): Make it static.
+ * reverse.c (_initialize_reverse): Declare before definition.
+ * stabsread.c (cleanup_undefined_types_noname)
+ (cleanup_undefined_types_1): Make them static.
+ * symfile.c (place_section): Make it static.
+ * symtab.c (find_pc_sect_psymtab_closer): Make it static.
+ * target-descriptions.c (_initialize_target_descriptions): Declare
+ before definition.
+ * target.c (default_get_ada_task_ptid, find_default_can_async_p)
+ (find_default_is_async_p, find_default_supports_non_stop): Make
+ them static.
+ (target_supports_non_stop): Add prototype.
+ (dummy_pid_to_str): Make it static.
+ * utils.c (_initialize_utils): Declare before definition.
+ * ada-exp.y (_initialize_ada_exp): Declare before definition.
+ * solib-svr4.c (HAS_LM_DYNAMIC_FROM_LINK_MAP): Add a prototype.
+ * target.h (struct target_ops): Add a prototype to the
+ to_can_execute_reverse callback.
+ * macroscope.c (_initialize_macroscope): Declare before definition.
+ * cp-namespace.c (_initialize_cp_namespace): Declare before definition.
+ * python/python.c (_initialize_python): Declare before definition.
+ * tui/tui-command.c: Include "tui/tui-command.h".
+ * tui/tui-data.c (init_content_element, init_win_info): Make them
+ static.
+ * tui/tui-disasm.c: Include "tui/tui-disasm.h".
+ * tui/tui-interp.c (_initialize_tui_interp): Declare before
+ definition.
+ * tui/tui-layout.c: Include "tui/tui-layout.h".
+ (_initialize_tui_layout): Declare before definition.
+ * tui/tui-regs.c: Include "tui/tui-regs.h".
+ (tui_display_reg_element_at_line): Make it static.
+ (_initialize_tui_regs): Declare before definition.
+ * tui/tui-stack.c (_initialize_tui_stack): Declare before
+ definition.
+ * tui/tui-win.c: Include "tui/tui-win.h".
+ (_initialize_tui_win): Declare before definition.
+ (tui_sigwinch_handler): Make it static. Wrap in ifdef SIGWINCH.
+ * tui/tui-win.h (tui_sigwinch_handler): Delete declaration.
+ (tui_get_cmd_list): Add a prototype.
+ * tui/tui-windata.c: Include tui-windata.h.
+ * tui/tui-wingeneral.c (box_win): Make it static.
+ * cli/cli-logging.c (show_logging_command): Make it static.
+ (_initialize_cli_logging): Declare before definition.
+ * mi/mi-common.c (_initialize_gdb_mi_common): Declare before
+ definition.
+
+2009-02-20 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ Extend use of i386_use_watchpoints to all i386 native files
+ using hardware watchpoints.
+ * go32-nat.c (init_go32_ops): Call i386_use_watchpoints.
+ * i386fbsd-nat.c (_initialize_i386fbsd_nat): Ditto.
+ * windows-nat.c (init_windows_ops): Ditto.
+ * config/i386/nm-cygwin.h: Define I386_WATCHPOINTS_IN_TARGET_VECTOR.
+ * config/i386/nm-cygwin64.h: Ditto.
+ * config/i386/nm-fbsd.h: Ditto.
+ * config/i386/nm-go32.h: Ditto.
+
+2009-02-19 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-typeprint.c (ada_typedef_print): Remove. Unused.
+
+2009-02-18 Vladimir Prus <vladimir@codesourcery.com>
+
+ * mi/mi-interp.c (mi_solib_loaded, mi_solib_unloaded): New.
+ (mi_interpreter_init): Register the above.
+ * solib.c (clear_solib): Notify solib unload.
+ * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Do not
+ disable breakpoints on a.out targets.
+
+2009-02-17 Vladimir Prus <vladimir@codesourcery.com>
+
+ * observer.c (observer_test_first_notification_function)
+ (observer_test_second_notification_function)
+ (observer_test_third_notification_function): Adjust prototype.
+
+2009-02-17 Pedro Alves <pedro@codesourcery.com>
+
+ * Makefile.in (ALL_64_TARGET_OBS): Add amd64-dicos-tdep.o.
+ (ALL_TARGET_OBS): Add dicos-tdep.o.
+ (ALLDEPFILES): Add amd64-dicos-tdep.c and dicos-tdep.c.
+ * configure.tgt (i[34567]86-*-dicos*): Add dicos-tdep.o to
+ gdb_target_obs.
+ (x86_64-*-dicos*): Add dicos-tdep.o and amd64-dicos-tdep.o to
+ gdb_target_obs.
+ * dicos-tdep.h, dicos-tdep.c: New.
+ * amd64-dicos-tdep.c: New.
+ * i386-dicos-tdep.c: Don't include solib.h, solib-target.h or
+ inferior.h. Include dicos-tdep.h.
+ (i386_dicos_init_abi): Call dicos_init_abi.
+ (i386_dicos_bfd_has_symbol_p): Delete.
+ (i386_dicos_osabi_sniffer): Use dicos_load_module_p.
+
+ * NEWS: Mention x86-64 DICOS target support.
+
+2009-02-16 Doug Evans <dje@google.com>
+
+ * amd64-tdep.c (amd64_skip_prefixes): Renamed from skip_prefixes.
+ All callers updated.
+ (amd64_get_insn_details): Handle more 3-byte opcode insns.
+ (amd64_breakpoint_p): Delete.
+ (amd64_displaced_step_fixup): When fixing up after stepping an int3,
+ don't back up pc to the start of the int3.
+ * i386-tdep.c: #include opcode/i386.h.
+ (i386_skip_prefixes): New function.
+ (i386_absolute_jmp_p): Constify argument.
+ (i386_absolute_call_p,i386_ret_p,i386_call_p,i386_syscall_p): Ditto.
+ (i386_breakpoint_p): Delete.
+ (i386_displaced_step_fixup): Handle unnecessary or redundant prefixes.
+ When fixing up after stepping an int3, don't back up pc to the start
+ of the int3.
+
+2009-02-16 Pedro Alves <pedro@codesourcery.com>
+
+ * corelow.c (core_close): Don't hardcode the core's pid.
+ (core_open): Find core threads before calling
+ post_create_inferior.
+ (add_to_thread_list, get_core_register_section): Take into account
+ systems where the regset section names encode the pid of the
+ inferior.
+
+ * gdbarch.sh (core_reg_section_encodes_pid): New gdbarch setting.
+ * gdbarch.h, gdbarch.c: Regenerate.
+
+ * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
+ * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
+ * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
+ * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
+
+2009-02-14 Vladimir Prus <vladimir@codesourcery.com>
+
+ Include frame information for *stopped due to CLI commands.
+
+ * ada-tasks.c (ada_normal_stop_observer): Adjust prototype.
+ * infcmd.c (finish_command_continuation): Pass '1' for
+ 'print_frame' parameter to the observer.
+ * infrun.c (normal_stop): Don't print mi-specific information
+ here. Pass 'stop_print_frame' to the 'print_frame' parameter
+ of the observer.
+ * mi/mi-interp.c (mi_on_normal_stop): Adjust prototype.
+ If we need to print frame, and current uiout is not the MI one,
+ print frame again.
+
+2009-02-13 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * xtensa-tdep.c (call0_analyze_prologue): Delete BSZ macro.
+ Replace BSZ macro uses by XTENSA_ISA_BSZ macro.
+
+2009-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ PR fortran/9806
+ * dwarf2read.c (process_die <DW_TAG_module>, read_module)
+ (scan_partial_symbols <DW_TAG_module>, add_partial_module): New.
+