01 April 2008, 16:05 | #1 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
WinUAE Debugger
Hey guys
I'm trying to use a memwatch point to see when a value is written to a mem location I'm using the following w 1 $11c6 W but it doesn't seem to work.. what is the correct syntax for this? Thanks |
01 April 2008, 17:07 | #2 |
Registered User
Join Date: Mar 2006
Location: Germany
Posts: 899
|
Why not look at the info the help ('h') command gives you?
w <num> <address> <length> <R/W/I/F> [<value>] |
01 April 2008, 21:45 | #3 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
i looked. Hence the w 1 $11c6 W
|
01 April 2008, 21:57 | #4 |
Registered User
Join Date: Mar 2006
Location: Germany
Posts: 899
|
You're missing the length value (assuming 1 is the watchpoint number and 11c6 the address)
|
01 April 2008, 22:22 | #5 |
Global Moderator
Join Date: Mar 2001
Location: UK
Age: 46
Posts: 6,166
|
You don't need the dollar sign either I think.
|
02 April 2008, 00:31 | #6 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
how do i specify the length ? B w or l i presume? Can't test night now i'm working.
|
02 April 2008, 06:17 | #7 |
Registered User
Join Date: Mar 2006
Location: Germany
Posts: 899
|
Length is a numerical value and specifies the window size in memory where an access can trigger the watchpoint. Example: if you use w 0 1000 9 W, any longword that is written in the range $ffd (last byte of operation is in window) to $1008 (first one) triggers the watchpoint, so move.l #123,$ffd, sub.l #234,$1000, or add.l #345,$1008 would trigger. If you would add 345 for value (w 0 1000 9 W !345), only the last one would trigger. For word sized operands the range would be $fff to $1008, for byte sized $1000 to $1008.
Notes: address, length and value are interpreted as hexadecimal numbers, unless you specify otherwise (needs WinUAE 1.4.6 or higher). You can have up to 8 memwatch breakpoints (0-7) and you can have any combination of them set/unset, for example watchpoints 2 and 5 set, the remaining ones not set. Also note that the description in help is slightly incorrect as address, length and trigger operation are optional too. w <num> [<address> [<length> [<R/W/I/F> [<value>]]]] would be better. w <num> deletes watchpoint <num>. If address is specified, watchpoint <num> is set to address. Default value for length is 1, default value for trigger operation is RWI. Hope this clears it up a bit. |
02 April 2008, 07:59 | #8 |
Global Moderator
Join Date: Mar 2001
Location: UK
Age: 46
Posts: 6,166
|
Also type w to view a list of watchpoints.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
WinUAE debugger differences | pmc | support.WinUAE | 2 | 05 October 2011 12:57 |
WinUAE debugger - help needed | Mendou | support.WinUAE | 3 | 16 May 2011 14:45 |
Need help using the WinUAE Debugger | Steve | support.WinUAE | 9 | 10 January 2009 20:00 |
WinUAE Debugger help | Jherek Carnelia | Coders. General | 3 | 26 May 2007 15:52 |
WinUAE Debugger ???? | RetroMan | support.WinUAE | 2 | 27 January 2004 12:17 |
|
|