]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Introduce "scripting" domains
authorTom Tromey <tom@tromey.com>
Sat, 9 Sep 2023 23:41:30 +0000 (17:41 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 28 Jan 2024 17:58:16 +0000 (10:58 -0700)
commit88ff5355adfee1c015ce98f0d79475f53678a7bb
tree679a3870ede3ca135ddfdd8c5b4ad36941b1a21e
parent8370bcc7b7b966ea86a7c87ba1549e607da7ac25
Introduce "scripting" domains

The Python and Guile code exposed the internal domain constants both
as attributes of symbols and as values to pass to lookup functions.

Now, perfect backward compatibility here can't be achieved: some
symbols are going to have domain changes by the end of this series.
However, it seemed to me that we can preserve lookups using the basic
domain values.

This patch implements this by exporting the "or"-able search constants
with an extra bit set.  Then it introduces some functions to convert
such constants to domain_search_flags.  This will be used by the
Python and Guile code, so that both old- and new-style lookups will
work properly; and while preserving the idea that the domain constants
can be compared to a symbol's domain.
gdb/symtab.c
gdb/symtab.h