+2009-05-24 Pedro Alves <pedro@codesourcery.com>
+
+ * inflow.c (copy_terminal_info): Deep copy `run_terminal'.
+
+2009-05-24 Pedro Alves <pedro@codesourcery.com>
+
+ * gdbthread.h (struct thread_info): New `pending_follow' field.
+ * thread.c (new_thread): New function.
+ (add_thread_silent): Use it.
+ * breakpoint.c (internal_breakpoint_number): New global, moved
+ from inside...
+ (create_internal_breakpoint): ... this.
+ (clone_momentary_breakpoint): New.
+ * breakpoint.h (clone_momentary_breakpoint): Declare.
+ * infrun.c (nullify_last_target_wait_ptid): Move declaration
+ higher.
+ (pending_follow): Delete.
+ (follow_fork): Handle pending follow fork event here. Moved the
+ preserving of thread stepping state here.
+ (resume): Don't handle pending follow fork events here. Only
+ install the inferior's terminal modes if we're about to resume it.
+ (proceed): Handle possible pending follow fork events here.
+ (init_wait_for_inferior): No need to clear pending_follow anymore,
+ it's gone.
+ (handle_inferior_event): Adjust to per-thread `pending_follow'.
+ Call `follow_fork' to handle following the fork. If the
+ follow-fork is cancelled, stop stepping.
+ * linux-nat.c (linux_child_follow_fork): Adjust to per-thread
+ `pending_follow' events. Remove code that handled preserving the
+ thread stepping state.
+ * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
+ * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
+
+2009-05-24 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * symfile.c (add_shared_symbol_files_command): Remove
+ prototype and function.
+ (_initialize _symfile): Move "add-shared-symbol-files"
+ command and "assf" alias.
+ * windows-nat.c (_initialize_windows_nat): to here.
+ Change "add-shared-symbol-files" to alias.
+
+ * config/i386/cygwin.mh: Remove NAT_FILE.
+ * config/i386/mingw.mh: Remove NAT_FILE.
+ * config/i386/mingw64.mh: Remove NAT_FILE.
+ * config/i386/nm-cygwin.h: Remove file.
+ * config/i386/nm-cygwin64.h: Remove file.
+
+2009-05-24 Hui Zhu <teawater@gmail.com>
+
+ * i386-linux-tdep.c (I386_LINUX_RECORD_SIZE_*,
+ I386_LINUX_RECORD_IOCTL_*,
+ I386_LINUX_RECORD_FCNTL_*) Removed.
+ (i386_linux_init_abi): Change size of record from macros to
+ numbers.
+
+2009-05-24 Hui Zhu <teawater@gmail.com>
+
+ * i386-linux-tdep.c (i386_linux_init_abi): Remove size_char.
+ * linux-record.c (record_linux_system_call): Ditto.
+ * linux-record.h (linux_record_tdep): Ditto.
+
+2009-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Replace the savestring calls by xstrdup calls where possible.
+ * breakpoint.c (condition_command, set_raw_breakpoint)
+ (create_catchpoint, update_breakpoint_locations): Replace the
+ savestring calls by xstrdup calls where possible.
+ * buildsym.c (start_subfile, patch_subfile_names, record_debugformat)
+ (record_producer): Likewise.
+ * coffread.c (coff_start_symtab, complete_symtab): Likewise.
+ * corefile.c (set_gnutarget): Likewise.
+ * dbxread.c (add_new_header_file): Likewise.
+ * demangle.c (set_demangling_command, set_demangling_style): Likewise.
+ * event-top.c (push_prompt, pop_prompt, command_line_handler)
+ (set_async_prompt): Likewise.
+ * infcmd.c (set_inferior_io_terminal, attach_command_post_wait):
+ Likewise.
+ * language.c (set_language_command, _initialize_language): Likewise.
+ * linespec.c (decode_line_2): Likewise.
+ * rs6000-nat.c (add_vmap): Likewise.
+ * top.c (set_prompt, init_history, init_main): Likewise.
+ * tracepoint.c (stringify_collection_list): Likewise.
+ * varobj.c (varobj_create): Remove variable expr_len. Replace the
+ savestring calls by xstrdup calls where possible.
+ (value_of_root, c_name_of_variable, c_describe_child): Replace the
+ savestring calls by xstrdup calls where possible.
+ * xcoffread.c (complete_symtab): Likewise.
+ * cli/cli-script.c (build_command_line, define_command): Likewise.
+ * cli/cli-setshow.c (do_setshow_command): Likewise.
+
+2009-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Remove already unreachable code.
+ * varobj.c (varobj_get_handle): Fix comment when error is called.
+ All callers updated.
+
+2009-05-23 Eli Zaretskii <eliz@gnu.org>
+
+ * README (`configure' options): Document GDB-specific options to
+ `configure'.
+
+ * symtab.c (skip_prologue_using_lineinfo): New function.
+ (find_function_start_sal): Use it to get to the first line of
+ function's body that has an entry in the lineinfo table.
+
+ * symmisc.c (dump_symtab): Switch the current language to
+ the language of the symtab we are dumping only if the symtab's
+ language is neither language_auto nor language_unknown.
+
+ * coffread.c (coff_symtab_read): Set language_minimal as the
+ language for the "_globals_" pseudo-file.
+ (process_coff_symbol): Set the symbol's language to the language
+ of current_subfile.
+
+2009-05-22 Pedro Alves <pedro@codesourcery.com>
+
+ * target.h (struct section_table): Rename to ...
+ (struct target_section): ... this.
+ * exec.c: Adjust all references.
+ * exec.h: Adjust all references.
+ * nto-tdep.c: Adjust all references.
+ * nto-tdep.h: Adjust all references.
+ * ppc-linux-tdep.c: Adjust all references.
+ * rs6000-nat.c: Adjust all references.
+ * s390-tdep.c: Adjust all references.
+ * solib-darwin.c: Adjust all references.
+ * solib-frv.c: Adjust all references.
+ * solib-irix.c: Adjust all references.
+ * solib-null.c: Adjust all references.
+ * solib-osf.c: Adjust all references.
+ * solib-pa64.c: Adjust all references.
+ * solib-som.c: Adjust all references.
+ * solib-sunos.c: Adjust all references.
+ * solib-svr4.c: Adjust all references.
+ * solib-target.c: Adjust all references.
+ * solib.c: Adjust all references.
+ * solist.h: Adjust all references.
+ * symfile.c: Adjust all references.
+ * symfile.h: Adjust all references.
+ * target.c: Adjust all references.
+
+2009-05-22 Hui Zhu <teawater@gmail.com>
+
+ Add sys_fcntl argument interfaces to linux_record_tdep.
+
+ * linux-record.h (linux_record_tdep): Add fcntl_F_GETLK,
+ fcntl_F_GETLK64, fcntl_F_SETLK64 and fcntl_F_SETLKW64 to be
+ interfaces.
+ * i386-linux-tdep.c (I386_LINUX_RECORD_FCNTL_F_GETLK,
+ I386_LINUX_RECORD_FCNTL_F_GETLK64,
+ I386_LINUX_RECORD_FCNTL_F_SETLK64,
+ I386_LINUX_RECORD_FCNTL_F_SETLKW64): New macros. The values
+ of I386 Linux sys_fcntl arguments.
+ (i386_linux_init_abi): Set macros values to linux_record_tdep.
+ * linux-record.c (record_linux_system_call): Change to use
+ the interface in linux_record_tdep in sys_fcntl and
+ sys_fcntl64.
+
+ * linux-record.c (record_linux_system_call): Fix the process
+ record build error about type in CYGWIN.
+
+2009-05-22 Pedro Alves <pedro@codesourcery.com>
+
+ * inflow.c (kill_command): Delete left over static declaration.
+
+2009-05-22 Pedro Alves <pedro@codesourcery.com>
+
+ * bfd-target.c: Don't include gdb_assert.h or gdb_string.h.
+ Include exec.h.
+ (struct section_closure): Delete.
+ (add_to_section_table): Delete.
+ (build_target_sections_from_bfd): Delete.
+ (target_bfd_xfer_partial): Use section_table_xfer_memory_partial.
+ (target_bfd_reopen): Use build_section_table.
+ * exec.c (xfer_memory): Move most code except for overlay
+ debugging support from here...
+ (section_table_xfer_memory): ... to this new function.
+ (section_table_xfer_memory_partial): New.
+ * exec.h (section_table_xfer_memory_partial): Declare.
+ * bfd-target.h (build_target_sections_from_bfd): Delete
+ declaration.
+
+2009-05-22 Pedro Alves <pedro@codesourcery.com>
+
+ * remote.c (compare_sections_command): Don't declare exec_bfd.
+ * tracepoint.c: Include "gdbcore.h".
+ (remote_set_transparent_ranges): Don't declare exec_bfd.
+
+2009-05-21 Pedro Alves <pedro@codesourcery.com>
+
+ * aix-thread.c (init_aix_thread_ops): Whitespace.
+
+2009-05-21 Pedro Alves <pedro@codesourcery.com>
+
+ * dec-thread.c (dec_thread_wait): Add options parameter. Use it
+ to call the to_wait method in the target beneath.
+ * remote-m32r-sdi.c (m32r_wait): Add options parameter.
+
+2009-05-21 Joel Brobecker <brobecker@adacore.com>
+
+ * aix-thread.c (aix_thread_wait): Add options parameter. Use it
+ to call the to_wait method in the target_beneath.
+
+2009-05-21 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-nat.c (linux_nat_terminal_inferior)
+ (linux_nat_terminal_ours): Don't check sync_execution.
+ * remote.c (remote_terminal_inferior, remote_terminal_ours):
+ Don't check sync_execution. Update comments.
+ * target.c (target_terminal_inferior): New.
+ * target.h (target_terminal_inferior): Delete macro, and declare
+ as function.
+ * event-top.c (async_disable_stdin): Make idempotent. Don't give
+ the target the terminal here.
+ * inflow.c (terminal_ours_1): Don't return early without setting
+ `terminal_is_ours'.
+
+2009-05-21 Pedro Alves <pedro@codesourcery.com>
+
+ * target.h (TARGET_WNOHANG): New.
+ * target.c (target_wait): Add `options' argument. Adjust.
+ (struct target_ops) <to_wait>: Add `options' argument.
+ (target_wait): Add `options' argument.
+ * infrun.c (wait_for_inferior): Pass 0 as options to
+ target_wait (blocking wait).
+ (fetch_inferior_event): Pass TARGET_WNOHANG as options to
+ target_wait.
+ * fork-child.c (startup_inferior): Pass 0 as options to
+ target_wait (blocking wait).
+ * linux-nat.c (linux_nat_create_inferior): Remove async masking.
+ (linux_nat_wait_1): Add `target_options' argument. Use it instead
+ of checking on target_can_async_p.
+ (linux_nat_wait): Add `target_options' argument. Adjust.
+ * remote.c (remote_wait_ns): Add `options' argument. Adjust to
+ check on TARGET_WNOWAIT instead of checking on remote_is_async_p.
+ (remote_wait_as): Add `options' argument. Adjust to check on
+ TARGET_WNOWAIT instead of checking on remote_is_async_p. If doing
+ a blocking wait, keep waiting until an interesting event comes
+ out.
+ (remote_wait): Add `options' argument. Don't loop here if the
+ target is in async mode, and a blocking wait has been requested.
+
+ * top.c (deprecated_target_wait_hook): Add `options' argument.
+ * linux-thread-db.c (thread_db_wait): Add `options' argument, and
+ pass it down to the layer beneath.
+ * inf-ptrace.c (inf_ptrace_wait): Add `options' argument.
+ * record.c (record_beneath_to_wait): Add `options' argument.
+ (record_wait): Add `options' argument, and pass it down to the
+ layer beneath.
+ * bsd-uthread.c (bsd_uthread_wait): Add `options' argument.
+ * darwin-nat.c (darwin_wait): Likewise.
+ * defs.h (deprecated_target_wait_hook): Likewise.
+ * gnu-nat.c (gnu_wait): Add `options' argument.
+ * go32-nat.c (go32_wait): Likewise.
+ * hpux-thread.c (hpux_thread_wait): Add `options' argument, and
+ pass it down to the layer beneath.
+ * inf-ttrace.c (inf_ttrace_wait): Add `options' argument.
+ * monitor.c (monitor_wait): Likewise.
+ * nto-procfs.c (procfs_wait): Likewise.
+ * remote-mips.c (mips_wait): Add `options' argument.
+ * remote-sim.c (gdbsim_wait): Likewise.
+ * rs6000-nat.c (rs6000_wait): Add `options' argument.
+ * sol-thread.c (sol_thread_wait): Add `options' argument, and pass
+ it down to the layer beneath.
+ * spu-linux-nat.c (spu_child_wait): Add `options' argument.
+ * windows-nat.c (windows_wait): Likewise.
+ * tui/tui-hooks.c (tui_target_wait_hook): Likewise. Adjust.
+
+2009-05-21 Pedro Alves <pedro@codesourcery.com>
+
+ * mi/mi-interp.c (mi_on_resume): Account for whole process
+ resumes.
+
+2009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * m2-exp.y (MAX_FUNC): Fix trailing UNOP_MAX.
+
+2009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2read.c (set_cu_language): Recognize also DW_LANG_C99.
+
+2009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix parsing DW_AT_const_value using DW_FORM_string.
+ * dwarf2read.c (dwarf2_const_value <DW_FORM_string>): New.
+
+2009-05-20 Joel Brobecker <brobecker@adacore.com>
+
+ * aix-thread.c (giter_count): Do not count the main thread.
+ (giter_accum): Do not include the main thread.
+
+2009-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Remove the PROT parameter from openp.
+ * source.c (openp): Remove the parameter PROT. Assertion check MODE.
+ defs.h (openp): Update the prototype.
+ Update all the openp callers.
+
+2009-05-19 Pedro Alves <pedro@codesourcery.com>
+
+ * inflow.c (kill_command): Moved to infcmd.c.
+ (_initialize_inflow): Don't add the "kill" command or clear
+ inferior_ptid here.
+ * infcmd.c (kill_command): Moved here from inflow.c.
+ (_initialize_infcmd): Add the "kill" command here.
+
+2009-05-19 Pedro Alves <pedro@codesourcery.com>
+
+ * fork-child.c: Don't include frame.h. Include terminal.h.
+ (fork_inferior): Call new_tty_postfork after forking adn adding
+ the child to the inferior list.
+ * inferior.h (new_tty_prefork, gdb_has_a_terminal): Don't declare
+ here.
+ * inflow.c (struct terminal_info): Remove const qualifier from
+ `run_terminal' field.
+ (inferior_thisrun_terminal): Tweak comment.
+ (inflow_inferior_exit): Release the `run_terminal' field.
+ (copy_terminal_info): New function.
+ (new_tty_postfork): New function.
+ * terminal.h (new_tty_prefork, new_tty, new_tty_postfork,
+ (copy_terminal_info, gdb_has_a_terminal, gdb_setpgid): Declare.
+ * inf-ptrace.c: Include terminal.h.
+ (inf_ptrace_follow_fork): Copy the parent's terminal info to the
+ child.
+ * linux-nat.c: Include terminal.h.
+ (linux_child_follow_fork): Copy the parent's terminal info to the
+ child.
+ * inf-ttrace.c: Include terminal.h.
+ (inf_ttrace_follow_fork): Copy the parent's terminal info to the
+ child.
+
2009-05-19 Pedro Alves <pedro@codesourcery.com>
* breakpoint.c (insert_breakpoints, breakpoint_init_inferior)
2009-01-14 Kai Tietz <kai.tietz@onevision.com>
- * mingw-ser.c (console_select_thread): Add return to make
+ * ser-mingw.c (console_select_thread): Add return to make
compiler happy.
(pipe_select_thread): Likewise.
(file_select_thread): Likewise.