libcsdbg  1.28
C++ exception (and generic) stack trace debug library
csdbg::symtab::symtab ( const symtab src)

Object copy constructor.

Parameters
[in]srcthe source object
Exceptions
std::bad_alloc

Definition at line 166 of file symtab.cpp.

References m_path, and m_table.

167  :
168 m_path(NULL),
169 m_base(src.m_base),
170 m_table(NULL)
171 {
172  m_table = src.m_table->clone();
173  m_path = new i8[strlen(src.m_path) + 1];
174  strcpy(m_path, src.m_path);
175 }
176 
177 catch (...) {
178  delete m_table;
179  m_table = NULL;
180 }
char i8
8-bit signed integer
Definition: config.hpp:72
mem_addr_t m_base
Load base address.
Definition: symtab.hpp:35
chain< symbol > * m_table
Function symbol table.
Definition: symtab.hpp:37
i8 * m_path
Objective code file path.
Definition: symtab.hpp:33