Ski IA-64 Simulator Reference Manual 1.0L

Figure 1-20. The xski Register Window After Changing the ip Register

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.

Copyright © 2000 Hewlett-Packard Co.

Getting Started: A Ski Tutorial 1-15

Page 27
Image 27
HP IA-64, Ski Simulator manual The xski Register Window After Changing the ip Register