Profiling C++ with exceptions enabled

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Profiling C++ with exceptions enabled

827 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by 8473 on Wed Jun 17 03:33:59 MST 2015
Hello,

evaluating LPC-Link2 with a LPC43s37 [OM13073-board] it appears that enabling C++-Exceptions breaks the profiler.
("Enable Profile" is grayed out then).

Is this behaviour intended?


Regards,
0 Kudos
Reply
3 Replies

803 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Jun 17 10:34:23 MST 2015
Thanks - we've been able to reproduce the issue here.

It is not intended functionality. There was a bug in the code that handled the disassembly used by the profiler. The code generated when removing "-fno-exceptions" contains the TBB instruction. The TBB disassembly exposed the bug.

The next release of LPCXpresso will include a fix for this issue.



0 Kudos
Reply

803 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by 8473 on Wed Jun 17 04:29:42 MST 2015
Sorry - LPCXpresso 7.8 on Win7.


Edit - Steps to reproduce:

Creating a new LPCOpen-C++-Project using the wizard, building and running enables the "Enable Profile"-Button when debugger stops at main().
Stopping, removing "-fno-exceptions" from compiler-options and rebuilding/-starting: Button is grayed out when stopped at main().
0 Kudos
Reply

803 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Jun 17 04:02:52 MST 2015
Which product/version/operating system are you talking about?
0 Kudos
Reply