binutils-gdb/gdb/compile
Tom Tromey 9c0fb73485 Add dynamic_prop::is_constant
I noticed many spots checking whether a dynamic property's kind is
PROP_CONST.  Some spots, I think, are doing a slightly incorrect check
-- checking for != PROP_UNDEFINED where == PROP_CONST is actually
required, the key thing being that const_val may only be called for
PROP_CONST properties.

This patch adds dynamic::is_constant and then updates these checks to
use it.

Regression tested on x86-64 Fedora 36.
2023-05-12 12:30:28 -06:00
..
compile-c-support.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
compile-c-symbols.c Replace field_is_static with a method 2023-05-01 09:20:37 -06:00
compile-c-types.c Add dynamic_prop::is_constant 2023-05-12 12:30:28 -06:00
compile-c.h gdb: move compile_instance to compile/compile.h 2023-01-20 14:48:56 -05:00
compile-cplus-symbols.c Change symbol::line to unsigned int 2023-03-27 08:37:14 -06:00
compile-cplus-types.c Add dynamic_prop::is_constant 2023-05-12 12:30:28 -06:00
compile-cplus.h gdb: move compile_instance to compile/compile.h 2023-01-20 14:48:56 -05:00
compile-internal.h gdb: move compile_instance to compile/compile.h 2023-01-20 14:48:56 -05:00
compile-loc2c.c Convert block_linkage_function to method 2023-02-19 12:51:05 -07:00
compile-object-load.c Turn many optimized-out value functions into methods 2023-02-13 15:22:17 -07:00
compile-object-load.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
compile-object-run.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
compile-object-run.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
compile.c gdb: move struct ui and related things to ui.{c,h} 2023-05-01 15:40:54 -04:00
compile.h gdb: move compile_instance to compile/compile.h 2023-01-20 14:48:56 -05:00
gcc-c-plugin.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
gcc-cp-plugin.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00