vshaxe / hashlink-debugger

Visual Studio Code Debugger for Haxe/HashLink applications
https://hashlink.haxe.org/
MIT License
57 stars 23 forks source link

Win64 Stacks #63

Closed ncannasse closed 4 years ago

ncannasse commented 5 years ago

On Win64, we should no longer look for EBP+EIP sequences in stacks.

ncannasse commented 5 years ago

That's more complex because we need the EBP for locals. I need to look more into this.

In order to reproduce : use the following for HtmlText split text:

    override function splitText(text:String):String {
        if( realMaxWidth < 0 )
            return text;
        yPos = 0;
        xMax = 0;
        sizePos = 0;
        calcYMin = 0;

        var doc = try Xml.parse(text) catch( e : Dynamic ) throw "Could not parse " + text + " (" + e +")";

        var sizes = new Array<Float>();
        prevChar = -1;
        newLine = true;
        for( e in doc )
            buildSizes(e, font, sizes);
        if( sizes.length < 2 )
            return text;

        throw "TODO";
    }

And talk to NPC

ncannasse commented 4 years ago

This was partially done but EBP detection is still off sometimes.

ncannasse commented 4 years ago

Fixed with latest commits