mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Merge branch 'master' of https://github.com/hosom/zeek
* '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:
commit
15bfdbe952
4 changed files with 20 additions and 2 deletions
4
CHANGES
4
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
|
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)
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
2.6-27
|
2.6-39
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9cc78f08d442feee766cd656b73e618fd3505f7e
|
Subproject commit 4830395cf119a2c8e629f93e07878344757bda62
|
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue