Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Namespaces | Macros | Functions
trap_utils.hpp File Reference
#include <exception>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <string>
#include "core/common/trapgen/utils/customExceptions.hpp"
Include dependency graph for trap_utils.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 trap
 

Macros

#define __PRETTY_FUNCTION__   "NONAME"
 
#define MAKE_STRING(msg)   (((std::ostringstream &)((std::ostringstream() << '\x0') << msg)).str().substr(1))
 
#define THROW_EXCEPTION(msg)
 
#define THROW_ERROR(msg)
 

Functions

void trap::throw_exception_helper (std::string message)
 
void trap::throw_error_helper (std::string message)
 

Macro Definition Documentation

#define __PRETTY_FUNCTION__   "NONAME"
#define MAKE_STRING (   msg)    (((std::ostringstream &)((std::ostringstream() << '\x0') << msg)).str().substr(1))
#define THROW_ERROR (   msg)
Value:
(trap::throw_error_helper(MAKE_STRING("At: function " << __PRETTY_FUNCTION__ << " file: " << \
__FILE__ << ":" << __LINE__ << " --> " << msg << std::endl)))
void throw_error_helper(std::string message)
Definition: trap_utils.cpp:41
#define MAKE_STRING(msg)
Definition: trap_utils.hpp:51
d8 msg[MAX_MSG]
Definition: pocsag.c:420
#define __PRETTY_FUNCTION__
Definition: trap_utils.hpp:43

Referenced by trap::ExecLoader::getDataStart(), trap::ExecLoader::getProgData(), trap::ExecLoader::getProgDim(), trap::ExecLoader::getProgStart(), trap::GDBConnectionManager::initialize(), leon3_funclt_trap::LocalMemory::read_byte(), leon3_funclt_trap::LocalMemory::read_byte_dbg(), leon3_funclt_trap::LocalMemory::read_dword(), leon3_funclt_trap::LocalMemory::read_dword_dbg(), leon3_funclt_trap::LocalMemory::read_half(), leon3_funclt_trap::LocalMemory::read_half_dbg(), leon3_funclt_trap::LocalMemory::read_word(), leon3_funclt_trap::LocalMemory::read_word_dbg(), trap::ABIIf< unsigned int >::readFP(), trap::ABIIf< unsigned int >::readLR(), trap::ABIIf< unsigned int >::readSP(), trap::ABIIf< unsigned int >::setFP(), trap::ABIIf< unsigned int >::setLR(), trap::ABIIf< unsigned int >::setSP(), leon3_funclt_trap::LocalMemory::write_byte(), trap::MemoryLT< N_INITIATORS, sockSize >::write_byte_dbg(), leon3_funclt_trap::LocalMemory::write_byte_dbg(), trap::MemoryAT< N_INITIATORS, sockSize >::write_byte_dbg(), leon3_funclt_trap::LocalMemory::write_dword(), leon3_funclt_trap::LocalMemory::write_dword_dbg(), leon3_funclt_trap::LocalMemory::write_half(), leon3_funclt_trap::LocalMemory::write_half_dbg(), leon3_funclt_trap::LocalMemory::write_word(), and leon3_funclt_trap::LocalMemory::write_word_dbg().

#define THROW_EXCEPTION (   msg)
Value:
" file: " << __FILE__ << ":" << __LINE__ << " --> " << msg)))
void throw_exception_helper(std::string message)
Definition: trap_utils.cpp:46
#define MAKE_STRING(msg)
Definition: trap_utils.hpp:51
d8 msg[MAX_MSG]
Definition: pocsag.c:420
#define __PRETTY_FUNCTION__
Definition: trap_utils.hpp:43

Referenced by trap::PINTarget< sockSize >::b_transport(), leon3_funclt_trap::InvalidInstr::behavior(), leon3_funclt_trap::RETT_imm::behavior(), leon3_funclt_trap::RETT_reg::behavior(), IrqGenerator::callbackMethod(), trap::ExecLoader::ExecLoader(), getCycleRange(), trap::OSEmulator< issueWidth >::initSysCalls(), trap::GDBStub< unsigned int >::notifyAddress(), closeIntrinsic< wordSize >::operator()(), trap::closeSysCall< wordSize >::operator()(), readIntrinsic< wordSize >::operator()(), trap::readSysCall< wordSize >::operator()(), writeIntrinsic< wordSize >::operator()(), trap::writeSysCall< wordSize >::operator()(), lseekIntrinsic< wordSize >::operator()(), fstatIntrinsic< wordSize >::operator()(), trap::lseekSysCall< wordSize >::operator()(), trap::fstatSysCall< wordSize >::operator()(), dupIntrinsic< wordSize >::operator()(), dup2Intrinsic< wordSize >::operator()(), trap::dupSysCall< wordSize >::operator()(), trap::dup2SysCall< wordSize >::operator()(), killIntrinsic< wordSize >::operator()(), trap::killSysCall< wordSize >::operator()(), leon3_funclt_trap::Instruction::RaiseException(), trap::PINTarget< sockSize >::readPIN(), leon3_funclt_trap::LEON3_ABIIf::setArgs(), leon3_funclt_trap::LEON3_ABIIf::setGDBReg(), and leon3_funclt_trap::RegisterBankClass::setNewRegister().