Changeset 5990 for icGREP/icgrep-devel


Ignore:
Timestamp:
Apr 25, 2018, 7:12:49 PM (17 months ago)
Author:
cameron
Message:

Bug fix for binary detection/abort

Location:
icGREP/icgrep-devel/icgrep
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/grep/grep_engine.cpp

    r5989 r5990  
    263263    ByteStream = mGrepDriver->addBuffer<CircularBuffer>(idb, idb->getStreamSetTy(1, 8), baseBufferSize);
    264264    kernel::Kernel * binaryCheckK = mGrepDriver->addKernelInstance<kernel::AbortOnNull>(idb);
    265     binaryCheckK->setInitialArguments({ConstantInt::get(idb->getIntAddrTy(), reinterpret_cast<intptr_t>(callback_object_addr))});
     265    binaryCheckK->setInitialArguments({callback_object_addr});
    266266    mGrepDriver->makeKernelCall(binaryCheckK, {SourceStream}, {ByteStream});
    267267    mGrepDriver->LinkFunction(*binaryCheckK, "signal_dispatcher", &signal_dispatcher);
  • icGREP/icgrep-devel/icgrep/icgrep.cpp

    r5969 r5990  
    99#include <llvm/Support/CommandLine.h>
    1010#include <llvm/Support/ErrorHandling.h>
     11#include <llvm/Support/PrettyStackTrace.h>
    1112#include <llvm/Support/Signals.h>
     13#include <llvm/Support/ManagedStatic.h>
    1214#include <llvm/Support/raw_ostream.h>
    1315#include <re/re_alt.h>
     
    109111
    110112int main(int argc, char *argv[]) {
     113    sys::PrintStackTraceOnErrorSignal(argv[0]);
     114    llvm::PrettyStackTraceProgram X(argc, argv);
     115    llvm_shutdown_obj shutdown;
    111116
    112117    argv::InitializeCommandLineInterface(argc, argv);
Note: See TracChangeset for help on using the changeset viewer.