コード例 #1
0
ファイル: fbsd-threads.c プロジェクト: AhmadTux/freebsd-ports
void
_initialize_thread_db (void)
{

  init_fbsd_thread_ops ();

  if (thread_db_load ())
    {
      add_target (&fbsd_thread_ops);

      /* "thread tsd" command */
      add_cmd ("tsd", class_run, fbsd_thread_tsd_cmd,
            "Show the thread-specific data keys and destructors "
            "for the process.\n",
           &thread_cmd_list);

      add_cmd ("signal", class_run, fbsd_thread_signal_cmd,
            "Show the thread signal info.\n",
           &thread_cmd_list);

      /* Hook into new_objfile notification.  */
      observer_attach_new_objfile (fbsd_thread_new_objfile);
    }
  else
    {
      fprintf_unfiltered (gdb_stderr,
        "[GDB will not be able to debug user-mode threads: %s]\n", dlerror());
    }
}
コード例 #2
0
void
_initialize_hpux_thread (void)
{
    init_hpux_thread_ops ();
    add_target (&hpux_thread_ops);

    child_suppress_run = 1;
    /* Hook into new_objfile notification.  */
    observer_attach_new_objfile (hpux_thread_new_objfile);
}
コード例 #3
0
ファイル: nbsd-thread.c プロジェクト: ryo/netbsd-src
void
_initialize_nbsd_thread (void)
{
  init_nbsd_thread_ops ();
  init_nbsd_proc_callbacks ();

  add_target (&nbsd_thread_ops);

  /* Hook into new_objfile notification.  */ 
  observer_attach_new_objfile (nbsd_thread_new_objfile);
}
コード例 #4
0
void
_initialize_tui_hooks (void)
{
  /* Install the permanent hooks.  */
  observer_attach_new_objfile (tui_new_objfile_hook);
}