Changeset 656765c7 in rtems


Ignore:
Timestamp:
07/13/22 11:41:04 (20 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
5ed00353
Parents:
da01642
git-author:
Sebastian Huber <sebastian.huber@…> (07/13/22 11:41:04)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/14/22 08:47:36)
Message:

cdtest: Restrict exceptions during sysinit

Exceptions during system initialization work only on targets which do not need
a registration of exception frames during the global construction. In
particular, targets which use the DWARF2 unwinder cannot use exceptions during
system initialization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/cdtest/main.cc

    rda01642 r656765c7  
    239239}
    240240
     241/*
     242 * Exceptions during system initialization work only on targets which do not
     243 * need a registration of exception frames during the global construction.  In
     244 * particular, targets which use the DWARF2 unwinder cannot use exceptions
     245 * during system initialization.
     246 */
     247#if defined(__arm__)
     248#define CAN_DO_EXCEPTIONS_DURING_SYSINIT
     249#endif
     250
     251#ifdef CAN_DO_EXCEPTIONS_DURING_SYSINIT
    241252static void early_exception()
    242253{
     
    251262    }
    252263}
     264#endif
    253265
    254266static void test_exceptions_during_system_init()
     
    256268    TEST_BEGIN();
    257269
     270#ifdef CAN_DO_EXCEPTIONS_DURING_SYSINIT
    258271    try
    259272    {
     
    264277      rtems_test_assert(strcmp(e, "early exception 2") == 0);
    265278    }
     279#endif
    266280}
    267281
Note: See TracChangeset for help on using the changeset viewer.