Skip to content

Replace ABI stubs with real implementations #20

Description

@kibergus

Wiring implements several gcc specific C++ ABI functions. Unfortunately, instead of real implementations stubs are used. This leads to undesired behavior in some circumstances: if an error happens your firmware instead of controllable shutdown starts to execute random code or other strange things.

I've described purpose of these ABI functions and reasons why they must be implemented like I did here:
http://kibergus.su/en/node/92

You can either take implementation from this pull request
arduino/Arduino#107
It is not so good because it uses abort() instead of std::terminate from standard library. In case if you are ready to use standard library there is another request:
arduino/Arduino#108

For a standard library realization you can use avr port of uClibc++.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions