mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 01:29:29 +02:00
WebAssembly debug info: use different LINE_BASE and LINE_RANGE on WebAssembly to
improve compatibility with WasmTime's debugger support
This commit is contained in:
parent
4914a5a31f
commit
993db6cf32
@ -282,8 +282,16 @@ implementation
|
||||
;
|
||||
|
||||
const
|
||||
{$ifdef WASM}
|
||||
{ WasmTime's debugger requires that:
|
||||
(LINE_BASE<=0) and (SignedInt8(LINE_BASE + LINE_RANGE) > 0),
|
||||
so we use different values for WebAssembly }
|
||||
LINE_BASE = 0;
|
||||
LINE_RANGE = 127;
|
||||
{$else WASM}
|
||||
LINE_BASE = 1;
|
||||
LINE_RANGE = 255;
|
||||
{$endif WASM}
|
||||
OPCODE_BASE = 13;
|
||||
|
||||
const
|
||||
|
Loading…
Reference in New Issue
Block a user