Patching Source Code; To Change A Variable Using A C Expression - HP B1476 68020 User Manual

Debugger/emulator
Table of Contents

Advertisement

Chapter 7: Editing Code and Data

To change a variable using a C expression

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
command).
Or:
• Using the command line enter:
Expression C_Expression <expression>
210
Change a variable's value using a C expression.
Apply a patch using a breakpoint macro.
M onitor Value

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1476 68030

Table of Contents