Skip to content

A hot fix tool for compiled languages such as c and c++

License

Notifications You must be signed in to change notification settings

overlogged/tigerfix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TigerFix

Build from source

python3 setup.py sdist
pip3 install dist/tigerfix-0.1.3.tar.gz

Installation

pip3 install tigerfix

Usage

  • you should install the library and c/c++ files at first
tfix install
  • write your main program
    • include <tigerfix/def.h>
    • add -ltfix flag when linking
  • write your patch file
    • include <tigerfix/dev.h>
    • use extern to get access to what you want to use in patch code
    • compile patch without linking it
    gcc patch.c -c -fPIC -o patch.o
    
  • generate patch file

tfix gen -m main -o patch.tfp patch.o
  • do hotfix
    • eval pgrep main , and you will get a pid(for example,10000)
    tfix fix 10000 patch.tfp
    

About

A hot fix tool for compiled languages such as c and c++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published