English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 01 April 2008, 16:05   #1
BippyM
Global Moderator

BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 45
Posts: 9,213
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
BippyM is offline  
Old 01 April 2008, 17:07   #2
thor
Registered User
thor's Avatar
 
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>]
thor is offline  
Old 01 April 2008, 21:45   #3
BippyM
Global Moderator

BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 45
Posts: 9,213
i looked. Hence the w 1 $11c6 W
BippyM is offline  
Old 01 April 2008, 21:57   #4
thor
Registered User
thor's Avatar
 
Join Date: Mar 2006
Location: Germany
Posts: 899
You're missing the length value (assuming 1 is the watchpoint number and 11c6 the address)
thor is offline  
Old 01 April 2008, 22:22   #5
CodyJarrett
Global Moderator

CodyJarrett's Avatar
 
Join Date: Mar 2001
Location: UK
Age: 43
Posts: 5,947
You don't need the dollar sign either I think.
CodyJarrett is offline  
Old 02 April 2008, 00:31   #6
BippyM
Global Moderator

BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 45
Posts: 9,213
how do i specify the length ? B w or l i presume? Can't test night now i'm working.
BippyM is offline  
Old 02 April 2008, 06:17   #7
thor
Registered User
thor's Avatar
 
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.
thor is offline  
Old 02 April 2008, 07:59   #8
CodyJarrett
Global Moderator

CodyJarrett's Avatar
 
Join Date: Mar 2001
Location: UK
Age: 43
Posts: 5,947
Also type w to view a list of watchpoints.
CodyJarrett is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:29.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.06869 seconds with 13 queries