aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-09-14 19:08:30 +0000
committerTom Tromey <tromey@redhat.com>2010-09-14 19:08:30 +0000
commit515ed532307e751b26e34347ee7258f164eb053f (patch)
tree2f6764bb18b314dcceabbd40073a729536d47eaa /gdb/value.c
parent7ef07ba077cec6568e767adefb995ffbc89970c0 (diff)
downloadgdb-515ed532307e751b26e34347ee7258f164eb053f.zip
gdb-515ed532307e751b26e34347ee7258f164eb053f.tar.gz
gdb-515ed532307e751b26e34347ee7258f164eb053f.tar.bz2
gdb
PR exp/11803: * value.c (value_static_field): Use value_of_variable. gdb/testsuite PR exp/11803: * gdb.threads/tls.exp: Use C++. (check_thread_local): Use K::another_thread_local. * gdb.threads/tls.c (class K): New. (another_thread_local): Now a member of K. (spin): Update. No longer K&R C.
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/gdb/value.c b/gdb/value.c
index e5754d0..c189930 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -1903,17 +1903,7 @@ value_static_field (struct type *type, int fieldno)
}
}
else
- {
- /* SYM should never have a SYMBOL_CLASS which will require
- read_var_value to use the FRAME parameter. */
- if (symbol_read_needs_frame (sym))
- warning (_("static field's value depends on the current "
- "frame - bad debug info?"));
- retval = read_var_value (sym, NULL);
- }
- if (retval && VALUE_LVAL (retval) == lval_memory)
- SET_FIELD_PHYSADDR (TYPE_FIELD (type, fieldno),
- value_address (retval));
+ retval = value_of_variable (sym, NULL);
break;
}
default: