You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* notifyBreakpoints prints a virtual address
* loadSnapshot functions with virtual addresses
- loading the PC happens via virtual address. If PC is invalid a FATAl is thrown
- loadings Breakpoints happens via virtual addresses. Invalid breakpoints are ignored
- the return address of a frame is a virtual address
- for frames that are not functions nor guards, the block_key is passed as a virtual address
* removed unneeded interruptOffset
By ensuring that the interrupts operate on virtual addresses the interruptOffset becomes unnecessary.
* snapshot and dumpFull interrupt print unexisting addresses as -1
- dumpCallstack: prints -1 as callsite address and frame return address if the physical pointer is a nullptr
- snapshot prints the nullptr return addresses of frames as -1
- dumpfull_test.cpp and snapshot_test.cpp updates to account for the -1 address
* loadingSnapshot accounts for negative return address
- loadsnapshot_test.cpp: added tests for negative sp, fp and nullptr return address for frame
- snapshot_state_encoder.cpp: encodes nullptr return address of frames as signed integer of value -1
* clang format
* name refactor ReceiveState -> ExecutionState
* moved enuk above snapshot to avoid comp error
* add inspect interrupt + refactor snapshot
- added the inspect interrupt that can prints parts of the wasm state depending on the payload
- refactored snapshot to use the inspect method.
* made executionState public
* bug fixes: comma, not zero block key & break
- the PC should not print the comma
- the callstack state should print 0 and not bt as block key for guard and function frames
- the stackstate case was missing the break
* add convenience method for printing full errormessages during unit tests
* add unit tests for inspect inerrupt
* bug fix: inspect prints -1 for nullptr callstack return addresses
* bug fix: unit test should have tested for nullptr ret addr
* add constructor parameter to InterruptFixture + refactor subclasses
- added in the InterruptFixture class a constructor parameter to pass the interrupt nr on construction
- All fixtures extending InterruptFixture are refactored to use the new constructor
- breakpointinterrupt_test.cpp got further refactor to provide one fixture for addbp and one for remove
* refactor: rename memState -> memoryState
* refactor: changed inspect interruptNr to 0x09
* add another callback dump
dump_callbacks version 2 is different than dump_callbacks in the way how the produced json looks like. This alternative way makes the loading of the snapshots for the callbacks easier.
* added callbacks and events as possible state to inspect
* snapshot also dumps callbacks and events
* loading snapshot can load callbacks mapping
* add helper class for nlohmann json objects
* refactored inspect_test.cpp to use jsconcompanion class
* add tests for inspecting callbacks and events
* add test to ensure that a snapshot prints all expected possible states
* clang
* add string encoder for unit testing
* add callbacks encoder for unit testing
* add test to ensure that callbackmapping can be loaded
* bug fix: string encode encodes the string size as well
* add method for sending no payload interrupt + refactor to use method
refactor dumpfull_test.cpp to use the new method
* bug fix: catch for possible incorrect value conversions
* loadsnapshot also loads events if desired
* add encoding for events + test to check if events can be loaded
* fix interruptInspect and interruptLoadSnapshot number
* refactor uint32 and uint8 to hexa string in helper class
* bug fix: null termiante buffers and use Serialiser helper class
* unit tests bug fix: null terminate strings
* Update makefile to work on both mac and linux
* Fixup! use $@
---------
Co-authored-by: Carlos Rojas <[email protected]>
Co-authored-by: Christophe <[email protected]>
Co-authored-by: tolauwae <[email protected]>
0 commit comments