MCPcopy Create free account
hub / github.com/CheckPointSW/Karta / createDatabase

Method createDatabase

src/disassembler/disas_api.py:553–563  ·  view source on GitHub ↗

Create a database file for the given binary file, compiled to windows or linux as specified. Args: binary_file (path): path to the input binary (*.o / *.obj) file is_windows (bool): True if this is a binary that was compiled for windows (*.obj), False otherwise (*.o)

(self, binary_file, is_windows)

Source from the content-addressed store, hash-verified

551 raise NotImplementedError("Subclasses should implement this!")
552
553 def createDatabase(self, binary_file, is_windows):
554 """Create a database file for the given binary file, compiled to windows or linux as specified.
555
556 Args:
557 binary_file (path): path to the input binary (*.o / *.obj) file
558 is_windows (bool): True if this is a binary that was compiled for windows (*.obj), False otherwise (*.o)
559
560 Return Value:
561 path to the created database file
562 """
563 raise NotImplementedError("Subclasses should implement this!")
564
565 def executeScript(self, database, script):
566 """Execute the given script over the given database file that was created earlier.

Callers 1

analyzeFileFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected