debugger: initialized member

CID 147003
CID 147004
This commit is contained in:
Gregory Hainaut 2016-03-28 16:08:42 +02:00
parent 791a0ce702
commit 0fb249284f
3 changed files with 14 additions and 11 deletions

View File

@ -108,7 +108,8 @@ private:
class DisassemblyMacro: public DisassemblyEntry
{
public:
DisassemblyMacro(DebugInterface* _cpu, u32 _address): cpu(_cpu), address(_address) { };
DisassemblyMacro(DebugInterface* _cpu, u32 _address):
cpu(_cpu), type(MACRO_LI), name(), immediate(0), address(_address), numOpcodes(0), rt(0), dataSize(0) { };
virtual ~DisassemblyMacro() { };
void setMacroLi(u32 _immediate, u8 _rt);

View File

@ -367,9 +367,11 @@ bool MipsCheckImmediate(const char* Source, DebugInterface* cpu, int& dest, int&
return true;
}
CMipsInstruction::CMipsInstruction(DebugInterface* cpu)
CMipsInstruction::CMipsInstruction(DebugInterface* cpu) :
Opcode(), NoCheckError(false), Loaded(false), RamPos(0),
registers(), immediateType(MIPS_NOIMMEDIATE), immediate(),
vfpuSize(0), encoding(0), error()
{
Loaded = false;
this->cpu = cpu;
}