Print <unavailable> for unavailable registers in info register output.
authorAndrew Burgess <aburgess@broadcom.com>
Tue, 29 Oct 2013 13:24:11 +0000 (13:24 +0000)
committerAndrew Burgess <aburgess@broadcom.com>
Tue, 29 Oct 2013 13:26:49 +0000 (13:26 +0000)
commitf69d9aef9b66d371f2abab8ef2178043362bf350
treed1f0298101702cb7a04aa76f914ce5db28a4816f
parent681f229a9fbf72ce7882bf81122f1f18bce96c0e
Print <unavailable> for unavailable registers in info register output.

  https://sourceware.org/ml/gdb-patches/2013-08/msg00171.html

gdb/ChangeLog

* infcmd.c (default_print_one_register_info): Use val_print to
print all values even optimized out or unavailable ones.  Don't
try to print a raw form of optimized out or unavailable values.

gdb/testsuite/ChangeLog

* gdb.trace/unavailable.exp (gdb_unavailable_registers_test):
Expect <unavailable> pattern.
gdb/ChangeLog
gdb/infcmd.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/unavailable.exp