simulavr  1.1.0
avrerror.cpp File Reference

Functions for printing messages, warnings and errors. More...

#include <fstream>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include "avrerror.h"
#include "helper.h"
#include "config.h"

Go to the source code of this file.

Functions

void trioaccess (const char *t, unsigned char val)
 Helper function for writing trace (trace IO access) More...
 

Variables

SystemConsoleHandler sysConHandler
 The SystemConsoleHandler instance for common usage. More...
 
int global_verbose_on = 0
 Verbose enable flag. More...
 
bool global_suppress_memory_warnings = false
 flag to suppress invalid memory usage warnings More...
 

Detailed Description

Functions for printing messages, warnings and errors.

This module provides output printing facilities. Further it provides raising exceptions instead of calling exit/abort, if needed and the possibility to redirect output to a stream instead of stdout/stderr.

Definition in file avrerror.cpp.

Function Documentation

◆ trioaccess()

void trioaccess ( const char *  t,
unsigned char  val 
)

Helper function for writing trace (trace IO access)

Definition at line 239 of file avrerror.cpp.

References SystemConsoleHandler::traceOutStream().

Variable Documentation

◆ global_suppress_memory_warnings

bool global_suppress_memory_warnings = false

flag to suppress invalid memory usage warnings

Definition at line 237 of file avrerror.cpp.

Referenced by RWWriteToFile::get(), InvalidMem::get(), NotSimulatedRegister::get(), RWReadFromFile::set(), InvalidMem::set(), and NotSimulatedRegister::set().

◆ global_verbose_on

int global_verbose_on = 0

Verbose enable flag.

Definition at line 236 of file avrerror.cpp.

Referenced by SystemConsoleHandler::vfmessage().

◆ sysConHandler

SystemConsoleHandler sysConHandler

The SystemConsoleHandler instance for common usage.

Definition at line 234 of file avrerror.cpp.

Referenced by avr_trace_tf(), RWExit::get(), RWAbort::get(), RWExit::set(), RWAbort::set(), and AvrDevice::Step().