Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jan 2015 01:08:55 +0900
From:      "Daisuke Aoyama" <aoyama@peach.ne.jp>
To:        <freebsd-arm@freebsd.org>
Subject:   Re: C++ exception of RPi
Message-ID:  <B2EE65BDDC8E4D059172C2E23AB9E147@ad.peach.ne.jp>
In-Reply-To: <8938766D727E4CD587AB34DB32A67916@ad.peach.ne.jp>
References:  <8938766D727E4CD587AB34DB32A67916@ad.peach.ne.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
I've written example of C++ exception since just boot up r276981.
Try to compile by "clang++ sample.cc".
If your /lib/libcxxrt.so.1 is not affected, you can get a result like this:

# ./a.out
catch: 10

Otherwise,

# ./a.out
pid 653 (a.out), uid 0: exited on signal 6 (core dumped)
Abort trap (core dumped)

sample.cc:
----------------------------------------------------------------------
#include <iostream>
using namespace std;

int main()
{
        try{
                throw 10;
        } catch (int e) {
                cout << "catch: " << e << endl;
        }
}
----------------------------------------------------------------------

Regards,
-- 
Daisuke Aoyama
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B2EE65BDDC8E4D059172C2E23AB9E147>