OAR

RTEMS GNU Tools On-Line Library


Altering

PREV UP NEXT Bookshelf Debugging with GDB

Chapter 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.

  • Assignment Assignment to variables
  • Jumping Continuing at a different address
  • Signaling Giving your program a signal
  • Returning Returning from a function
  • Calling Calling your program's functions
  • Patching Patching your program

  • PREV UP NEXT Bookshelf Debugging with GDB

    Packaging copyright © 1988-2000 OAR Corporation
    Context copyright by each document's author. See Free Software Foundation for information.