Background and context: I am doing a small project on Chromium and I am working on a function that compiles the JS code which is received as a parameter.
I was able to take the type with the JS code and create from it a C++ string (or C char*) with the code.
The problem I am facing is creating something of the original type that had the JS code within it, I have searched in the Chromium files for a line that create this type and I didn't find one that takes code (as char* or string) and creates that type with the code - like the parameter that the function is receiving.
What I am looking for: In order to gain a better understanding as to how originally this function receives this parameter (so I will be able to create it myself) I am looking for a tool for C/C++ that can tell me for a given function, or a parameter for a given function, who passed this parameter, who passed it to the one that passed it to the function (and so forth) and finally who created it (preferably what line in the code)
Does anyone know such a tool ? any help is greatly appreciated!