]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Make type_stack popping a bit safer
authorTom Tromey <tom@tromey.com>
Sat, 23 Aug 2025 17:46:48 +0000 (11:46 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 10 Sep 2025 00:24:32 +0000 (18:24 -0600)
commitc152f17e36f76f71e38fdf7e81594ce00ef654ca
tree8af03bbe09cb17c238909afe5971766ad5854778
parent8ea36fc9f314e9de921044883457085b57c16045
Make type_stack popping a bit safer

This changes type_stack so that an element that has an argument can't
be popped in isolation.  The idea is to make type stack use a little
safer, making it so that the stack can't end up in an invalid state.

This also fixes up a few related comments.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/type-stack.h