Integer | Character | Letter format: 'a' |
Signed | Signed integer format: -123 | |
Unsigned | Unsigned integer format: 4294967173 | |
Octal | Octal format: 0177 | |
Hex | Hex format: 0x7f | |
Float | Decimal | "f" format |
Scientific | "e" format | |
Hex | Hex format: 0x7f | |
Complex | Decimal | Real and imaginary parts of the number in "f" format. |
Scientific | Real and imaginary parts of the number in "e" format. | |
Hex | Displays the real and imaginary parts of the number in hex format. | |
Class, Struct, or Union | Flatten | Reveals the members, horizontally. |
More detail | Reveals the members, vertically. | |
Less detail | Hides the members. | |
Class | Show self |
Runs the object's xcdb() member function (if any). See "Self-displaying C++ objects" on page 135.
|
Array | More detail | Reveals array elements. |
Less detail | Hides array elements. | |
String | Displays an array of characters as a null-terminated string: "abc" | |
Select subrange | Selects a subrange of the array for display. A prompt asks for the subscripts of the elements you wish to see. See "Array formatting" on page 130. | |
Pointer | Less detail | Hides the pointed-to object. |
Hex | The pointer in hex format. | |
String | A pointer to character as a null-terminated string. | |
Array | At pointer to X as an array of X. | |
Select subrange | A selected subrange of the pointed-to array. A prompt asks for the elements you want to see. | |
Cast | Changes (casts) the base type of the pointed-to object. A list of struct, union, and typedef names prompts to select a new base type. Subsequent formatting of the pointed-to objects treats them as if they are of the type you select. | |
Downcast | Converts a C++ pointer to abstract base class into a pointer to most derived class by inspecting the pointed-to object's virtual function table pointer. | |
Less detail | Hides the pointed-to object, for example: | |
|
class X { ... }; // base class class Y : public X { ... }; // derived class f() { X x; g(&x); // pass a 'pointer-to-X' Y y; g(&y); // pass a 'pointer-to-Y' } g(X *p) { // at run time 'p' could be either // 'pointer-to-X' // or 'pointer-to-Y' // ... // click on 'p' and select 'Downcast' // to reveal the actual type } |