Skip to content
A mini x86 linux debugger that can trace executed source lines
C++ CMake
Branch: trace-line
Clone or download
Pull request Compare This branch is 5 commits ahead of TartanLlama:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
ext
include
src
.gitmodules
CMakeLists.txt
LICENSE
README.md

README.md

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.

You can’t perform that action at this time.