Skip to content
/ minidbg Public
forked from TartanLlama/minidbg

A mini x86 linux debugger that can trace executed source lines

License

Notifications You must be signed in to change notification settings

yushih/minidbg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A trace debugger

Trace debugger is built upon https://github.com/TartanLlama/minidbg. It traces the execution of program on the source level and logs each excuted line to a file.

Usage

A new debugger command is added:

trace <source file> <log file>

Each time a line in <source file> is executed, a line <source file>:<line number> is logged to <log file>.

Rationale

This tool was created to debug a specific problem:

  • The code was complex and unfamiliar;
  • When a function was invoked twice with the same parameter, different results were produced.

The idea was to trace each invocation and see where the log started to bifurcate. With the help of this tool I was able to pinpoint the problem without examining the whole source.

About

A mini x86 linux debugger that can trace executed source lines

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.6%
  • CMake 3.4%