[hatari-devel] Debugger address base
npomarede at corp.free.fr
npomarede at corp.free.fr
Fri Jul 31 21:05:00 CEST 2009
On Fri, 31 Jul 2009, Thomas Huth wrote:
> On Thu, 30 Jul 2009 22:39:16 +0200 (CEST)
> npomarede at corp.free.fr wrote:
>
>> On Thu, 30 Jul 2009, Eero Tamminen wrote:
>>
>>> Anyway, I think it might be better to have an option for forcing
>>> all numbers lacking prefix to be interpreted in certain number
>>> base. The new "value" command could for example accept special
>>> "dec", "hex" and "bin" argument for switching this.
>
> That sounds like a good idea! Could you implement this?
>
>>> The debugger prompt could show this mode.
>
> I'd rather would just show the mode when one enters the "value" command
> without arguments. I think you don't change the base too often, so
> showing it at each prompt sounds a little bit too much.
>
>>> In the config file this option could be named e.g.
>>> NumberInputBase. But what should be the prefix used for decimal
>>> numbers when non-the prefixed input is being interpreted as hex or
>>> binary?
>>>
>>
>> Yes, that's what I wondered too :) Maybe we could use '+' or '#' ?
>
> Sounds good, I'd prefer '+' but '#' is also fine for me.
>
> Thomas
By the way, there's a possibility that I think would be quite useful : to
be able to use Hatari's variable as breakpoint condition.
The 2 variables I'm thinking about for now are nVBLs and nHBL, as
sometimes you know a problem will happen after a certain time, or only at
a certain line, so doing something like :
VBL=30 && HBL=263 && ( $ff820a ) = 0
would be really cool.
Certainly some other variables could be exported this way, with a simple
table to associate a string to a pointer to that variable (we could assume
it's always 'int' size).
Would change the parser and the breakpoint evaluation function, so I'm not
sure if it could be done before release (Eero ?)
Nicolas
More information about the hatari-devel
mailing list