Re: [hatari-devel] Hatari debugger question

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

On lauantai 10 elokuu 2013, Eero Tamminen wrote:
> On lauantai 10 elokuu 2013, Douglas Little wrote:
> > Is there an easy way to trace all writes to a specific memory region?
> > More specifically, writes to an interesting set of hardware registers,
> > within some address range
> 
> Unfortunately, no.
> 
> > (Or even just all hardware registers - that would be nearly as good).
> 
> Yes: "--trace io_write".
> 
> > I'm trying to track down a conflict between two audio replay routines
> > (SNDH replay, and separate DMA replay) and I'm not sure where the
> > conflict is. The SNDH player is modifying some MFP or audio DMA state
> > and I'd like to know where and why it needs to do this so I can make
> > changes.

"mfp_write" and "dmasound" traces might of course also be of interest...

On command line "--trace help" option and in debugger TAB-key
(after "trace" command) show the all the tracing options.


> Interpreting trace of all IO writes is easier if you can:
> 
> * Somehow reduce the amount of traced code, by setting some
>   breakpoints where you start the tracing and where you end it.
> 
> * Provide debugger just symbols for functions that are relevant
>   for understanding what code could be doing the calls, and use
>   "cpu_symbols" tracing in addition to "io_write" tracing.
> 
>   (just removing symbols for generic things that that get called
>    "too often" could be enough for that.)


	- Eero



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/