Say I have a tiny C++ or C application which allocates some memory. I'd like to instruct the program to use the GCC source code which I have manually downloaded, so that I can step in to new()
and malloc()
.
I understand it'd be terribly difficult to step in to the actual OS copy of the code, but after doing some digging around I believe it is possible if I download a copy of the GCC source code (which I have done) and something regarding installing "symbols"???
Would somebody be able to advise me what I need to do once I have downloaded a copy of the GCC source code so that my C++/C application uses the downloaded copy of the GCC code, so that I can debug/step in to the C code?
UPDATE: I think this is what I require:
http://ubuntuforums.org/showthread.php?t=1374829&p=8831200#post8831200
**One question, how would I complete the "compile the source code" stage, mentioned in the above link?