| commit | 3592bebbbf6b27732effc49bd6a73b0bd5af4df4 | [log] [tgz] |
|---|---|---|
| author | Tom Tromey <tom@tromey.com> | Fri Feb 17 19:55:50 2023 -0500 |
| committer | Tom Tromey <tom@tromey.com> | Tue Feb 21 12:36:15 2023 -0700 |
| tree | 525112bd0dfe65cad67cebc728186110e1e84f41 | |
| parent | 4c9066e322f46faf9d753be6ff3e6a09ae668f86 [diff] |
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