File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 246246 let frameIndex : UInt32
247247 let localIndex : UInt32
248248
249- package init ( frameIndex: Int , localIndex: Int ) {
249+ package init ( frameIndex: UInt32 , localIndex: UInt32 ) {
250250 self . frameIndex = frameIndex
251251 self . localIndex = localIndex
252252 }
Original file line number Diff line number Diff line change 244244 else { throw Error . unknownReadMemoryArguments }
245245
246246 if address > localOffset {
247- let localRaw = address - localOffset
248- let localAddress = Debugger . LocalAddress ( frameIndex : )
247+ let localAddress = Debugger . LocalAddress ( raw : address )
248+ fatalError ( )
249249 } else if address > stackOffset {
250250 fatalError ( " Stack reads are not implemented in the debugger yet " )
251251 } else if address > codeOffset {
252- let binaryOffset = address - stackOffset
252+ let binaryOffset = Int ( address - stackOffset)
253253 if binaryOffset + length > wasmBinary. readableBytes {
254254 length = wasmBinary. readableBytes - binaryOffset
255255 }
332332 response. writeInteger ( frameIndex, endianness: . little)
333333 response. writeInteger ( localIndex, endianness: . little)
334334
335- responseKind = . hexEncodedBinary( response)
335+ responseKind = . hexEncodedBinary( response. readableBytesView )
336336
337337 case . generalRegisters:
338338 throw Error . hostCommandNotImplemented ( command. kind)
You can’t perform that action at this time.
0 commit comments