I am wanting to see all the code which gets called when an object is created on the heap using new()
.
Initially I had the project in debug but then I realised there were debug-specific malloc()
functions getting called. Due to this I changed to "Release" mode to see how far through the code I could step in to.
I got this far:
void * __cdecl _malloc_base (size_t size)
{
void *res = NULL;
// validate size
if (size <= _HEAP_MAXREQ) {
for (;;) {
// allocate memory block
res = _heap_alloc(size);
but when I tried breaking in to _heap_alloc()
the debugger just skipped over the line.
What would be the best strategy for me to complete this exercise (being able to see all of the code which gets called when memory is allocated) but without seeing all the excess debug code?
EDIT: I guess the question I am asking is, if I come across a function I cannot step in to, is there any way for me to be able to search for the function name somewhere and find the implementation?