HP Ski Simulator, IA-64 manual Simulator Status and Error Messages

Page 104

Ski IA-64 Simulator Reference Manual 1.0L

Breakpoint #%d wasn’t set

You used the bd command to delete a specific breakpoint but that breakpoint doesn’t exist. Did you specify the right breakpoint? Use the bl command to list the breakpoints. See “Deleting Program Breakpoints” on page 8-5and per- haps “Listing Program Breakpoints” on page 8-5.

Cannot access registers outside current frame

You tried to use the = command to assign a new value to a register that isn’t in the set of registers currently visible to your program. The only registers for which this can occur are the General Registers (gr) and their NaT bits. Ski faithfully implements IA-64 register stacking and rotation. Look at the most recent ALLOC instruction.

Cannot open file %s (%s) for %s

This generic error message indicates that Ski tried to open a file and failed. The first %s field is replaced with the file- name you provided, the second %s field is replaced with the filename Ski tried to use after tilde expansion, and the third %s field is replaced with the mode Ski tried to use, either “ reading”, “ writing”, or “ appending”. Check that you typed the filename correctly and that the directories you specified are accessible. Is there a permissions problem or a network failure, perhaps? See “Filenames” on page 4-5.

Construct DWARF image: can’t find .debug_info section

You told Ski to load a program. Ski couldn’t find the part of the executable file containing source code line number information. As a result, Ski won’t be able to show source code in the Program Window. See “Program Window Commands” on page 5-2.

Could not open %s for reading

You told Ski to load a program but Ski couldn’t open the file you specified. Perhaps you specified a file that is doesn’t exist or a pathname that includes non-existent or inaccessible directories? See “Program Loading” on page 6-3.

couldn’t find label %s

A command file tried to use the goto command but Ski can’t find the label to which the goto refers. The %s field is replaced with the label. Perhaps the label is spelled incorrectly? See “The goto Command and Labels” on page 9-1.

Couldn’t open file ‘%s’. Was ski started in the right directory?

Ski loaded a program to simulate, per your request, and tried to access source code pointed to by that program. But, for some reason, Ski couldn’t open the specified file. This can happen, for example, if files have been moved after compilation. See “Summary of Program Window Commands” on page 5-2.

Couldn’t open instruction count file

You started bski with the -icntoption but bski couldn’t open the file you specified. Perhaps you specified a file that is write-protected or a pathname that includes non-existent or inaccessible directories? See “Using bski for Batch Simulations” on page 2-2and “Command Line Flags” on page 2-4.

Data larger than a %s. Truncated to 0x%llx

You used the =, =1, =2, =4, or =8 commands to write data to a register or to memory. You provided more data than would fit, so Ski truncated the excess most significant part away and used the least significant part. The %s field on the left is how many bytes Ski needed. The %llx field on the right is the value after truncation. See “Changing Reg- isters and Memory with Assignment Commands” on page 8-1.

Error reading ‘%s’ line: %d

Ski tried to display the source code corresponding to an IA-64 program you loaded. For some reason, it failed to read a line from the file represented by the %s field, at the line number represented by the %d field. Perhaps the file per-

D-2 Simulator Status and Error Messages

Copyright © 2000 Hewlett-Packard Co.

