Bug 969819 - ARM simulator: Filter the .text section line from the disassembler output. r=jandem

This commit is contained in:
Douglas Crosher 2014-02-09 01:17:07 +11:00
parent 4f514cfdc6
commit e2a5ac2c80

View File

@ -652,7 +652,8 @@ DisassembleInstruction(uint32_t pc)
char llvmcmd[1024];
sprintf(llvmcmd, "bash -c \"echo -n '%p'; echo '%s' | "
"llvm-mc -disassemble -arch=arm -mcpu=cortex-a9 | "
"grep -v pure_instructions\"", reinterpret_cast<void*>(pc), hexbytes);
"grep -v pure_instructions | grep -v .text\"",
reinterpret_cast<void*>(pc), hexbytes);
system(llvmcmd);
}