Back to index

glibc  2.9
Classes | Defines | Enumerations | Functions | Variables
thread_dbP.h File Reference
#include <string.h>
#include <unistd.h>
#include "proc_service.h"
#include "thread_db.h"
#include "../linuxthreads/descr.h"

Go to the source code of this file.

Classes

struct  td_thragent
struct  agent_list

Defines

#define LOG(c)   if (__td_debug) write (2, c "\n", strlen (c "\n"))

Enumerations

enum  {
  PTHREAD_THREADS_EVENTS = 0, PTHREAD_LAST_EVENT, PTHREAD_HANDLES_NUM, PTHREAD_HANDLES,
  PTHREAD_KEYS, LINUXTHREADS_PTHREAD_THREADS_MAX, LINUXTHREADS_PTHREAD_KEYS_MAX, LINUXTHREADS_PTHREAD_SIZEOF_DESCR,
  LINUXTHREADS_CREATE_EVENT, LINUXTHREADS_DEATH_EVENT, LINUXTHREADS_REAP_EVENT, LINUXTHREADS_INITIAL_REPORT_EVENTS,
  LINUXTHREADS_VERSION, NUM_MESSAGES
}

Functions

static int ta_ok (const td_thragent_t *ta)
int td_lookup (struct ps_prochandle *ps, int idx, psaddr_t *sym_addr)

Variables

int __td_debug
struct agent_list__td_agent_list

Class Documentation

struct agent_list

Definition at line 80 of file thread_dbP.h.

Collaboration diagram for agent_list:
Class Members
struct agent_list * next
td_thragent_t * ta

Define Documentation

#define LOG (   c)    if (__td_debug) write (2, c "\n", strlen (c "\n"))

Definition at line 34 of file thread_dbP.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
PTHREAD_THREADS_EVENTS 
PTHREAD_LAST_EVENT 
PTHREAD_HANDLES_NUM 
PTHREAD_HANDLES 
PTHREAD_KEYS 
LINUXTHREADS_PTHREAD_THREADS_MAX 
LINUXTHREADS_PTHREAD_KEYS_MAX 
LINUXTHREADS_PTHREAD_SIZEOF_DESCR 
LINUXTHREADS_CREATE_EVENT 
LINUXTHREADS_DEATH_EVENT 
LINUXTHREADS_REAP_EVENT 
LINUXTHREADS_INITIAL_REPORT_EVENTS 
LINUXTHREADS_VERSION 
NUM_MESSAGES 

Definition at line 13 of file thread_dbP.h.


Function Documentation

static int ta_ok ( const td_thragent_t *  ta) [inline, static]

Definition at line 91 of file thread_dbP.h.

{
  struct agent_list *runp = __td_agent_list;

  if (ta == NULL)
    return 0;

  while (runp != NULL && runp->ta != ta)
    runp = runp->next;

  return runp != NULL;
}

Here is the caller graph for this function:

int td_lookup ( struct ps_prochandle *  ps,
int  idx,
psaddr_t sym_addr 
)

Definition at line 58 of file td_symbol_list.c.

{
  assert (idx >= 0 && idx < NUM_MESSAGES);
  return ps_pglobal_lookup (ps, LIBPTHREAD_SO, symbol_list_arr[idx], sym_addr);
}

Variable Documentation

Definition at line 31 of file td_ta_new.c.

Definition at line 24 of file td_init.c.