Wednesday, May 26, 2010

gdb script

to execute a gdb script:
gdb -x script_file
This will allow gdb to execute the specified script_file. More flexible than the .gdbinit option.

In the script, functions can be defined:

def test_case1
b main
end

test_case1

No comments: