aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-01-17 04:29:59 -0700
committerTom Tromey <tromey@adacore.com>2024-01-22 06:59:47 -0700
commit8f42049a8230baf871ccb66b4e607bd2ebcd99ab (patch)
tree303ad748a2d7e37aab8305f29ff3a2e4c2343065
parentcbbcd7fd1075b7fb158586507cce3be19051b26f (diff)
downloadbinutils-8f42049a8230baf871ccb66b4e607bd2ebcd99ab.zip
binutils-8f42049a8230baf871ccb66b4e607bd2ebcd99ab.tar.gz
binutils-8f42049a8230baf871ccb66b4e607bd2ebcd99ab.tar.bz2
Fix handling of DW_OP_GNU_push_tls_address
In one spot, DW_OP_GNU_push_tls_address is handled differently from DW_OP_form_tls_address. However, I think they should always be treated identically. Approved-by: Kevin Buettner <kevinb@redhat.com>
-rw-r--r--gdb/dwarf2/loc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/loc.c b/gdb/dwarf2/loc.c
index 8a350b4..1be5246 100644
--- a/gdb/dwarf2/loc.c
+++ b/gdb/dwarf2/loc.c
@@ -1954,12 +1954,12 @@ dwarf2_get_symbol_read_needs (gdb::array_view<const gdb_byte> expr,
case DW_OP_lt:
case DW_OP_gt:
case DW_OP_ne:
- case DW_OP_GNU_push_tls_address:
case DW_OP_nop:
case DW_OP_GNU_uninit:
case DW_OP_push_object_address:
break;
+ case DW_OP_GNU_push_tls_address:
case DW_OP_form_tls_address:
if (symbol_needs <= SYMBOL_NEEDS_REGISTERS)
symbol_needs = SYMBOL_NEEDS_REGISTERS;