aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@broadcom.com>2013-07-04 11:11:25 +0000
committerAndrew Burgess <aburgess@broadcom.com>2013-07-04 11:11:25 +0000
commit691a26f5ddd5f061ae8cd1be7c68212041da6ac2 (patch)
tree95b547fc6ca271d69f2947f9c7f0022aaa7a6225 /gdb/stack.c
parenta58e2656df4e2a614bc276159ef9b20368cdb8ca (diff)
downloadgdb-691a26f5ddd5f061ae8cd1be7c68212041da6ac2.zip
gdb-691a26f5ddd5f061ae8cd1be7c68212041da6ac2.tar.gz
gdb-691a26f5ddd5f061ae8cd1be7c68212041da6ac2.tar.bz2
http://sourceware.org/ml/gdb-patches/2013-07/msg00059.html
gdb/ChangeLog * stack.c (read_frame_arg): No longer fetch lazy values. * value.c (value_optimized_out): If the value is not already marked optimized out, and is lazy then fetch it. (value_primitive_field): Move optimized out check to later in the function, after we have loaded any lazy values. (value_fetch_lazy): Use optimized out flag directly rather than calling optimized_out method. gdb/testsuite/ChangeLog * gdb.dwarf2/dw2-reg-undefined.exp: New file. * gdb.dwarf2/dw2-reg-undefined.c: Likewise. * gdb.dwarf2/dw2-reg-undefined.S: Likewise.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 08431bb..2462931 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -359,10 +359,6 @@ read_frame_arg (struct symbol *sym, struct frame_info *frame,
{
struct type *type = value_type (val);
- if (!value_optimized_out (val) && value_lazy (val))
- value_fetch_lazy (val);
- if (!value_optimized_out (val) && value_lazy (entryval))
- value_fetch_lazy (entryval);
if (!value_optimized_out (val)
&& value_available_contents_eq (val, 0, entryval, 0,
TYPE_LENGTH (type)))