Whole document tree
    

Whole document tree

Debugging with GDB: Altering
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

11. Altering Execution

Once you think you have found an error in your program, you might want to find out for certain whether correcting the apparent error would lead to correct results in the rest of the run. You can find the answer by experiment, using the GDB features for altering execution of the program.

For example, you can store new values into variables or memory locations, give your program a signal, restart it at a different address, or even return prematurely from a function.

11.1 Assignment to variables  
11.2 Continuing at a different address  
11.3 Giving your program a signal  
11.4 Returning from a function  
11.5 Calling program functions  Calling your program's functions
11.6 Patching programs  Patching your program



This document was generated by root on January, 30 2002 using texi2html