HP (Hewlett-Packard) IA-64 Computer Accessories User Manual


 
Copyright © 2000 Hewlett-Packard Co. Getting Started: A Ski Tutorial 1-15
Ski IA-64 Simulator Reference Manual 1.0L
Changing registers isn’t enough to debug most programs, however. Often, you need to change values in memory as well.
Ski provides several commands for this, differing in whether they modify one-byte chunks, two-byte chunks, four-byte
chunks, eight-byte chunks, or variable-length C-language text strings. For example, instead of “hello world”, you can
have the program output “Ski!Ski!Ski!”. You can do this by using the =s command (“=string”) to modify the data
stored at the address _IO_stdin_used+8”. (The string may be stored at a different address in your program. If so, use
the Data Window to locate the string and then use the corresponding address instead.) Here’s what to do:
First, make sure the Data Window is wide enough to show ASCII translations along with hexadecimal, as in Figure 1-21.
To avoid confusion, make sure the Data Window doesn’t overlap the Main Window.
Figure 1-20. The
xski
Register Window After Changing the ip Register