I’d like to make GDB call a given function a large number of times automatically, say 100. Is there any command that will let me do that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Save this example script into a file say my_gdb_extensions
You can find more about gdb extensions here.
In the mentioned example
10is the number of times you want to call the function.fact(3)is the function name with argument as 3.