This commit is contained in:
Jeff Epler 2022-10-22 20:28:23 -05:00
parent 1e07747c6e
commit 9235698c79
No known key found for this signature in database
GPG key ID: D5BF15AB975AB4DE

View file

@ -16,12 +16,20 @@ The code here builds towards addressing these problems.
make
```
This builds `a.out-stripped`, which contains enough information for minidump.
## Running Minidump
```
py/minidump.py
$ py/minidump.py
@0000: Load 2906 bytes starting at 4096
shared_mem @ 0x0b7c 0x0400 bytes
```
This shows the amount of code (& initialized data) to be loaded from a.out-stripped, and at what offset within a.out-stripped that data comes.
Then, it shows the size and offset in ULP memory of the symbol `shared_mem`.
## Using
In principle, you now use a wrapper around `minielf` to (A) load the Coproc
binary and (B) to find symbols within the CoprocMemory.