diff --git a/CHANGES b/CHANGES index 7a24028370..cb1c0c84ca 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,8 @@ +2.6-39 | 2019-01-02 11:26:27 -0600 + + * Add BIF: Reporter::fatal_error_with_core (Stephen Hosom) + 2.6-27 | 2018-12-10 11:53:41 -0600 * GH-216: Add FTS dependency when building on Alpine (Jon Siwek, Corelight) diff --git a/VERSION b/VERSION index f6cdb0d036..5477c31699 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.6-27 +2.6-39 diff --git a/aux/broker b/aux/broker index 9cc78f08d4..4830395cf1 160000 --- a/aux/broker +++ b/aux/broker @@ -1 +1 @@ -Subproject commit 9cc78f08d442feee766cd656b73e618fd3505f7e +Subproject commit 4830395cf119a2c8e629f93e07878344757bda62 diff --git a/src/reporter.bif b/src/reporter.bif index 92088e5fc9..d5f8e5e023 100644 --- a/src/reporter.bif +++ b/src/reporter.bif @@ -72,6 +72,20 @@ function Reporter::fatal%(msg: string%): bool return new Val(1, TYPE_BOOL); %} +## Generates a fatal error on stderr and terminates program execution +## after dumping a core file +## +## msg: The error message to report. +## +## Returns: Always true. +function Reporter::fatal_error_with_core%(msg: string%): bool + %{ + reporter->PushLocation(frame->GetCall()->GetLocationInfo()); + reporter->FatalErrorWithCore("%s", msg->CheckString()); + reporter->PopLocation(); + return new Val(1, TYPE_BOOL); + %} + ## Generates a "net" weird. ## ## name: the name of the weird.