mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #7568 from ethereum/fixtest
Fix failing tests on ArchLinux and potentially MacOS
This commit is contained in:
commit
5d906cd58d
@ -356,13 +356,13 @@ string dev::eth::disassemble(bytes const& _mem)
|
|||||||
stringstream ret;
|
stringstream ret;
|
||||||
eachInstruction(_mem, [&](Instruction _instr, u256 const& _data) {
|
eachInstruction(_mem, [&](Instruction _instr, u256 const& _data) {
|
||||||
if (!isValidInstruction(_instr))
|
if (!isValidInstruction(_instr))
|
||||||
ret << "0x" << hex << int(_instr) << " ";
|
ret << "0x" << std::uppercase << std::hex << int(_instr) << " ";
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
InstructionInfo info = instructionInfo(_instr);
|
InstructionInfo info = instructionInfo(_instr);
|
||||||
ret << info.name << " ";
|
ret << info.name << " ";
|
||||||
if (info.additional)
|
if (info.additional)
|
||||||
ret << "0x" << hex << _data << " ";
|
ret << "0x" << std::uppercase << std::hex << _data << " ";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return ret.str();
|
return ret.str();
|
||||||
|
@ -294,7 +294,7 @@ void CommandLineInterface::handleOpcode(string const& _contract)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
sout() << "Opcodes: " << endl;
|
sout() << "Opcodes: " << endl;
|
||||||
sout() << dev::eth::disassemble(m_compiler->object(_contract).bytecode);
|
sout() << std::uppercase << dev::eth::disassemble(m_compiler->object(_contract).bytecode);
|
||||||
sout() << endl;
|
sout() << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ void InterpreterState::dumpTraceAndState(ostream& _out) const
|
|||||||
words[(offset / 0x20) * 0x20] |= u256(uint32_t(value)) << (256 - 8 - 8 * size_t(offset % 0x20));
|
words[(offset / 0x20) * 0x20] |= u256(uint32_t(value)) << (256 - 8 - 8 * size_t(offset % 0x20));
|
||||||
for (auto const& [offset, value]: words)
|
for (auto const& [offset, value]: words)
|
||||||
if (value != 0)
|
if (value != 0)
|
||||||
_out << " " << std::hex << std::setw(4) << offset << ": " << h256(value).hex() << endl;
|
_out << " " << std::uppercase << std::hex << std::setw(4) << offset << ": " << h256(value).hex() << endl;
|
||||||
_out << "Storage dump:" << endl;
|
_out << "Storage dump:" << endl;
|
||||||
for (auto const& slot: storage)
|
for (auto const& slot: storage)
|
||||||
if (slot.second != h256(0))
|
if (slot.second != h256(0))
|
||||||
|
Loading…
Reference in New Issue
Block a user