mirror of https://github.com/stella-emu/stella.git
Looks like I was a little to eager with the 'auto' keyword; it broke
some code in CartDebug. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3104 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
a4023be98b
commit
c7fc207b13
|
@ -257,7 +257,7 @@ bool CartDebug::disassemble(bool force)
|
||||||
if(bankChanged || !pcfound)
|
if(bankChanged || !pcfound)
|
||||||
{
|
{
|
||||||
AddressList::const_iterator i;
|
AddressList::const_iterator i;
|
||||||
for(auto i = addresses.begin(); i != addresses.end(); ++i)
|
for(i = addresses.cbegin(); i != addresses.cend(); ++i)
|
||||||
{
|
{
|
||||||
if(PC < *i)
|
if(PC < *i)
|
||||||
{
|
{
|
||||||
|
|
|
@ -295,12 +295,13 @@ class CartDebug : public DebuggerSystem
|
||||||
#if 0
|
#if 0
|
||||||
friend ostream& operator<<(ostream& os, const BankInfo& b)
|
friend ostream& operator<<(ostream& os, const BankInfo& b)
|
||||||
{
|
{
|
||||||
os << "start=$" << HEX4 << b.start << ", end=$" << HEX4 << b.end
|
os << "start=$" << Common::Base::HEX4 << b.start
|
||||||
<< ", offset=$" << HEX4 << b.offset << ", size=" << dec << b.size
|
<< ", end=$" << Common::Base::HEX4 << b.end
|
||||||
<< endl
|
<< ", offset=$" << Common::Base::HEX4 << b.offset
|
||||||
|
<< ", size=" << dec << b.size << endl
|
||||||
<< "addrlist: ";
|
<< "addrlist: ";
|
||||||
for(const auto& i: addressList)
|
for(const auto& i: b.addressList)
|
||||||
os << HEX4 << i << " ";
|
os << Common::Base::HEX4 << i << " ";
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue