Back to index

glibc  2.9
Defines | Functions | Variables
dl-debug.c File Reference
#include <ldsodefs.h>

Go to the source code of this file.

Defines

#define VERIFY_MEMBER(name)   (offsetof (struct link_map_public, name) == offsetof (struct link_map, name))

Functions

struct r_debug *internal_function _dl_debug_initialize (ElfW(Addr) ldbase, Lmid_t ns)
void _dl_debug_state (void)

Variables

const int verify_link_map_members [(VERIFY_MEMBER(l_addr)&&VERIFY_MEMBER(l_name)&&VERIFY_MEMBER(l_ld)&&VERIFY_MEMBER(l_next)&&VERIFY_MEMBER(l_prev))?1:-1]

Define Documentation

#define VERIFY_MEMBER (   name)    (offsetof (struct link_map_public, name) == offsetof (struct link_map, name))

Definition at line 26 of file dl-debug.c.


Function Documentation

struct r_debug* internal_function _dl_debug_initialize ( ElfW(Addr)  ldbase,
Lmid_t  ns 
) [read]

Definition at line 48 of file dl-debug.c.

{
  struct r_debug *r;

  if (ns == LM_ID_BASE)
    r = &_r_debug;
  else
    r = &GL(dl_ns)[ns]._ns_debug;

  if (r->r_map == NULL || ldbase != 0)
    {
      /* Tell the debugger where to find the map of loaded objects.  */
      r->r_version = 1      /* R_DEBUG_VERSION XXX */;
      r->r_ldbase = ldbase ?: _r_debug.r_ldbase;
      r->r_map = (void *) GL(dl_ns)[ns]._ns_loaded;
      r->r_brk = (ElfW(Addr)) &_dl_debug_state;
    }

  return r;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void _dl_debug_state ( void  )

Definition at line 75 of file dl-debug.c.

{
}

Here is the caller graph for this function:


Variable Documentation