BartmanAbyss / vscode-amiga-debug

One-stop Visual Studio Code Extension to compile, debug and profile Amiga C/C++ programs compiled by the bundled gcc 12.2 with the bundled WinUAE/FS-UAE.
GNU General Public License v3.0
303 stars 38 forks source link

Parse frames-interp output by whitespace #160

Closed grahambates closed 1 year ago

grahambates commented 1 year ago

The current implementation uses character offsets from the header row, but this can break if long values push rows out of alignment e.g.

   LOC   CFA      r2    r3    r4    r13   r14   ra
00001d7c r15+4    u     u     u     u     u     c-4
00001d80 r13+8    u     u     u     c-8   u     c-4
00001d84 r13+8    c-1048 c-1044 c-1040 c-8   c-1036 c-4

Splitting on whitespace and using element indexes from the header row instead handles this case.

grahambates commented 1 year ago

Fixes #35