Jump to content

KernelDebugRef - Operator Precedence: Difference between revisions

From EDM2
Created page with "{{IBM-Reprint}} {{KernelDebugRef}} The following operators evaluate the relationship of two arguments: * '''( )''' Parentheses, used to change order of evaluation * ''':''' Address binder, binds segment/selector and offsets * '''*''' Multiplication * '''/''' Division * '''MOD''' Modulo (remainder) * '''+''' Addition * '''-''' Subtraction * '''>''' Greater than relational operator * '''<''' Less than relational operator * '''>=''' Greater than or equal to relational ope..."
 
No edit summary
Line 2: Line 2:
{{KernelDebugRef}}
{{KernelDebugRef}}


The following operators evaluate the relationship of two arguments:
The precedence of the operators has been changed to be more like '''C'''.


* '''( )''' Parentheses, used to change order of evaluation
If two or more operators have the same precedence, the expression is evaluated from left to right. '''C''' evaluates unary operators from right to left, which is more intuitive and easier to use. Expressions such as '''poi #60:133''' must be written as '''poi (#60:133)''' because of the way the debugger handles unary operators.
* ''':''' Address binder, binds segment/selector and offsets
 
* '''*''' Multiplication
1. '''( )'''
* '''/''' Division
2. '''| :'''
* '''MOD''' Modulo (remainder)
3. '''. # % %% - ! NOT SEG OFF BY WO DW POI PORT WPORT''' (all unary operators)
* '''+''' Addition
4. '''* / MOD'''
* '''-''' Subtraction
5. '''+ -'''
* '''>''' Greater than relational operator
6. '''> < >= <='''
* '''<''' Less than relational operator
7. '''== !='''
* '''>=''' Greater than or equal to relational operator
8. '''AND XOR OR'''
* '''<=''' Less than or equal to relational operator
9. '''&& ||'''
* '''==''' Equal to operator
* '''!=''' Not equal to relational operator
* '''AND''' Bitwise AND
* '''XOR''' Bitwise exclusive OR
* '''OR''' Bitwise inclusive OR
* '''&&''' Logical AND
* '''||''' Logical OR

Revision as of 23:09, 3 May 2025

Reprint Courtesy of International Business Machines Corporation, © International Business Machines Corporation

Kernel Debugger Reference
  1. Introduction
  2. Installing the Kernel Debugger
  3. The T Terminal Emulator
  4. Entering the Debugger
  5. Expressions
  6. Operator Precedence
  7. Binary Operators
  8. Unary Operators
  9. Numbers
  10. Strings
  11. Symbol Files
  12. Using Kernel Debugger Commands
  13. The Breakpoint (BP) Command
  14. Breakpoint Commands
  15. External Commands
  16. Using Default Commands
  17. External Debugger Commands
  18. Setting Useful Breakpoints
  19. Debugging Kernel Device Drivers
  20. Debugging VM Start Sessions
  21. Debugging a Remote System
  22. Notices

The precedence of the operators has been changed to be more like C.

If two or more operators have the same precedence, the expression is evaluated from left to right. C evaluates unary operators from right to left, which is more intuitive and easier to use. Expressions such as poi #60:133 must be written as poi (#60:133) because of the way the debugger handles unary operators.

1. ( ) 2. | : 3. . # % %% - ! NOT SEG OFF BY WO DW POI PORT WPORT (all unary operators) 4. * / MOD 5. + - 6. > < >= <= 7. == != 8. AND XOR OR 9. && ||