C/C++ Expressions; Writing C/C++ Expressions; Immediate Values - Renesas Emulator Debugger M16C PC4701 User Manual

Emulator debugger v.1.03
Table of Contents

Advertisement

10.1 Writing C/C++ Expressions

You can use C/C++ expressions consisting of the tokens shown below for registering C watchpoints
and for specifying the values to be assigned to C watchpoints.
Token

Immediate values

Scope
Mathematical operators
Pointers
Reference
Sign inversion
Member reference using dot operator
Member reference using arrow
Pointers to Members
Parentheses
Arrays
Casting to basic types
Casting to typedef types
Variable names and function names
Character constants
Character string literals
10.1.1 Immediate Values
You can use hexadecimals, decimals, octals as immediate values. Values starting with 0x are
processed as hexadecimals, those with 0 as octals, and those without either prefix as decimals.
Floating-point numbers can also be used to assign values to variables.
Notes
You cannot register only immediate values as C watchpoints.
The immediate value is effective only when it is used in C/C++ language expressions that specify
C/C++ watchpoints or when it is used to specify the value to be assigned to those expressions.
When using floating-point numbers, operation cannot be performed on an expression like 1.0+2.0.

10. C/C++ Expressions

Example
10, 0x0a, 012, 1.12, 1.0E+3
::name, classname::member
+, -, *, /
*, **, ...
&
-
Object.Member
Pointer->Member, this->M mber
Ob ct.*var, Pointer->*var
(, )
Array[2], DArray[2] [3] , ...
(int), (char*), (unsigned long *), ...
(DWORD), (ENUM), ...
var, i, j, func, ...
'A', 'b', ...
"abcdef", "I am a boy.", ...
253
je
10 C/C++ Expressions
e

Advertisement

Table of Contents
loading

Table of Contents