Automated analysis of core file
I intend to write a program that generates a GDB Script which loads up the core file and its executable, prints the values of few local variables and quits GDB. Once the program completes the creation of GDB script and saves it, i want it to execute the script on GDB.
How do i do this? "Source script" only works if it is typed in GDB command prompt.Is there any way i can run GDB from withing the program and have it execute the script.
I am doing my development in C. If its not possible from with C program how else can it be done ?
Thank You
novice
|