HP IA-64, Ski Simulator manual List of Figures

Page 9

Ski IA-64 Simulator Reference Manual 1.0L

 

 

List of Figures

 

Figure 1-1.

Starting xski From the Command Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2

Figure 1-2.

The Four Primary xski Windows. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3

Figure 1-3.

Loading the “ hello” Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4

Figure 1-4.

The xski Program Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4

Figure 1-5.

The xski Data Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5

Figure 1-6.

The xski Register Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5

Figure 1-7.

Changing the Data Window Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6

Figure 1-8.

The Data Window Showing the argv and envp Vectors . . . . . . . . . . . . . . . . . . . . . . . . . 1-6

Figure 1-9.

The Data Window Showing argv and envp Strings in Hexadecimal . . . . . . . . . . . . . . . . . . 1-7

Figure 1-10.

The Main Window Showing Commands in the Command History . . . . . . . . . . . . . . . . . . . 1-7

Figure 1-11.

The Data Window Showing argv and envp Strings in ASCII . . . . . . . . . . . . . . . . . . . . . . 1-8

Figure 1-12.

Jumping the Program Window to the Beginning of main(). . . . . . . . . . . . . . . . . . . . . . . . 1-9

Figure 1-13.

The Program Window Showing Code at the Beginning of main() . . . . . . . . . . . . . . . . . . . . 1-9

Figure 1-14.

The Program Window Showing a Breakpoint at main() . . . . . . . . . . . . . . . . . . . . . . . . 1-10

Figure 1-15.

The Breakpoint List Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-11

Figure 1-16.

The Terminal Window After the “ hello” Program is Run

1-12

Figure 1-17.

The xski Main Window after the “ hello” Program is Run

1-12

Figure 1-18.

The Main Window After Reaching the Breakpoint at main+10

1-13

Figure 1-19.

The xski Register Window After Stopping at a Breakpoint at main+10

1-14

Figure 1-20.

The xski Register Window After Changing the ip Register . . . . . . . . . . . . . . . . . . . . . . 1-15

Figure 1-21.

The xski Data Window Widened to Show ASCII . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-16

Figure 1-22.

The xski Data Window After Changing the “Hello, world” String

1-16

Figure 1-23.

The xski Main Window Showing an eval Command and Its Result . . . . . . . . . . . . . . . . . 1-17

Figure 2-1.

The Curses-basedski Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2

Figure 2-2.

The X Window System, Motif-basedxski Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3

Figure 2-3.

The Command-Linebski Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4

Figure 3-1.

The Register Window in xski

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2

Figure 3-2.

The xski User Registers Pane

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3

Figure 3-3.

The xski General Registers Pane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3

Figure 3-4.

The xski Floating Point Registers Pane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4

Figure 3-5.

The xski System Registers Pane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4

Figure 3-6.

The xski IA-32 Registers Pane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5

Figure 3-7.

An xski Pane Resizer: The Small Box Between the Scrollbars . . . . . . . . . . . . . . . . . . . . . 3-5

Figure 3-8.

The ski Register Window (at Top) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6

Figure 3-9.

xski’s Program Window Showing Part of an IA-64 “hello world” Program . . . . . . . . . . . . . . 3-7

Figure 3-10.

xski’s Program Window Showing IA-64 Predication and Breakpoints . . . . . . . . . . . . . . . . . 3-8

Figure 3-11.

xski’s Program Window Showing IA-32 Code, the Instruction Pointer, and a Breakpoint . . . . . . . 3-9

Figure 3-12.

xski’s Program Window Showing Illegal Instructions . . . . . . . . . . . . . . . . . . . . . . . . . 3-10

Figure 3-13.

xski’s Program Window Showing Unallocated Space or No Translation

3-10

Figure 3-14.

xski’s Data Window Showing Unallocated Space Followed by Data

3-11

Figure 3-15.

xski’s Data Window Showing Data Interpreted as Instruction Bundles

3-11

Figure 3-16.

xski’s Main (Command) Window

3-13

Figure 3-17.

ski’s Command Window (at Bottom)

3-14

Figure 3-18.

xski’s Symbol List Window

3-15

Figure 4-1.

xski Evaluating Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3

Figure 4-2.

xski’s Symbol List Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4

Figure 5-1.

xski’s Program Window Showing IA-64 Assembly Language Code . . . . . . . . . . . . . . . . . . 5-3

Figure 5-2.

xski’s Program Window Showing Intermixed C and IA-64 Assembly Code . . . . . . . . . . . . . . 5-4

Figure 5-3.

xski’s Assembly Language Dump Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4

Figure 5-4.

xski Showing Data as Instruction Bundles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-5

Figure 5-5.

xski Showing Data in Raw Hexadecimal and ASCII . . . . . . . . . . . . . . . . . . . . . . . . . . 5-6

Figure 5-6.

xski’s Hexadecimal Dump Window

. 5-6

Figure 6-1.

Example Code to Simulate an External Interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2

Figure 6-2.

sdt Command Output in xski . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3

Copyright © 2000 Hewlett-Packard Co.

List of Figures

ix

