Programmer Question
Hi
How can I script gdb to do some basic stuff for me?
I would like to write some kind of script for gdb that more or less does this:
- Add a couple of breakpoints
- Start the program
- When we stop, where did it stop (get the frame info)
- Quit.
Today I'm trying to do this with
gdb --batch --command=commands.gdb
But it is not working...
Any ideas?
Thanks
Johan
Find the answer here
No comments:
Post a Comment