* frame.c (frame_register_unwind): Do not access contents

of "optimized out" unwound register value.
This commit is contained in:
Ulrich Weigand 2010-06-14 12:10:56 +00:00
parent 25b524e836
commit 21a176fb79
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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)));