20 June 2019, 21:17 | #121 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
|
I guess I forgot to make it less strict when I decided to make this more usable for generic debugging..
But cache "support" is good idea: next update will complain if address was modified and later it gets executed without cache flush (if 68020+). |
20 June 2019, 21:36 | #122 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,488
|
|
25 January 2020, 18:23 | #123 |
Registered User
Join Date: Sep 2019
Location: Beirut / Lebanon
Posts: 8
|
W(rite) string with spaces
Using W on the debugger, it's not possible to write a string with spaces. I'm forced to write hex. Am I missing something?
|
26 January 2020, 14:12 | #124 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
|
|
26 January 2020, 17:38 | #125 |
Registered User
Join Date: Sep 2019
Location: Beirut / Lebanon
Posts: 8
|
Thanks! Helps having to convert manually
|
09 August 2020, 22:52 | #126 |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
@toni - I've had time today to try out the uaedbg side loader and new printf functionality in 4.4.0.
On the uaedbg, I'm finding the debugger is breaking on instruction fetch changes. Configuration is A1200 with Cycle exact, here's my code snippet: Code:
agdPingPong: tst.l .dir beq.s .down bmi.s .up bra.s .exit .down: cmp.w #$8c,CAMERA_YPOS beq.s .swap bsr agdPanDown bra .exit .up: cmp.w #$0,CAMERA_YPOS beq.s .swap bsr agdPanUp bra .exit .swap: not.l .dir bra.s .exit .dir: dc.l 0 .exit: rts Whenever the not.l is executed the debugger is breaking with: Code:
Invalid access. Addr=7000968c RW=R Size=4: Instruction fetch from memory that was modified after being executed at least once Is there any way to disable this particular check if what I think is happening is correct? Cheers, Graeme |
10 August 2020, 12:35 | #127 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
|
Instruction prefetch read hits the variable address. Either it happens when branch is executed (branch + next word/long gets loaded depending on alignment) or when jumping to RTS and RTS address is not long aligned (prefetch would load low word of variable and opcode of RTS)
It can't know if it is self-modifying code or just a harmless side-effect. Keep variables further away from code. (I personally prefer using A4 or A5 as a base pointer to variables, I hate unnecessary absolute addresses ) There is no option to disable kit, at least not yet. |
10 August 2020, 14:03 | #128 | |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
Quote:
I've put in some nops (CNOP 0,16 in Vasm) before the variable and now the debugger is not breaking which is good. While I do point one of the address registers to my global variables I also like the convenience of using local labels because then I don't need to have them as unique names in the global space. I'll make do with the workaround I have. Thanks for the fast response. |
|
04 March 2021, 05:27 | #129 |
Registered User
Join Date: Mar 2019
Location: Poland
Posts: 60
|
Is this tool still available for download? I got error 403 trying to access the link from 1st message.
|
04 March 2021, 13:34 | #130 | |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
Quote:
https://download.abime.net/winuae/files/b/uaedbg.zip |
|
06 March 2021, 18:42 | #131 |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
@Toni, you may want to update the 1st post of this thread with the above
|
06 March 2021, 21:27 | #132 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
|
Changed but replacing old url http->https should have been enough to fix it. I'll need to ask RCK again.
|
07 March 2021, 00:33 | #133 | |
Registered User
Join Date: Mar 2019
Location: Poland
Posts: 60
|
Quote:
|
|
20 September 2021, 11:51 | #135 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,537
|
|
23 September 2021, 20:11 | #136 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
|
Few example executables + source files required. Standard requirement
|
25 June 2022, 23:06 | #137 |
Registered User
Join Date: Jul 2017
Location: San Jose
Posts: 676
|
When running an executable under uadbg, I'm getting illegal instruction exceptions early on. When I look at the code/data, it looks like as if the data matches the executable, but PC somehow ended up "inside" instructions. This does not happen when running the executable under regular circumstances.
I tried with "more compatible" on and off, both same results. I'm emulating an A1200 + Blizzard1230 IV + 64MB (MMU enabled, MMULib in use) Do you have any advice on what went wrong? |
19 August 2022, 01:38 | #138 |
Registered User
Join Date: Jul 2017
Location: San Jose
Posts: 676
|
Are BSS segments recognized as "uninitialized"? If so, they probably should not.
Edit: the uninitalized reads were pointing to (chip) memory that had been allocated without MEMF_CLEAR. This happened when calling OpenWindow, so out of my control. Is there a way to only get exceptions "Invalid access. Addr=702da24c RW=R Size=4: Reading uninitialized memory" for memory that has not been allocated? Last edited by pipper; 19 August 2022 at 02:00. Reason: original claim is false |
19 August 2022, 02:01 | #139 |
Registered User
Join Date: Jul 2017
Location: San Jose
Posts: 676
|
Are BSS segments recognized as "uninitialized"? If so, they probably should not.
Edit: the uninitalized reads were pointing to (chip) memory that had been allocated without MEMF_CLEAR. This happened when calling OpenWindow, so out of my control. Is there a way to only get exceptions of kind "Invalid access. Addr=702da24c RW=R Size=4: Reading uninitialized memory" for memory that has truly not been allocated? |
20 August 2022, 11:21 | #140 | ||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
|
Quote:
Quote:
|
||
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Debugger updates (was: WinUAE Debugger HH PC history) | selco | support.WinUAE | 8 | 14 March 2018 22:27 |
Hacking the fs-uae console debugger | alpine9000 | Coders. Asm / Hardware | 1 | 28 March 2016 16:45 |
Added SegTracker to FS-UAE's Debugger | lallafa | support.FS-UAE | 7 | 16 January 2016 11:03 |
Amiga Segment!!! :) :) | blade002 | Amiga scene | 8 | 08 October 2015 15:00 |
SAS/C: Undefined symbols | Yesideez | Coders. C/C++ | 14 | 13 February 2014 16:36 |
|
|