+2008-03-14 Pedro Alves <pedro@codesourcery.com>
+
+ * features/library-list.dtd: Allow "section" elements as children
+ of "library". Add "section" element and describe its attributes.
+
+ * solib-target.c (struct lm_info): Add section_bases member.
+ (library_list_start_segment): Error out if seen a section element.
+ (library_list_start_section): New.
+ (library_list_end_library): New.
+ (solib_target_free_library_list): Free section_bases.
+ (section_attributes): New.
+ (library_children): Make "segment" optional. Add "section" child.
+ (library_list_children): Register library_list_end_library.
+ (solib_target_relocate_section_addresses): Handle section bases.
+
+ * NEWS: Mention new qXfer:libraries:read section offsets support.
+
+2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
+
+ * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
+ (make_exec_error_cleanup): Remove declarations.
+ * utils.c (exec_error_cleanup_chain): Remove.
+ (do_exec_error_cleanups, discard_exec_error_cleanups)
+ (make_exec_error_cleanup): Remove.
+ * event-loop.c (start_event_loop): Adjust call to
+ async_enable_stdin.
+ * event-top.c (async_enable_stdin): Remove the paramater dummy.
+ (async_disable_stdin): Don't register async_enable_stdin via
+ cleanup.
+ * inf-loop.c (inferior_event_handler): Don't
+ call do_exec_error_cleanups. Call async_enable_stdin instead.
+ * event-loop.c (start_event_loop): Adjust call to
+ async_enable_stdin.
+ * tui/tui-interp.c (tui_command_loop): Adjust call to
+ async_enable_stdin.
+
+2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
+
+ Async mode fixes.
+ * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
+ * breakpoint.c (bpstat_do_actions): In async mode,
+ don't jump to top expecting stop_bpstat to be already
+ updated.
+ * event-loop.c (start_event_loop): Call async_enable_stdin
+ on exception.
+ * event-top.c (async_enable_stdin): Do nothing if sync_execution
+ is not set.
+ (command_handler): Do not setup continuation here.
+ (command_line_handler_continuation): Move to...
+ * top.c (command_line_handler_continuation): ... here.
+ (execute_command): In async mode, register continuation.
+ Don't check frame's language in running in async mode.
+ * exceptions.c (throw_exception): Don't do exec_error_cleanups.
+ * inf-loop.c (complete_execution): Inline into...
+ (inferior_event_handler): ... here. Clear target_executing before
+ doing any cleanups. Don't try to show prompt if the target was
+ resumed.
+ * infcmd.c (signal_command): Add support for async mode.
+ (finish_command): Only add continuation if the target was
+ successfully resumed.
+ * remote.c (init_async_opts): Register to_get_thread_local_address
+ handler.
+ * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
+ with sync_execution.
+ * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
+ on exception.
+
+2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
+ * exec.c (exec_bfd_mtime): Define.
+ (exec_close): Clear it.
+ (exec_file_attach): Set it.
+ * gdbcore.h (exec_bfd_mtime): Declare.
+ * source.c (find_source_lines): Do not use bfd_get_mtime.
+
+2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
+
+ * top.c (simplified_command_loop): Remove.
+
+2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
+
+ Remove unused remote.c hooks.
+ * remote.c (deprecated_target_resume_hook)
+ (deprecated_target_wait_loop_hook): Remove.
+ (remote_resume): Do not call deprecated_target_resume_hook.
+ (remote_wait): Do not call deprecated_target_wait_loop_hook.
+ (remote_async_wait): Likewise.
+
+2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
+
+ Implement MI notification for new threads.
+ * doc/observer.texi (new_thread): Document.
+ * observer.sh: Forward declare struct thread_info.
+ * thread.c (add_thread): Notify observer.
+
+ * interps.h (interp_init_ftype): New parameter
+ top_level.
+ (interp_set): Likewise.
+ (top_level_interpreter_data): Declare.
+ * interps.c (interp_set): New parameter top_level.
+ Pass it to interpreter's init function. Remember
+ top level interpreter.
+ (interpreter_exec_cmd): Adjust.
+ (top_level_interpreter_data): New.
+ * main.c (captured_main): Pass 1 for top_level
+ parameter of interp_set.
+ * cli/cli-interp.c (cli_interpreter_init): New
+ parameter top_level.
+ * tui/tui-interp.c (tui_init): New parameter top_level.
+
+ * mi/mi-interp.c (mi_new_thread): New.
+ (mi_interpreter_init): If top level, register
+ observer for new threads.
+
+ * Makefile.in (mi-interp.o, thread.o): Update dependencies.
+
+2008-03-14 Pedro Alves <pedro@codesourcery.com>
+
+ * top.c (execute_command): Disable break and stop
+ commands in async mode.
+
+2008-03-14 Pedro Alves <pedro@codesourcery.com>
+
+ revert:
+ 2008-03-14 Pedro Alves <pedro@codesourcery.com>
+ * inf-loop.c (inferior_event_handler): Don't include remote.h.
+ Call target_stop in the INF_QUIT_REQ case.
+ * Makefile.in (inf-loop.o): Update.
+
+2008-03-14 Pedro Alves <pedro@codesourcery.com>
+
+ * inf-loop.c (inferior_event_handler): Don't include remote.h.
+ Call target_stop in the INF_QUIT_REQ case.
+ * Makefile.in (inf-loop.o): Update.
+
+2008-03-14 Pedro Alves <pedro@codesourcery.com>
+
+ * top.c (execute_command): Enable break, info and interrupt
+ commands in async mode.
+
+2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
+ Daniel Jacobowitz <dan@codesourcery.com>
+
+ * breakpoint.h (breakpoint_restore_shadows): New
+ declaration.
+ * breakpoint.c (breakpoint_restore_shadows): New.
+ (read_memory_nobpt): Delete.
+ * gdbcore.h (read_memory_nobpt): Delete declaration.
+ * target.c (memory_xfer_partial): Call
+ breakpoint_restore_shadows.
+ (restore_show_memory_breakpoints)
+ (make_show_memory_beakpoints_cleanup): New.
+ (show_memory_breakpoints): New.
+ * target.h (make_show_memory_beakpoints_cleanup): Declare.
+ * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
+ Make sure we see memory breakpoints when checking if
+ breakpoint is still there.
+ * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
+ hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
+ m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
+ sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
+
+2008-03-12 Pedro Alves <pedro@codesourcery.com>
+
+ * thread.c (add_thread): Use printf_unfiltered to print.
+
+2008-03-12 Joel Brobecker <brobecker@gnat.com>
+
+ * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
+ that is true only on x86-solaris and x86_64-solaris.
+ * procfs.c: Likewise. Move procfs_find_LDT_entry up together
+ with proc_get_LDT_entry.
+
+2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
+ * config.in, configure: Regenerate.
+ * fork-child.c (fork_inferior): Call create_tty_session.
+ * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
+ (create_tty_session): New function.
+ * terminal.h: Declare create_tty_session.
+
+2008-03-12 Alan Modra <amodra@bigpond.net.au>
+
+ PR 5900
+ * elfread.c (elf_symtab_read): Make shndx an unsigned int.
+ * mipsread.c: Include elf/internal.h.
+ (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
+ to internal range.
+
+2008-03-11 Markus Deuling <deuling@de.ibm.com>
+
+ * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
+ to get at the current architecture and at the target specific vector.
+ Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
+ remove define of I387_ST0_REGNUM.
+
+ * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
+
+ (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
+ get at the current architecture
+ (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
+ parameter.
+
+ * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
+ I387_NUM_XMM_REGS and I387_MM0_REGNUM.
+
+ (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
+ I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
+ (I387_FSTAT_REGNUM): Add target specific vector as parameter.
+
+ (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
+ at the target specific vector.
+
+ (i386_get_longjmp_target): Use get_frame_arch to get at the current
+ architecture. Use gdbarch_tdep to get at the target specific vector.
+
+ (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
+ update caller. Use gdbarch_tdep to get at the target specific vector.
+
+ (i386_register_to_value: Use get_frame_arch to get at the current
+ architecture.
+
+ * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
+ parameter.
+
+ * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
+ I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
+ I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
+ FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
+
+ (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
+ undef's.
+
+ (i387_convert_register_p, i387_register_to_value,
+ i387_value_to_register): Update call for i386_fp_regnum_p.
+
+ * i387-tdep.h: Remove comment.
+ (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
+ (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
+ I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
+ I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
+ I387_MXCSR_REGNUM): Add target specific vector as parameter.
+
+2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (fork-child.o): Update.
+ * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
+ argument. Gather all gdbserver features together.
+ * fork-child.c (exec_wrapper): New variable.
+ (fork_inferior): Use it.
+ (startup_inferior): Skip an extra trap if using "set exec-wrapper".
+ (unset_exec_wrapper_command, _initialize_fork_child): New.
+
+2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
+
+ * source.c (directory_command): Modify the determination of
+ condition of terminal "from_tty".
+
+2008-03-10 Matt Rice <ratmice@gmail.com>
+
+ * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
+
+2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
+
+ * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
+ of the data passing to strtoulst function.
+ (info_spu_signal_command): Likewise.
+
+2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
+
+ * mi/mi-interp.c (mi_command_loop): Remove
+ commented-out code.
+
+2008-03-07 Joel Brobecker <brobecker@adacore.com>
+
+ * remote.c (extended_remote_attach_1): Make local variable pid an int
+ instead of a pid_t.
+
+2008-03-07 Joel Brobecker <brobecker@adacore.com>
+
+ * solib-svr4.c (svr4_same_1): New function, originally extracted
+ from svr4_same and expanded to handle the sparc64 case.
+ (svr4_same): Move up and reimplement using svr4_same_1.
+ (enable_break): Use svr4_same_1 to do shared library name comparisons.
+
+2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
+
+ * MAINTAINERS: Move self to Paper trail.
+
+2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
+ * event-loop.c (call_async_signal_handler): New.
+ * event-loop.h (call_async_signal_handler)
+ (gdb_call_async_signal_handler): Declare.
+ (mark_async_signal_handler): Add comments.
+ * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
+ * mingw-hdep.c (sigint_event, sigint_handler): New.
+ (gdb_select): Use them. Wait for the readline signal handler
+ to finish.
+ (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
+ * posix-hdep.c (gdb_call_async_signal_handler): New function.
+ * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
+ New.
+ (remote_fileio_ctrl_c_signal_handler): Use
+ gdb_call_async_signal_handler.
+ (initialize_remote_fileio): Initialize sigint_fileio_token.
+ * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
+ not initialize tokens here.
+ (handle_remote_sigint_twice): Likewise. Reinstall
+ handle_remote_sigint.
+ (async_remote_interrupt_twice): Just call interrupt_query.
+ (cleanup_sigint_signal_handler): Do not delete tokens.
+ (remote_interrupt, remote_interrupt_twice): Use
+ gdb_call_async_signal_handler.
+ (interrupt_query): Reinstall the default signal handler.
+ (_initialize_remote): Initialize tokens here.
+
+2008-03-04 Joel Brobecker <brobecker@adacore.com>
+
+ * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
+ features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
+ Change the type of the lr register to code_ptr.
+ * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
+ features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
+ features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
+ features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
+ features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
+ features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
+ features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
+
+2008-03-03 James E. Wilson <wilson@tuliptree.org>
+
+ * MAINTAINERS: Update my email address.
+
+2008-03-03 Keith Seitz <keiths@redhat.com>
+
+ From Dave Murphy <davem@devkitpro.org>:
+ * configure.ac: Set tcl configdir to win under mingw.
+ * configure: Regenerate.
+
+2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * breakpoint.c (fetch_watchpoint_value): New function.
+ (update_watchpoint): Set and clear val_valid. Use
+ fetch_watchpoint_value. Handle unreadable values on the
+ value chain. Correct check for user-requested array watchpoints.
+ (breakpoint_init_inferior): Clear val_valid.
+ (watchpoint_value_print): New function.
+ (print_it_typical): Use it. Do not free or clear old_val. Print
+ watchpoints even if old_val == NULL.
+ (watchpoint_check): Use fetch_watchpoint_value. Check for values
+ becoming readable or unreadable.
+ (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
+ (do_enable_watchpoint): Likewise.
+ * breakpoint.h (struct breakpoint): Update comment for val. Add
+ val_valid.
+ * NEWS: Mention watchpoints on inaccessible memory.
+
+2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (i386-nat.o): Update.
+ * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
+ i386_use_watchpoints.
+ * i386-linux-nat.c (_initialize_i386_linux_nat): Call
+ i386_use_watchpoints.
+ * i386-nat.c (i386_stopped_data_address): Take two arguments.
+ (i386_stopped_by_watchpoint): Update call.
+ (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
+ * config/i386/nm-i386.h: Conditionalize definitions on
+ ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
+ (i386_use_watchpoints): Declare.
+ (i386_stopped_data_address): Update.
+ * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
+ * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
+
+2008-02-29 Joel Brobecker <brobecker@adacore.com>
+
+ GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
+ * version.in: Bump version to 6.8.50.20080229-cvs.
+
+2008-02-28 Markus Deuling <deuling@de.ibm.com>
+
+ * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
+ properly.
+
+2008-02-28 Tom Tromey <tromey@redhat.com>
+
+ * infcmd.c (notice_args_read): Print result of get_inferior_args.
+
+2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * infcmd.c (kill_if_already_running): Make static. Use
+ target_require_runnable.
+ * target.c (target_require_runnable): New.
+ * target.h (target_require_runnable): Declare.
+
+2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * frame.c (reinit_frame_cache): Only annotate if frames were
+ previously valid.
+
+2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * regformats/reg-ppc.dat: Rename "ps" to "msr".
+ * regformats/reg-ppc64.dat: Likewise.
+
+2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * features/Makefile (%.dat): Emit xmltarget statement.
+
+ * regformats/regdat.sh: Support xmltarget and xmlarch statments.
+ Generate code to set gdbserver_xmltarget in init_registers_${name}.
+
+ * regformats/arm-with-iwmmxt.dat: Regenerate.
+ * regformats/mips64-linux.dat: Regenerate.
+ * regformats/mips-linux.dat: Regenerate.
+ * regformats/rs6000/powerpc-32.dat: Regenerate.
+ * regformats/rs6000/powerpc-64.dat: Regenerate.
+ * regformats/rs6000/powerpc-e500.dat: Regenerate.
+
+ * regformats/reg-arm.dat: Add xmlarch statement.
+ * regformats/reg-i386.dat: Likewise.
+ * regformats/reg-i386-linux.dat: Likewise.
+ * regformats/reg-x86-64-linux.dat: Likewise.
+ * regformats/reg-spu.dat: Likewise.
+
+2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * remote.c (remote_wait, remote_async_wait): Stop if we receive
+ an error.
+
+2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * utils.c (debug_timestamp): New.
+ (vfprintf_unfiltered): Print timestamps if requested.
+ (show_debug_timestamp): New.
+ (initialize_utils): Register "set debug timestamp".
+ * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
+
+2008-02-27 Joel Brobecker <brobecker@adacore.com>
+
+ * breakpoint.c (skip_prologue_sal): New function.
+ (resolve_sal_pc): Adjust SAL past prologue if the SAL was
+ computed from a line number.
+
+2008-02-27 Joel Brobecker <brobecker@adacore.com>
+
+ * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
+ features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
+ Set PC register type to "code_ptr".
+ * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
+ features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
+ features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
+ features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
+ features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
+ features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
+ features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
+ Regenerate.
+
+2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * regformats/regdat.sh: Rename init_registers function in
+ generated file to init_registers_${name}.
+
+ * regformats/reg-crisv32.dat: Set "name" to crisv32.
+ * regformats/reg-ppc64.dat: Set "name" to ppc64.
+ * regformats/reg-s390x.dat: Set "name" to s390x.
+
+2008-02-26 Greg Law <glaw@undo-software.com>
+
+ * regcache.c (registers_changed): Call reinit_frame_cache.
+
+2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
+ * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
+ and svr4_fetch_objfile_link_map.
+ * Makefile.in (sh-linux-tdep.o): Update.
+
+2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * amd64-tdep.c (amd64_classify): Add support for decimal float
+ types.
+ * i386-tdep.c (i386_return_value): Make 128-bit decimal float
+ use the struct return convention.
+
+2008-02-26 Nick Roberts <nickrob@snap.net.nz>
+
+ * breakpoint.c (print_one_breakpoint_location): Revert Enb field
+ to old format. Discard breakpoint address if shared library is
+ unloaded.
+ (breakpoint_1): Adjust formatting of table header accordingly.
+
+2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
+
+ * remote.c (remote_get_threadlist): If the response
+ is empty, don't try to parse it.
+
2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
Unbreak 'target async'.