Afeather2017 / GDBTuiStdioRedirector

A simple Redirector interface which could redirect you program`s stdout, stdin and stderr. It may be useful while debugging.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUILD

  • Just run make to build.

SIMPLE INSTALL

  • Run make install
  • It will copy gdbout_api.hto /usr/include

INSTALL ALL

  • Run sudo make install_all
  • It will copy gdbout_api.hto /usr/include, rdircgdberr, rdircgdbout, serverrun.sh to /usr/bin/

HOW TO USE

  • If you run you program with this header file, you program will try to connect to serverrun.sh, or will not.
  • Just #include <gdbout_api.h>, and simply callclientInit(STDOUT_FILENO, STDERR_FILENO); or clientAutoInit(); at begin of functionmain. Run serverrun.sh before calling clientInit();

There is a demo called test.c

About

A simple Redirector interface which could redirect you program`s stdout, stdin and stderr. It may be useful while debugging.


Languages

Language:C 91.8%Language:Makefile 7.7%Language:Shell 0.5%