Priest of the Order of the Butterfly
Posts: 543 from 2007/8/6
From: Pending...
After a bit of inspiration and thought I may have a better approach to branching into a debuggee program. I'm pretty sure the debugger can do without having to load the debuggee to a particular address. Rather, the debugger could let LoadSeg() do it's job but then allocate some memory (one or two KB) within a 32MB vicinity of the .text or code segment of the debuggee - the closer the better. I know there is an AllocAbs() function but I don't know how to determine if a particular address / block is free before trying to AllocAbs(). How is this done?
edit: Re-checking replies to previous questions... I think I know the answer. Also found where the MemList is too.
[ Edited by ausPPC on 2011/3/9 11:08 ]
PPC assembly ain't so bad... ;)