This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcc/56846] _Unwind_Backtrace on ARM and noexcept
- From: "tony.wang at arm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 25 Aug 2014 09:58:20 +0000
- Subject: [Bug libgcc/56846] _Unwind_Backtrace on ARM and noexcept
- Auto-submitted: auto-generated
- References: <bug-56846-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56846
--- Comment #7 from wangzheyu <tony.wang at arm dot com> ---
Another test case doesn't involve noexcept key workd.
Cmd line: arm-none-eabi-g++ -mthumb -mcpu=cortex-m3 -O0 -g -std=c++11
-specs=rdimon.specs main.c -o main.exe
#include <unwind.h>
#include <stdio.h>
_Unwind_Reason_Code trace_func(struct _Unwind_Context * context, void* arg) {
void *ip = (void *)_Unwind_GetIP(context);
printf("Address: %p\n", ip);
return _URC_NO_REASON;
}
void bar()
{
puts("This is in bar");
_Unwind_Backtrace((_Unwind_Trace_Fn)&trace_func, 0);
}
void foo()
{
try
{
bar();
}
catch (...)
{
puts("Exception");
}
}