Back to index

glibc  2.9
td_ta_event_addr.c File Reference
#include "thread_dbP.h"

Go to the source code of this file.


td_err_e td_ta_event_addr (const td_thragent_t *ta_arg, td_event_e event, td_notify_t *addr)

Function Documentation

td_err_e td_ta_event_addr ( const td_thragent_t *  ta_arg,
td_event_e  event,
td_notify_t addr 

Definition at line 25 of file td_ta_event_addr.c.

  td_thragent_t *const ta = (td_thragent_t *) ta_arg;
  td_err_e err;
  psaddr_t taddr;

  LOG ("td_ta_event_addr");

  /* Test whether the TA parameter is ok.  */
  if (! ta_ok (ta))
    return TD_BADTA;

  switch (event)
    case TD_CREATE:
      err = DB_GET_SYMBOL (taddr, ta, __nptl_create_event);

    case TD_DEATH:
      err = DB_GET_SYMBOL (taddr, ta, __nptl_death_event);

      /* Event cannot be handled.  */
      return TD_NOEVENT;

  if (err == TD_OK)
      /* Success, we got the address.  */
      addr->type = NOTIFY_BPT;
      addr->u.bptaddr = taddr;

  return err;

Here is the call graph for this function: