diff options
| author | Piotr Rudnicki <piotr.rudnicki@intel.com> | 2025-04-09 15:17:31 +0200 |
|---|---|---|
| committer | Piotr Rudnicki <piotr.rudnicki@intel.com> | 2025-04-14 11:42:54 +0200 |
| commit | e25c84752c9df2bf3a999b53afb58e5bebaf3b7c (patch) | |
| tree | 6182c394db62656f90e24b7c915b85163500ab85 /gdb/testsuite/gdb.base/gstack.c | |
| parent | 29b68e449be8816505487ef7cd5abde72ed21ca4 (diff) | |
| download | binutils-e25c84752c9df2bf3a999b53afb58e5bebaf3b7c.zip binutils-e25c84752c9df2bf3a999b53afb58e5bebaf3b7c.tar.gz binutils-e25c84752c9df2bf3a999b53afb58e5bebaf3b7c.tar.bz2 | |
gdb: add check for empty array
With the command before the change, gdb crashes with message:
(gdb) p 1 == { }
Fatal signal: Segmentation fault
After the fix in this commit, gdb shows following message:
(gdb) p 1 == { }
size of the array element must not be zero
Add new test cases to file gdb.base/printcmds.exp to test this change
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/testsuite/gdb.base/gstack.c')
0 files changed, 0 insertions, 0 deletions
