Don't raise an error for optimized out sub-fields.
authorAndrew Burgess <aburgess@broadcom.com>
Tue, 30 Jul 2013 15:36:18 +0000 (15:36 +0000)
committerAndrew Burgess <aburgess@broadcom.com>
Tue, 30 Jul 2013 15:36:18 +0000 (15:36 +0000)
commit11b4b7cc1fdcc85aeeb79d7bb1cac64542404cd5
tree42d25c4ed0f79de5b0a208133d6aee8903601ce5
parentb0c54aa509c4f909648c59837a4877ec27b64135
Don't raise an error for optimized out sub-fields.

  http://sourceware.org/ml/gdb-patches/2013-07/msg00317.html

gdb/ChangeLog

        * value.c (value_fetch_lazy): Mark optimized out values as such
        rather than raising an error.

gdb/testsuite/ChangeLog

        * gdb.dwarf2/pieces-optimized-out.exp: Expect "<optimized out>"
        when printing an optimized out value.  Expect an error when using
        an optimized out value in an expression.
gdb/ChangeLog
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/pieces-optimized-out.exp
gdb/value.c