diff options
Diffstat (limited to 'gdb/dwarf2/index-common.h')
-rw-r--r-- | gdb/dwarf2/index-common.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/gdb/dwarf2/index-common.h b/gdb/dwarf2/index-common.h index 3390129..ae060d8 100644 --- a/gdb/dwarf2/index-common.h +++ b/gdb/dwarf2/index-common.h @@ -1,6 +1,6 @@ /* Things needed for both reading and writing DWARF indices. - Copyright (C) 1994-2024 Free Software Foundation, Inc. + Copyright (C) 1994-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -17,10 +17,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef DWARF_INDEX_COMMON_H -#define DWARF_INDEX_COMMON_H +#ifndef GDB_DWARF2_INDEX_COMMON_H +#define GDB_DWARF2_INDEX_COMMON_H -#include "extract-store-integer.h" #include "hashtab.h" /* The suffix for an index file. */ @@ -32,15 +31,6 @@ architecture-independent. */ typedef uint32_t offset_type; -/* Unpack a 32-bit little-endian value. */ - -static inline offset_type -gdb_index_unpack (const gdb_byte *value) -{ - return (offset_type) extract_unsigned_integer (value, sizeof (offset_type), - BFD_ENDIAN_LITTLE); -} - /* The hash function for strings in the mapped index. This is the same as SYMBOL_HASH_NEXT, but we keep a separate copy to maintain control over the implementation. This is necessary because the hash function is tied to the @@ -59,4 +49,4 @@ uint32_t dwarf5_djb_hash (const char *str_); uint32_t dwarf5_djb_hash (std::string_view str_); -#endif /* DWARF_INDEX_COMMON_H */ +#endif /* GDB_DWARF2_INDEX_COMMON_H */ |