Patching Source Code; To Change A Variable Using A C Expression - HP 68000 Series User Manual

Debugger/simulator
Table of Contents

Advertisement

Chapter 5: Editing Code and Data

Patching Source Code

Patching Source Code
When you change source code by editing the C source file, you need to
re-compile.
The debugger provides several ways to patch your program without
re-compiling:

To change a variable using a C expression

1 Enter a C expression in the entry buffer.
A good way to do this is to highlight an expression from your source code
using the left mouse button. When you release the button, the expression will
appear in the entry buffer. Now edit the expression to have the desired value.
2 Click on the C Expr () action key. Or select Display→C Expression from the
menu bar.
The value of the variable will be changed until the program modifies it. You
can continuously monitor the variable's value if you display it in the Monitor
window (use the Monitor () action key or the Expression Monitor Value
command).
Or:
• Using the command line enter:
Expression C_Expression <expression>
176
Change a variable's value using a C expression.
Apply a patch using a breakpoint macro.

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents