diff options
author | Tom de Vries <tdevries@suse.de> | 2021-11-18 19:22:51 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-11-18 19:22:51 +0100 |
commit | 8ba97c19049103ec2232531abdca4268089ea64d (patch) | |
tree | 9999f04baa9da94736da3a967bb17163b7d2f4ec /zlib | |
parent | 578c64a45a0e47fd0af53c77339ec0c26ef4874a (diff) | |
download | gdb-8ba97c19049103ec2232531abdca4268089ea64d.zip gdb-8ba97c19049103ec2232531abdca4268089ea64d.tar.gz gdb-8ba97c19049103ec2232531abdca4268089ea64d.tar.bz2 |
[gdb/doc] Fix negative repeat count examining memory example
The documentation for the examining memory command x contains an example:
...
You can also specify a negative repeat count to examine memory backward from
the given address. For example, 'x/-3uh 0x54320' prints three halfwords (h)
at 0x54314, 0x54328, and 0x5431c.
...
The 0x54328 looks like a typo, which was intended to be 0x54318.
But the series uses a 4-byte distance, while the halfword size used in the
command means a 2-byte distance, so the series should be:
...
0x5431a, 0x5431c, and 0x5431e.
...
Fix this by updating the addresses in the example accordingly.
Reported here ( https://sourceware.org/pipermail/gdb/2021-November/049784.html
).
Diffstat (limited to 'zlib')
0 files changed, 0 insertions, 0 deletions