Previous Thread
Next Thread
Print Thread
Funny behaviour of debugger.. #112844
03/11/18 05:09 PM
03/11/18 05:09 PM
Joined: Mar 2015
Posts: 52
F
fulivi Offline OP
Member
fulivi  Offline OP
Member
F
Joined: Mar 2015
Posts: 52
Hi,
I recently used the MAME debugger on the hp 64000 emulation.
I encountered a couple of funny things that might be due to bugs.
If I set a watchpoint with
Quote
wpi 1d,1,w
and I then list the watchpoints with
Quote
wplist
I get this:
Quote

Device ':cpu' io space watchpoints:
1 @ 0E-0E write


The watchpoint is actually installed at the correct address (i.e. it breaks @1d, not @0e).
Another strange thing happens if I open the memory window: the cpu program space memory stops at 7fff (it should stop at ffff).
Could this be related somehow to the fact that the cpu has 16-bit wide words and that it uses word (not byte) addressing? In MAME the address shift of both program & io address spaces is set to "-1".
--F.Ulivi

Re: Funny behaviour of debugger.. [Re: fulivi] #112846
03/11/18 07:38 PM
03/11/18 07:38 PM
Joined: Dec 2015
Posts: 83
A
AJR Offline
Member
AJR  Offline
Member
A
Joined: Dec 2015
Posts: 83
Thanks for this report. There may be similar bugs lurking in other parts of the debugger, but these two have been fixed in my most recent commits.

Re: Funny behaviour of debugger.. [Re: fulivi] #112850
03/12/18 05:31 PM
03/12/18 05:31 PM
Joined: Mar 2015
Posts: 52
F
fulivi Offline OP
Member
fulivi  Offline OP
Member
F
Joined: Mar 2015
Posts: 52
Ah, got another one. If I open the memory window and type an address that is >= 0x8000 nothing happens. If I use the side scrollbar I can get to the end of the memory space, though (i.e. up till 0xffff).
--F.Ulivi

Re: Funny behaviour of debugger.. [Re: fulivi] #112852
03/12/18 07:51 PM
03/12/18 07:51 PM
Joined: Dec 2015
Posts: 83
A
AJR Offline
Member
AJR  Offline
Member
A
Joined: Dec 2015
Posts: 83
That was due to masking the address at the wrong time. I took care of it just now.

Re: Funny behaviour of debugger.. [Re: fulivi] #113109
04/12/18 03:50 PM
04/12/18 03:50 PM
Joined: Mar 2015
Posts: 52
F
fulivi Offline OP
Member
fulivi  Offline OP
Member
F
Joined: Mar 2015
Posts: 52
A couple more "address shifting" bugs in the debugger:
- Memory access operators such as w@1234 are not shifting the address (for the HP hybrid CPU I need to write w@40 to actually access word @ 0x20)
- Memory window of debugger: if I type an address >= 8000, it jumps to 7fff. I can scroll beyond this address without any problem, though.

Thanks.
--F.Ulivi

Re: Funny behaviour of debugger.. [Re: fulivi] #113115
04/13/18 06:50 PM
04/13/18 06:50 PM
Joined: Dec 2015
Posts: 83
A
AJR Offline
Member
AJR  Offline
Member
A
Joined: Dec 2015
Posts: 83
Are you using the latest version of MAME? I can't reproduce these last two.

Re: Funny behaviour of debugger.. [Re: fulivi] #113117
04/14/18 09:08 AM
04/14/18 09:08 AM
Joined: Mar 2015
Posts: 52
F
fulivi Offline OP
Member
fulivi  Offline OP
Member
F
Joined: Mar 2015
Posts: 52
I'm using the version from which I branched off my (currently open) PR #3456.
I checked again: the first problem (the memory operator) is still there, the second one vanished (most likely when I rebased my commits).


Who's Online Now
1 registered members (Duke), 60 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,575
Posts112,029
Members4,812
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.025s Queries: 14 (0.009s) Memory: 5.6310 MB (Peak: 5.8254 MB) Zlib enabled. Server Time: 2018-09-20 08:59:39 UTC