diff options
author | Yao Qi <yao.qi@linaro.org> | 2016-11-22 08:53:34 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2016-11-22 08:53:34 +0000 |
commit | c5acd8159633cfde315b01431099e1ce5b23dcf7 (patch) | |
tree | 7f29c719de9a71d4ab0d203bf3bf36cbfdc9de78 | |
parent | 3063babf7c559f04203ad7fdfcd8fc12a302ee7a (diff) | |
download | gdb-c5acd8159633cfde315b01431099e1ce5b23dcf7.zip gdb-c5acd8159633cfde315b01431099e1ce5b23dcf7.tar.gz gdb-c5acd8159633cfde315b01431099e1ce5b23dcf7.tar.bz2 |
Use VALUE_NEXT_FRAME_ID in value_from_component
We renamed VALUE_FRAME_ID to VALUE_NEXT_FRAME_ID recently,
https://sourceware.org/ml/gdb-patches/2016-11/msg00018.html
and we should use VALUE_NEXT_FRAME_ID in value_from_component
too.
gdb:
2016-11-22 Yao Qi <yao.qi@linaro.org>
* value.c (value_from_component): Use VALUE_NEXT_FRAME_ID
instead of VALUE_FROM_ID.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/value.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dfaddd1..5b88917 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2016-11-22 Yao Qi <yao.qi@linaro.org> + + * value.c (value_from_component): Use VALUE_NEXT_FRAME_ID + instead of VALUE_FROM_ID. + 2016-11-21 Simon Marchi <simon.marchi@ericsson.com> * Makefile.in (%o: $(srcdir)/mi/%.c): Add missing POSTCOMPILE diff --git a/gdb/value.c b/gdb/value.c index 200d61d..8d33501 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -3815,7 +3815,7 @@ value_from_component (struct value *whole, struct type *type, LONGEST offset) v->offset = value_offset (whole) + offset + value_embedded_offset (whole); set_value_component_location (v, whole); VALUE_REGNUM (v) = VALUE_REGNUM (whole); - VALUE_FRAME_ID (v) = VALUE_FRAME_ID (whole); + VALUE_NEXT_FRAME_ID (v) = VALUE_NEXT_FRAME_ID (whole); return v; } |