Closed joshua-smith-12 closed 3 weeks ago
pokeplat produces 2 sections for each overlay for some reason, idk why
- this might just be a quirk of the debuginfo, i think it's generating a pointer to the end of the section.
this can probably just be avoided by loading the 1st matching section only.
all of the issues originally outlined are resolved. stepping still does not work.
stepping works fine now, i think there was an issue with section mappings. i'll close this now. see branch nds-overlays
overlay auto
,overlay list
are now functional: displays the loaded overlays as they become loadedneed to ensure only code-containing sections are marked as overlaid (pokeplat produces 2 sections for each overlay for some reason, idk why)not 100% clear if unloading overlays works, needs testing.overlay mapping addresses to lines/breakpoints is still broken, something inbreakpoint.c
is not mapped correctly. (e.g. a breakpoint inchoose_starter_app.c
triggers inov4
, but in reality NEITHER of these are loaded,ov77
is!) --- my suspicion for this is the part ofbreakpoint.c
that checks whether the correct overlay is loaded does not work right for these overlays, maybe it still checks VMA/LMA/etc.