Image 9
Contents Copyright 2000 Hewlett-Packard Co Ski IA-64 Simulator Reference ManualTrademarks Printing HistoryPreface How to Use This ManualFont Conventions Syntax ConventionsItalic+ Table of Contents Ski IA-64 Simulator Reference Manual Vii Ski IA-64 Simulator Reference Manual Viii Table of Contents List of Figures Ski IA-64 Simulator Reference Manual 1.0L List of Tables Ski IA-64 Simulator Reference Manual 1.0L Xii List of Tables Getting Started a Ski Tutorial How to Run an IA-64 Application ProgramSki Simulator Starting xskiStarting xski From the Command Line Loading Your Program Exiting SkiLoading the hello Program Xski Data Window Inspecting DataChanging the Data Window Display Data Window Showing argv and envp Strings in Hexadecimal Looking at Code Viewing Data in Ascii12. Jumping the Program Window to the Beginning of main Viewing Source Code Mixed In with Assembly Code14. The Program Window Showing a Breakpoint at main Controlling Breakpoints15. The Breakpoint List Window Running a Program16. The Terminal Window After the hello Program is Run Single-stepping a Program18. The Main Window After Reaching the Breakpoint at main+10 Changing Registers and MemorySki IA-64 Simulator Reference Manual 1.0L 20. The xski Register Window After Changing the ip Register 21. The xski Data Window Widened to Show Ascii Next Steps Getting HelpCopyright 2000 Hewlett-Packard Co Introduction OverviewWhat You Need to Know to Use This Manual Defects and Defect ReportingSki Variations Using bski for Batch SimulationsX Window System, Motif-based xski Interface Starting Ski Command Line Flags1.1 Summary of Flags XSki FileSummary of the Quit Command Quitting SkiQuit expression Screen Presentation Ski’s Use of WindowsRegister Window Register Window in xski User Registers PaneFloating Point Registers Pane General Registers PaneIA-32 Registers Pane System Registers PaneRegister Window and ski Resizing Register Window Panes with xski1 IA-64 Instruction Display Program WindowSki IA-64 Simulator Reference Manual 1.0L 2 IA-32 Instruction Display Invalid Code and the Program Window Changing the Range of Locations Shown in the Program Window12. xski’s Program Window Showing Illegal Instructions Data WindowChanging the Range of Locations Shown in the Data Window Command/Main Window Invalid Code and the Data WindowXski Main Window 16. xski’s Main Command Window Ski Command WindowOther Windows 17. ski’s Command Window at Bottom18. xski’s Symbol List Window Copyright 2000 Hewlett-Packard Co Command Entry Command LanguageCommand Arguments Command Sequences, Repetition, and AbbreviationNumeric Arguments Argument SpecificationNumbers and Counts ExpressionsXski Evaluating Expressions Ski Simulator Arithmetic and Logic OperatorsSymbolic Arguments Program-Defined SymbolsAddresses Internal Variables Resolving Ambiguous Symbols and NumbersLabels FilenamesSki IA-64 Simulator Reference Manual 1.0L Register Window Commands Screen Manipulation CommandsSummary of Register Window Commands Xski Register Window CommandsSummary of Program Window Commands Program Window CommandsXski’s Program Window Showing IA-64 Assembly Language Code Pd startingaddress endingaddress filename Xski’s Assembly Language Dump WindowSummary of Data Window Commands Data Window CommandsDj address Df countDd startingaddress endingaddress filename Xski Showing Data in Raw Hexadecimal and AsciiApplication-Mode and System-Mode Simulation Program SimulationSki Support for Application-Mode Programs Ski Support for System-Mode ProgramsSystem-Mode IA-64 Programs Summary of TLB Display CommandsSystem-Mode IA-32 Programs System-Mode TLB SimulationMisaligned Data Access Trap How to Load a ProgramProgram Loading Load filename args+ Summary of Program Loading CommandsAdding Information after Loading Creating the argc, argv, and envp ParametersProgram Execution Summary of Program Execution CommandsSki IA-64 Simulator Reference Manual 1.0L Program Simulation Linux and MS-DOS ABI Emulation InterruptionsLinux Application Environment Linux System Calls Accepted but Ignored by Ski Linux System Calls Supported by SkiMS-DOS Application Environment Program I/OMS-DOS System Calls in Hexadecimal Supported by Ski Copyright 2000 Hewlett-Packard Co Summary of Assignment Commands Changing Registers and Memory with Assignment CommandsExamples of Assignment Commands DebuggingOriginal Program Loaded in ski Allocation Bit-encoded RegistersSetting Program Breakpoints Summary of The eval CommandEvaluating Formulas and Formatting Data Program BreakpointsListing Program Breakpoints Deleting Program BreakpointsSummary of Program Breakpoint Commands Unexpected BreakpointsBs address Summary of Data Breakpoint Commands Setting Data BreakpointsData Breakpoints Deleting Data BreakpointsSummary of Save and Restore Commands Symbol Table CommandsSummary of Symbol Commands Dumping Registers and Memory to a FileIsyms filename Symlist Output from xskiSki IA-64 Simulator Reference Manual 1.0L Debugging Labels and Control Flow in Command Files Command FilesGoto Command and Labels Initialization FileComments in Command Files An Example Command FileIf Command filename Summary of Command File Commands# comment LabelSki IA-64 Simulator Reference Manual 1.0L Command Files =s address stringwithoutspaces Command ReferenceDbd breakpointnumber Dbs address length rwrwEval expressionwithoutspaces+ Help commandnameRest filename Quit returnvalueforshellStep until expressionwithoutspaces Ski IA-64 Simulator Reference Manual 1.0L IA-64 Registers Register NamesRegister Names Copyright 2000 Hewlett-Packard Co Register Names B-3 Ski IA-64 Simulator Reference Manual 1.0L Copyright 2000 Hewlett-Packard Co Register Names B-5 Ski IA-64 Simulator Reference Manual 1.0L Register Names Internal Variables Internal Variable NamesCopyright 2000 Hewlett-Packard Co All breakpoints deleted Simulator Status and Error MessagesSimulator Status and Error Messages Expression Help Unknown command %s Missing ELF header Not an IA-64 file Stopping at %s due to unimplemented instruction Usage %s options file args