Image 104
Contents Ski IA-64 Simulator Reference Manual Copyright 2000 Hewlett-Packard CoPrinting History TrademarksHow to Use This Manual PrefaceFont 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 How to Run an IA-64 Application Program Getting Started a Ski TutorialSki Simulator Starting xskiStarting xski From the Command Line Exiting Ski Loading Your ProgramLoading the hello Program Inspecting Data Xski Data WindowChanging the Data Window Display Data Window Showing argv and envp Strings in Hexadecimal Viewing Data in Ascii Looking at CodeViewing Source Code Mixed In with Assembly Code 12. Jumping the Program Window to the Beginning of mainControlling Breakpoints 14. The Program Window Showing a Breakpoint at mainRunning a Program 15. The Breakpoint List WindowSingle-stepping a Program 16. The Terminal Window After the hello Program is RunChanging Registers and Memory 18. The Main Window After Reaching the Breakpoint at main+10Ski 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 Getting Help Next StepsCopyright 2000 Hewlett-Packard Co Overview IntroductionWhat You Need to Know to Use This Manual Defects and Defect ReportingUsing bski for Batch Simulations Ski VariationsX Window System, Motif-based xski Interface Command Line Flags Starting SkiXSki File 1.1 Summary of FlagsQuit expression Summary of the Quit CommandQuitting Ski Register Window Screen PresentationSki’s Use of Windows User Registers Pane Register Window in xskiGeneral Registers Pane Floating Point Registers PaneSystem Registers Pane IA-32 Registers PaneResizing Register Window Panes with xski Register Window and skiProgram Window 1 IA-64 Instruction DisplaySki IA-64 Simulator Reference Manual 1.0L 2 IA-32 Instruction Display Changing the Range of Locations Shown in the Program Window Invalid Code and the Program WindowData Window 12. xski’s Program Window Showing Illegal InstructionsChanging the Range of Locations Shown in the Data Window Xski Main Window Command/Main WindowInvalid Code and the Data Window Ski Command Window 16. xski’s Main Command Window17. ski’s Command Window at Bottom Other Windows18. xski’s Symbol List Window Copyright 2000 Hewlett-Packard Co Command Language Command EntryCommand Arguments Command Sequences, Repetition, and AbbreviationArgument Specification Numeric ArgumentsNumbers and Counts ExpressionsSki Simulator Arithmetic and Logic Operators Xski Evaluating ExpressionsAddresses Symbolic ArgumentsProgram-Defined Symbols Resolving Ambiguous Symbols and Numbers Internal VariablesLabels FilenamesSki IA-64 Simulator Reference Manual 1.0L Screen Manipulation Commands Register Window CommandsSummary of Register Window Commands Xski Register Window CommandsProgram Window Commands Summary of Program Window CommandsXski’s Program Window Showing IA-64 Assembly Language Code Xski’s Assembly Language Dump Window Pd startingaddress endingaddress filenameData Window Commands Summary of Data Window CommandsDj address Df countXski Showing Data in Raw Hexadecimal and Ascii Dd startingaddress endingaddress filenameProgram Simulation Application-Mode and System-Mode SimulationSki Support for Application-Mode Programs Ski Support for System-Mode ProgramsSummary of TLB Display Commands System-Mode IA-64 ProgramsSystem-Mode IA-32 Programs System-Mode TLB SimulationProgram Loading Misaligned Data Access TrapHow to Load a Program Summary of Program Loading Commands Load filename args+Adding Information after Loading Creating the argc, argv, and envp ParametersSummary of Program Execution Commands Program ExecutionSki IA-64 Simulator Reference Manual 1.0L Program Simulation Linux Application Environment Linux and MS-DOS ABI EmulationInterruptions Linux System Calls Supported by Ski Linux System Calls Accepted but Ignored by SkiMS-DOS System Calls in Hexadecimal Supported by Ski MS-DOS Application EnvironmentProgram I/O Copyright 2000 Hewlett-Packard Co Changing Registers and Memory with Assignment Commands Summary of Assignment CommandsExamples of Assignment Commands DebuggingOriginal Program Loaded in ski Bit-encoded Registers AllocationSummary of The eval Command Setting Program BreakpointsEvaluating Formulas and Formatting Data Program BreakpointsDeleting Program Breakpoints Listing Program BreakpointsBs address Summary of Program Breakpoint CommandsUnexpected Breakpoints Setting Data Breakpoints Summary of Data Breakpoint CommandsData Breakpoints Deleting Data BreakpointsSymbol Table Commands Summary of Save and Restore CommandsSummary of Symbol Commands Dumping Registers and Memory to a FileSymlist Output from xski Isyms filenameSki IA-64 Simulator Reference Manual 1.0L Debugging Command Files Labels and Control Flow in Command FilesGoto Command and Labels Initialization FileIf Command Comments in Command FilesAn Example Command File Summary of Command File Commands filename# comment LabelSki IA-64 Simulator Reference Manual 1.0L Command Files Command Reference =s address stringwithoutspacesDbs address length rwrw Dbd breakpointnumberHelp commandname Eval expressionwithoutspaces+Quit returnvalueforshell Rest filenameStep until expressionwithoutspaces Ski IA-64 Simulator Reference Manual 1.0L Register Names IA-64 RegistersRegister 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 Variable Names Internal VariablesCopyright 2000 Hewlett-Packard Co Simulator Status and Error Messages All breakpoints deletedSimulator 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