mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 02:53:48 +08:00
* frame.c (frame_register_unwind): Do not access contents
of "optimized out" unwound register value.
This commit is contained in:
parent
25b524e836
commit
21a176fb79
@ -1,3 +1,8 @@
|
||||
2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* frame.c (frame_register_unwind): Do not access contents
|
||||
of "optimized out" unwound register value.
|
||||
|
||||
2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* ada-lang.h (ada_print_type): Make varstring const.
|
||||
|
@ -771,7 +771,7 @@ frame_register_unwind (struct frame_info *frame, int regnum,
|
||||
*addrp = value_address (value);
|
||||
*realnump = VALUE_REGNUM (value);
|
||||
|
||||
if (bufferp)
|
||||
if (bufferp && !*optimizedp)
|
||||
memcpy (bufferp, value_contents_all (value),
|
||||
TYPE_LENGTH (value_type (value)));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user