예제 #1
0
int
impl::check_result::termsig(void)
const
{
    PRE(signaled());
    return atf_check_result_termsig(&m_result);
}
예제 #2
0
int
impl::status::termsig(void)
    const
{
    assert(signaled());
    int mutable_status = m_status;
    return WTERMSIG(mutable_status);
}
예제 #3
0
bool
impl::status::coredump(void)
    const
{
    assert(signaled());
    int mutable_status = m_status;
    return WCOREDUMP(mutable_status);
}
예제 #4
0
inline
bool
posix_status::dumped_core(void)
const
{
    BOOST_ASSERT(signaled());
    return WCOREDUMP(m_flags);
}
예제 #5
0
inline
int
posix_status::term_signal(void)
const
{
    BOOST_ASSERT(signaled());
    return WTERMSIG(m_flags);
}
예제 #6
0
//------------------------------------------------------------------------------
// Name: reason() const
// Desc: what was the reason for this event
//------------------------------------------------------------------------------
DebugEvent::REASON DebugEvent::reason() const {

	// this basically converts our value into a 'switchable' value for convenience

	if(stopped()) {
		return EVENT_STOPPED;
	} else if(signaled()) {
		return EVENT_SIGNALED;
	} else if(exited()) {
		return EVENT_EXITED;
	} else {
		return EVENT_UNKNOWN;
	}
}
예제 #7
0
파일: tst_status.c 프로젝트: kraj/ltp
const char *tst_strstatus(int status)
{
	if (WIFEXITED(status))
		return exited(status);

	if (WIFSIGNALED(status))
		return signaled(status);

	if (WIFSTOPPED(status))
		return "is stopped";

	if (WIFCONTINUED(status))
		return "is resumed";

	return invalid(status);
}
예제 #8
0
파일: posix_status.hpp 프로젝트: RJ/playdar
    /** 
     * If signaled, returns whether the process dumped core. 
     * 
     * If the process was signaled, returns whether the process 
     * produced a core dump. 
     * 
     * \pre signaled() is true. 
     */ 
    bool dumped_core() const 
    { 
        BOOST_ASSERT(signaled()); 

        return WCOREDUMP(flags_); 
    } 
예제 #9
0
파일: posix_status.hpp 프로젝트: RJ/playdar
    /** 
     * If signaled, returns the terminating signal code. 
     * 
     * If the process was signaled, returns the terminating signal code. 
     * 
     * \pre signaled() is true. 
     */ 
    int term_signal() const 
    { 
        BOOST_ASSERT(signaled()); 

        return WTERMSIG(flags_); 
    }