Page MenuHomePhabricator

make-core.sh: add FreeBSD support
ClosedPublic

Authored by emaste on Nov 4 2016, 4:19 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

emaste updated this revision to Diff 76951.Nov 4 2016, 4:19 PM
emaste retitled this revision from to make-core.sh: add FreeBSD support.
emaste updated this object.
emaste added a reviewer: labath.
emaste added a subscriber: lldb-commits.
emaste added a comment.Nov 4 2016, 4:22 PM

Output on FreeBSD, with the patch:

% sh make-core.sh main.c
+ file=main.c
+ [ -z main.c ]
+ [ FreeBSD '=' Linux ]
+ ulimit -c 1000
+ ulimit -c
+ real_limit=1000
+ [ 1000 -lt 100 ]
+ cc -nostdlib -static -g main.c -o a.out
+ cat
Executable file is in a.out.
Core file will be saved according to pattern %N.core.
+ ulimit -s 8
+ exec ./a.out
zsh: segmentation fault (core dumped)  sh make-core.sh main.c
labath accepted this revision.Nov 5 2016, 2:38 AM
labath edited edge metadata.

Nice.

This revision is now accepted and ready to land.Nov 5 2016, 2:38 AM
This revision was automatically updated to reflect the committed changes.