forked from OSchip/llvm-project
[libFuzzer] Properly check if we can use dumpbin.
The flag "/sumary" is necessary, otherwise it returns a non-zero value. Differential Revision: https://reviews.llvm.org/D29371 llvm-svn: 293790
This commit is contained in:
parent
063e284e82
commit
7a3a390afb
|
@ -179,7 +179,7 @@ const void *SearchMemory(const void *Data, size_t DataLen, const void *Patt,
|
|||
}
|
||||
|
||||
std::string DisassembleCmd(const std::string &FileName) {
|
||||
if (ExecuteCommand("dumpbin > nul") == 0)
|
||||
if (ExecuteCommand("dumpbin /summary > nul") == 0)
|
||||
return "dumpbin /disasm " + FileName;
|
||||
if (ExecuteCommand("llvm-objdump > nul") == 0)
|
||||
return "llvm-objdump -d " + FileName;
|
||||
|
|
Loading…
Reference in New Issue