]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Make type_stack pushing a bit safer
authorTom Tromey <tom@tromey.com>
Sat, 23 Aug 2025 17:39:35 +0000 (11:39 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 10 Sep 2025 00:24:32 +0000 (18:24 -0600)
commit8ea36fc9f314e9de921044883457085b57c16045
tree2741275ebd3e20c11b528b624fc4bf136051894e
parent1faabbe632569058ff4dbc3939a493ffc88de47f
Make type_stack pushing a bit safer

This changes type_stack to make pushing elements a bit safer: if an
element requires an argument, these are now always pushed at the same
time, rather than separately.

This patch also adds a few comments to help document a bit better.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/c-exp.y
gdb/d-exp.y
gdb/f-exp.y
gdb/type-stack.h