20 August 2022, 14:32 | #141 |
German Translator
Join Date: Aug 2018
Location: Drübeck / Germany
Age: 49
Posts: 185
|
debugmem_start=<address>
debugmem_size=<size in megabytes> Must be power of 2. uaedbg <program to debug> <program parameters> I change my A500 config to: debugmem_start=0x60000 debugmem_size=0x1000 (2^12=4096=0x1000) and start from shell >uaedbg example.exe Shift+F12 Debugger answer is: Failed to automatically allocate debugmem (no space)! What I have to do? |
21 August 2022, 11:17 | #142 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
|
It can't be used to move it over any existing memory space. It currently needs to at $7000000+ (won't work with 24-bit addressing)
Note that whole memory space becomes chipset accessible when debugmem is enabled. |
28 August 2022, 00:08 | #143 |
Registered User
Join Date: Jul 2017
Location: San Jose
Posts: 653
|
@Toni
I uploaded an executable to AB3DII_fresh.zip To test I created an A1200 setup with an 030 and 32MB of ZIII fastmem. Under OS3.1 the executable crashes, but uaedbg is able to debug. You'll see illegal/uninitialized memory access during OpenWindowTagList that can be ignored. Later the executable seems to access invalid chipmem and in this situation I cannot break into the debugger again and I need to kill WinUAE. Under OS 3.1.4 (3.2) the executable runs, but uaedbg is not able to debug... it will claim illegal instructions early on during startup of the executable, as if the debugger bungled the PC increment. |
03 September 2022, 00:24 | #144 |
Registered User
Join Date: Jul 2017
Location: San Jose
Posts: 653
|
@Toni Wilen
Is the UAE debugger supposed to work with an emulated 060 CPU? |
13 September 2022, 19:14 | #145 | ||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
|
Quote:
Quote:
CPU won't matter but other options might prevent it from working. More information needed. ("not working" don't help much). |
||
15 October 2022, 15:03 | #146 | |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,105
|
Quote:
Tried it 4.9.0/4.9.1/4.9.2b2 with different configurations. Test exe+config attached just in case. Uaedbg is the one from post #1. |
|
19 October 2022, 20:11 | #147 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
|
Only option currently is to move the VBR.
|
19 October 2022, 21:17 | #148 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,105
|
|
27 December 2022, 19:18 | #149 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,197
|
Found out about this only now (well, I kind of knew something like this existed but never tried it before)
Works a treat, showing symbols & other features are just awesome compared to the crap way I had to debug stuff. Going to help a lot with my stalled projects!! 32-bit mode is required, as reminded several times, else it just fails without any explanation. having the symbol printed is so noice: Code:
70008190 [000188] 4ef9 7000 83f2 jmp $700083f2 xevious_reset Code:
f xevious_reset |
27 December 2022, 20:06 | #150 |
Registered User
Join Date: Jul 2017
Location: San Jose
Posts: 653
|
|
28 December 2022, 12:24 | #151 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
|
f #xevious_reset should work. (without # it tries decode it as possible CPU register name and it does not have fallback)
|
03 January 2023, 19:59 | #152 |
Registered User
Join Date: Jul 2017
Location: San Jose
Posts: 653
|
Does the prefetcher cause Invalid Memory Access?
In this example it seems that the JMP instruction is directly adjacent to uninitialized memory. But since we jump away from that address, the prefetcher is wrong and running into unallocated memory. Code:
... AllocMem ID= 140: 00000000 70e6d800 - 70e6d81d (30) AllocFlags: 00010001 PC: 00f820a0 .... Invalid access. Addr=70e6d81c RW=R Size=4: Accessing invalid memory Page: 70e6d800 - 70e6d8ff. State=W Modified=*, Start=00, End=1D D0 00000000 D1 70E6D818 D2 00000000 D3 00000000 D4 00000000 D5 00000000 D6 00000000 D7 00000000 A0 00000000 A1 70E6D818 A2 00000000 A3 00000000 A4 00000000 A5 00000000 A6 70E5C600 A7 70E5D6DC USP 70E5D6DC ISP 400022A8 SFC 00000000 DFC 00000000 CACR 00002111 VBR 41FFFF00 CAAR 00000000 MSP 00000000 T=00 S=0 M=0 X=0 N=0 Z=0 V=0 C=0 IMASK=0 STP=0 SRP: 0 CRP: 0 TT0: 00000000 TT1: 00000000 TC: 00000000 Prefetch 70e6d81c deadf00d (1) 4018 (NEGX) dead (ADD) f00d (MMUOP030) Chip latch 00000000 70e6d818 4ef9 4018 19b6 jmp $401819b6 Next PC: 70e6d81e > > >seg Segment 1: 000003e9 70008000 - 700c2c5b (765020) Segment 2: 000003ea 700cad00 - 700dc7ff (72448) Segment 3: 000003eb 700e4800 - 70158c03 (476164) Segment 4: 000003ea 70160d00 - 70160d87 (136) Segment 5: 0000ffff 70168e00 - 70199b3f (200000) STACK >d 70e6d818 70e6d818 4ef9 4018 19b6 jmp $401819b6 70e6d81e 9797 sub.l d3,(a7) [00f9f86a] 70e6d820 9797 sub.l d3,(a7) [00f9f86a] 70e6d822 9797 sub.l d3,(a7) [00f9f86a] 70e6d824 9797 sub.l d3,(a7) [00f9f86a] 70e6d826 9797 sub.l d3,(a7) [00f9f86a] 70e6d828 9797 sub.l d3,(a7) [00f9f86a] 70e6d82a 9797 sub.l d3,(a7) [00f9f86a] 70e6d82c 9797 sub.l d3,(a7) [00f9f86a] 70e6d82e 9797 sub.l d3,(a7) [00f9f86a] |
05 January 2023, 07:40 | #153 |
Registered User
Join Date: Jul 2017
Location: San Jose
Posts: 653
|
Another question: do the custom chips create memory violations like reading from 0 or reading from uninitialized memory?
|
10 April 2023, 00:36 | #154 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,197
|
I have started using it to debug one of my games.
I had to move some variables far from RTS of previous routines (else fake prefetch issue, ok) I had to relocate VBR in fastmem and account for a relocated VBR: ok runs But I get some spurious breaks, then game runs (practice). When moving to main event I get spurious interrupts again, and then I get a bus error (vector VBR+8 is called) at $7FFFFFFE apparently (from my game debug) Running without uaedbg doesn't crash. Zoned the exe & startup sequence. Using WinUAE 4.10.0 |
10 April 2023, 19:03 | #155 | ||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
|
Quote:
Quote:
(I'll check files later) |
||
11 April 2023, 10:44 | #156 |
Moderator
Join Date: Sep 2004
Location: France
Age: 50
Posts: 4,277
|
never tested, to do!
it seems really interesting |
11 April 2023, 14:09 | #157 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,197
|
I think it needs some tuning, but the concept is really great. Enforcer sucks compared to this.
|
12 April 2023, 08:51 | #158 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
|
|
15 May 2023, 23:13 | #159 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,197
|
Can you start the game (press fire to skip the training part). The problem arose here. Training part were OK.
|
16 May 2023, 19:13 | #160 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
|
|
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 |
|
|