How does GDB view the memory content of a specified address?

Source: Internet
Author: User
Format: X/NFU <ADDR>

Description
X is the abbreviation of examine.

N indicates the number of memory units to be displayed.

F indicates the display mode. The following values are recommended:
X displays variables in hexadecimal format.
D. Display variables in decimal format.
U displays unsigned integers in decimal format.
O display variables in octal format.
T display variables in binary format.
A displays variables in hexadecimal format.
I command address format
C. Display variables in character format.
F. Display variables in floating point format.

The u table shows the length of an address unit.
B Indicates a single byte,
H indicates double bytes,
W indicates four bytes,
G indicates an octal node.

Format letters are O (octal), x (HEX), D (decimal), u (unsigned decimal ),
T (Binary), F (float), A (address), I (Instruction), C (char) and S (string ).
Size letters are B (byte), H (halfword), w (Word), g (giant, 8 bytes)

Example
X/3uh Buf
Indicates reading content from the memory address Buf,
H indicates that the Unit is double bytes,
3 indicates three units,
Utable display in decimal format

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.