* linux-nat.c (linux_nat_wait): Adjust.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index ac2419d3a50f896878b63a5dd6922556c8e4b1b0..aab098d3f3679edbec605a61e44e0fcf23e72920 100644 (file)
@@ -1,3 +1,113 @@
+2009-02-06  Pedro Alves  <pedro@codesourcery.com>
+
+       * linux-nat.c (linux_nat_wait): Adjust.
+       (linux_nat_pid_to_str): Adjust.  Remove call to thread_db_init.
+       * linux-nat.h (thread_db_init): Delete declaration.
+       * linux-thread-db.c (target_beneath): Delete.
+       (thread_db_init): Delete.
+       (thread_db_detach): Use find_target_beneath.
+       (thread_db_wait): Adjust interface.  Use find_target_beneath.
+       (thread_db_mourn_inferior): Use find_target_beneath.
+       (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
+       (thread_db_async_mask): Delete.
+       (thread_db_pid_to_str): Adjust interface.  Use
+       find_target_beneath.
+       (thread_db_get_thread_local_address): Adjust interface.  Use
+       find_target_beneath.
+       (init_thread_db_ops): Delete references to delete functions.
+       * target.c (update_current_target): Don't inherit or default
+       to_wait.  Don't inherit to_pid_to_str and
+       to_get_thread_local_address.
+       (target_translate_tls_address): Look for a pushed target that
+       implements to_get_thread_local_address, and use it instead of
+       checking for target_get_thread_local_address_p.
+       (target_wait, target_pid_to_str): Reimplement as functions.
+       (dummy_pid_to_str): New.
+       (init_dummy_target): Register it.
+       (debug_to_wait): Delete.
+       * target.h (struct target_ops): Make to_wait, to_pid_to_str and
+       to_get_thread_local_address accept a pointer to struct target_ops.
+       (target_wait): Delete macro, and declare as function.
+       (target_pid_to_str): Likewise.
+       (target_get_thread_local_address)
+       (target_get_thread_local_address_p): Delete.
+       (noprocess): Add NORETURN and ATTR_NORETURN tags.
+       * inf-ptrace.c (inf_ptrace_wait): Adjust.
+       (inf_ptrace_pid_to_str): New.
+       (inf_ptrace_target): Use inf_ptrace_pid_to_str.
+       * aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust.
+       * bsd-kvm.c (bsd_kvm_pid_to_str): Adjust.
+       * bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str):
+       Adjust.
+       * corelow.c (core_pid_to_str): Adjust.
+       * darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust.
+       * dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust.
+       * gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust.
+       * go32-nat.c (go32_wait, go32_pid_to_str): Adjust.
+       * hpux-thread.c (hpux_thread_wait): Adjust.
+       * inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust.
+       * monitor.c (monitor_wait, monitor_pid_to_str): Adjust.
+       * nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust.
+       * procfs.c (procfs_pid_to_str): Adjust.
+       * remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust.
+       * remote-mips.c (mips_wait): Adjust.
+       * remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust.
+       * remote.c (remote_wait, remote_pid_to_str)
+       (remote_get_thread_local_address): Adjust.
+       * rs6000-nat.c (rs6000_wait): Adjust.
+       * sol-thread.c (procfs_pid_to_str): Adjust declaration.
+       (sol_thread_wait, solaris_pid_to_str): Adjust.
+       * spu-linux-nat.c (spu_child_wait): Adjust.
+       * windows-nat.c (windows_wait, windows_pid_to_str): Adjust.
+
+2009-02-06  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o.
+       (SUBDIR_PYTHON_SRCS): Add python-cmd.c.
+       (python-cmd.o): New target.
+       * cli/cli-decode.c (set_cmd_completer): Add self parameter to
+       completer prototype.
+       (add_cmd): Initialize destroyer member of cmd_list_element. Use
+       make_symbol_completion_list_fn as completer.
+       (delete_cmd): Call destroyer if one is set.
+       * cli/cli-decode.h (cmd_list_element): Add cmd parameter to
+       completer member.  Add destroyer member.
+       (set_cmd_completer): Add self parameter to
+       completer prototype.
+       * command.h (set_cmd_completer): Add cmd parameter to
+       completer prototype.
+       * completer.c (noop_completer, filename_completer,
+       location_completer, expression_completer, command_completer): Adapt
+       to new completer prototype.
+       (complete_line_internal): Pass new parameter to completer function.
+       * completer.h (noop_completer, filename_completer,
+       location_completer, expression_completer, command_completer): Adapt
+       prototypes to new completer prototype.
+       * interps.c (interpreter_completer): Adapt to new completer
+       prototype.
+       * python/python-cmd.c: New file.
+       * python/python-internal.h (gdbpy_initialize_commands): Add
+       prototype.
+       (gdbpy_doc_cst): Add forward declaration.
+       * python/python.c (gdbpy_doc_cst): Declare.
+       (_initialize_python): Call gdbpy_initialize_commands.  Initialize
+       gdbpy_doc_cst.
+       * symtab.c (make_symbol_completion_list_fn): New function.
+       * symtab.h (make_symbol_completion_list_fn): Add prototype.
+
+2009-02-06  Pedro Alves  <pedro@codesourcery.com>
+
+       * target.c (target_get_osdata): Check for equal or higher than
+       process_stratum, not dummy_stratum.
+
+2009-02-06  Pedro Alves  <pedro@codesourcery.com>
+
+       * remote.c (extended_remote_can_run): Delete.
+       (init_remote_ops): Don't register it.
+       * target.c (target_get_osdata): Don't check for target_can_run.
+       Instead any target that has already been pushed, otherwise
+       fallback to the default run target.
+
 2009-02-06  Pedro Alves  <pedro@codesourcery.com>
 
        * target.c (target_create_inferior, target_detach)
This page took 0.024631 seconds and 4 git commands to generate.