Fix cached_frame allocation in py-unwind
gdb/ * python/py-unwind.c (pyuw_sniffer): Allocate space for registers.
This commit is contained in:
parent
d7dcbefc72
commit
16892a0323
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2017-06-22 Alan Hayward <alan.hayward@arm.com>
|
||||
|
||||
* python/py-unwind.c (pyuw_sniffer): Allocate space for
|
||||
registers.
|
||||
|
||||
2017-06-22 Alan Hayward <alan.hayward@arm.com>
|
||||
|
||||
* record-full.c (record_full_exec_insn): Use byte_vector.
|
||||
|
|
|
@ -557,7 +557,10 @@ pyuw_sniffer (const struct frame_unwind *self, struct frame_info *this_frame,
|
|||
saved_reg *reg;
|
||||
int i;
|
||||
|
||||
cached_frame = XNEW (cached_frame_info);
|
||||
cached_frame
|
||||
= ((cached_frame_info *)
|
||||
xmalloc (sizeof (*cached_frame)
|
||||
+ reg_count * sizeof (cached_frame->reg[0])));
|
||||
cached_frame->gdbarch = gdbarch;
|
||||
cached_frame->frame_id = unwind_info->frame_id;
|
||||
cached_frame->reg_count = reg_count;
|
||||
|
|
Loading…
Add table
Reference in a new issue