libcsdbg  1.28
C++ exception (and generic) stack trace debug library
csdbg::symbol::symbol ( mem_addr_t  addr,
const i8 nm 

Object constructor.

[in]addrthe symbol address
[in]nmthe symbol name (NULL if the symbol is unresolved)

Definition at line 20 of file symbol.cpp.

References __D_ASSERT, likely, and m_name.

Referenced by clone().

20  :
21 m_addr(addr),
22 m_name(NULL)
23 {
24  __D_ASSERT(nm != NULL);
25  if ( likely(nm != NULL) ) {
26  m_name = new i8[strlen(nm) + 1];
27  strcpy(m_name, nm);
28  }
29 }
char i8
8-bit signed integer
Definition: config.hpp:72
mem_addr_t m_addr
Symbol address.
Definition: symbol.hpp:23
#define likely(expr)
Offer a hint (positive) to the pipeline branch predictor.
Definition: config.hpp:344
virtual mem_addr_t addr() const
Get the symbol address.
Definition: symbol.cpp:79
i8 * m_name
Symbol name.
Definition: symbol.hpp:25
#define __D_ASSERT(x)
Assertion macro.
Definition: config.hpp:268

+ Here is the caller graph for this function: