diff options
author | Tom Tromey <tom@tromey.com> | 2023-02-17 19:55:50 -0500 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-21 12:36:15 -0700 |
commit | 3592bebbbf6b27732effc49bd6a73b0bd5af4df4 (patch) | |
tree | 525112bd0dfe65cad67cebc728186110e1e84f41 /binutils/debug.c | |
parent | 4c9066e322f46faf9d753be6ff3e6a09ae668f86 (diff) | |
download | gdb-3592bebbbf6b27732effc49bd6a73b0bd5af4df4.zip gdb-3592bebbbf6b27732effc49bd6a73b0bd5af4df4.tar.gz gdb-3592bebbbf6b27732effc49bd6a73b0bd5af4df4.tar.bz2 |
Issue error on erroneous expression
A while back I discovered that this does not issue an error:
(gdb) p $x = (void * ) 57
$3 = (void *) 0x39
(gdb) p $x + 7 = 3
$6 = (void *) 0x3
This patch fixes the bug.
Regression tested on x86-64 Fedora 36.
Reviewed-By: Bruno Larsen <blarsen@redhat.com>
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=19312
Diffstat (limited to 'binutils/debug.c')
0 files changed, 0 insertions, 0 deletions