* 'master' of https://github.com/hosom/zeek:
  Call FatalErrorWithCore instead of FatalError
  Fix syntax error
  Add fatal_error_with_core bif
This commit is contained in:
Jon Siwek 2019-01-02 11:26:27 -06:00
commit 15bfdbe952
4 changed files with 20 additions and 2 deletions

View file

@ -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 2.6-27 | 2018-12-10 11:53:41 -0600
* GH-216: Add FTS dependency when building on Alpine (Jon Siwek, Corelight) * GH-216: Add FTS dependency when building on Alpine (Jon Siwek, Corelight)

View file

@ -1 +1 @@
2.6-27 2.6-39

@ -1 +1 @@
Subproject commit 9cc78f08d442feee766cd656b73e618fd3505f7e Subproject commit 4830395cf119a2c8e629f93e07878344757bda62

View file

@ -72,6 +72,20 @@ function Reporter::fatal%(msg: string%): bool
return new Val(1, TYPE_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. ## Generates a "net" weird.
## ##
## name: the name of the weird. ## name: the name of the weird.