Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22079

Annotate variables with custom debug information with GCC/Clang?

$
0
0

Say, I am writing my own debugger. Since this debugger will only be used to debug some specific applications, I want it to understand the program semantics better than a generic debugger can. In order to do this, I want to annotate variables and functions in my program with certain custom debug information that I can later query from the debugger.

  1. Is there any way I can achieve this using GCC or Clang, on Linux OS with DWARF 4 debug system?

  2. Optionally, is there a way to achieve it with MSVC on Windows OS, or with Clang on MacOS too?


Viewing all articles
Browse latest Browse all 22079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>