diff options
author | Yao Qi <yao.qi@linaro.org> | 2017-08-11 09:30:02 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2017-08-11 09:30:02 +0100 |
commit | b348037fd8c0de5c39cc43970697c51048a8ec9c (patch) | |
tree | e8dc533380fb70ea14033f9d3c4547fecd8d3142 /gdb/dwarf2-frame.h | |
parent | 5af3691c758717e295ba4d03b800f3462a404056 (diff) | |
download | gdb-b348037fd8c0de5c39cc43970697c51048a8ec9c.zip gdb-b348037fd8c0de5c39cc43970697c51048a8ec9c.tar.gz gdb-b348037fd8c0de5c39cc43970697c51048a8ec9c.tar.bz2 |
Move dwarf2_frame_state_reg.exp_len to union .loc
dwarf2_frame_state_reg.exp_len is only used together with .loc.exp, so
it makes more sense to exp_len to the union as well.
gdb:
2017-08-11 Yao Qi <yao.qi@linaro.org>
* dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
<loc.exp>: New field.
* dwarf2-frame.c (execute_cfa_program): Update.
(dwarf2_frame_prev_register): Update.
Diffstat (limited to 'gdb/dwarf2-frame.h')
-rw-r--r-- | gdb/dwarf2-frame.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/dwarf2-frame.h b/gdb/dwarf2-frame.h index 9e8668e..69a7a20 100644 --- a/gdb/dwarf2-frame.h +++ b/gdb/dwarf2-frame.h @@ -74,11 +74,14 @@ struct dwarf2_frame_state_reg union { LONGEST offset; ULONGEST reg; - const gdb_byte *exp; + struct + { + const gdb_byte *start; + ULONGEST len; + } exp; struct value *(*fn) (struct frame_info *this_frame, void **this_cache, int regnum); } loc; - ULONGEST exp_len; enum dwarf2_frame_reg_rule how; }; |