diff options
author | Tom Tromey <tom@tromey.com> | 2018-08-28 16:14:52 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-10-03 15:19:06 -0600 |
commit | 780942fc2422d80a49b748e484890f11db31f49e (patch) | |
tree | f2204a52bac7da0d2eda824cc0ea2d5088ab2f4d /gdb/c-lang.h | |
parent | 10657c047e4e0257440c80fda5f4e23a3452616c (diff) | |
download | binutils-780942fc2422d80a49b748e484890f11db31f49e.zip binutils-780942fc2422d80a49b748e484890f11db31f49e.tar.gz binutils-780942fc2422d80a49b748e484890f11db31f49e.tar.bz2 |
Change dwarf2_frame_state_reg_info::reg to be std::vector
This changes dwarf2_frame_state_reg_info::reg to be a std::vector.
This avoids passing NULL to memcpy in the copy constructor when the
original object does not have any registers.
gdb/ChangeLog
2018-10-03 Tom Tromey <tom@tromey.com>
* dwarf2-frame.h (dwarf2_frame_state_reg_info)
<~dwarf2_frame_state_reg_info>: Update.
<dwarf2_frame_state_reg_info>: Update.
<alloc_regs>: Add assertion. Update.
<reg>: Now a std::vector.
<num_regs>: Remove.
<swap>: Update.
* dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
(execute_cfa_program_test, dwarf2_frame_cache): Update.
Diffstat (limited to 'gdb/c-lang.h')
0 files changed, 0 insertions, 0 deletions