Update README.md

This commit is contained in:
Jeff Harris 2019-12-10 10:56:09 -08:00 committed by GitHub
parent f42242306a
commit e3a6995118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Watcom symbol dump codegen tools
### codegen.py
## codegen.py
Takes an [exedump](https://github.com/jeff-1amstudios/open-watcom-v2/tree/master/bld/exedump) output file and generates skeleton "c" project files containing functions, structs, enums and global variables.
@ -41,6 +41,26 @@ void CalcEngineForce(tCar_spec *c, br_scalar dt) {
}
```
### split-dump.sh
### Usage
1. Concatenate the executable file and the symbol file
```
cat carma1.exe dethrace.sym > carma_with_symbols.exe
```
2. Execute wdump and pipe the output to file
```
wdump -Daglmt carma_with_symbols.exe > dump.txt
```
3. Execute the codegen tool
```
codegen.py dump.txt
```
You now have the C skeleton files in `./_generated`.
## split-dump.sh
Takes a [exedump](https://github.com/jeff-1amstudios/open-watcom-v2/tree/master/bld/exedump) output file and splits it into a single file per module for easier debugging.