diff options
author | Tom Tromey <tom@tromey.com> | 2023-12-03 15:05:35 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-01-18 08:20:17 -0700 |
commit | 2d34b0ea1aa113878cd0eb6152e7c261c2f98bce (patch) | |
tree | b695e443cd4edd3ce6660cc9c0f78b829aa7f8fd /gdb/dwarf2/read-debug-names.c | |
parent | b371f07c47c73d9597f74f87bc6e22ba04db1963 (diff) | |
download | gdb-2d34b0ea1aa113878cd0eb6152e7c261c2f98bce.zip gdb-2d34b0ea1aa113878cd0eb6152e7c261c2f98bce.tar.gz gdb-2d34b0ea1aa113878cd0eb6152e7c261c2f98bce.tar.bz2 |
Export dwarf5_augmentation
I don't know why gdb had the .debug_names augmentation string in two
separate places; this patch exports it in one spot, to be used in
another.
Diffstat (limited to 'gdb/dwarf2/read-debug-names.c')
-rw-r--r-- | gdb/dwarf2/read-debug-names.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/dwarf2/read-debug-names.c b/gdb/dwarf2/read-debug-names.c index 52caff7..e2563e8 100644 --- a/gdb/dwarf2/read-debug-names.c +++ b/gdb/dwarf2/read-debug-names.c @@ -404,8 +404,7 @@ static_assert (sizeof (old_gdb_augmentation) % 4 == 0); /* DWARF-5 augmentation string for GDB's DW_IDX_GNU_* extension. This must have a size that is a multiple of 4. */ -static const gdb_byte dwarf5_augmentation[] - = { 'G', 'D', 'B', '2', 0, 0, 0, 0 }; +const gdb_byte dwarf5_augmentation[8] = { 'G', 'D', 'B', '2', 0, 0, 0, 0 }; static_assert (sizeof (dwarf5_augmentation) % 4 == 0); /* A helper function that reads the .debug_names section in SECTION |