diff options
author | Tom Tromey <tromey@redhat.com> | 2012-02-15 19:13:14 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-02-15 19:13:14 +0000 |
commit | 3af2590d3ee379d7e7ad4a1019887d3983721227 (patch) | |
tree | 5e9684584ba0662f16f282dac439204379cbd5e3 /gdb/testsuite | |
parent | 29988831db7f6823f7515219492e50e86c196e84 (diff) | |
download | binutils-3af2590d3ee379d7e7ad4a1019887d3983721227.zip binutils-3af2590d3ee379d7e7ad4a1019887d3983721227.tar.gz binutils-3af2590d3ee379d7e7ad4a1019887d3983721227.tar.bz2 |
PR gdb/12659:
* infcmd.c (registers_info): Print just the current register's
name.
gdb/testsuite
* gdb.base/pc-fp.exp: Add "info register" tests.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/pc-fp.exp | 13 |
2 files changed, 10 insertions, 7 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ad9f678..6e6b55d 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2012-02-15 Tom Tromey <tromey@redhat.com> + * gdb.base/pc-fp.exp: Add "info register" tests. + +2012-02-15 Tom Tromey <tromey@redhat.com> + * gdb.base/regs.exp: Remove. 2012-02-15 Pedro Alves <palves@redhat.com> diff --git a/gdb/testsuite/gdb.base/pc-fp.exp b/gdb/testsuite/gdb.base/pc-fp.exp index 9d74eef..f650000 100644 --- a/gdb/testsuite/gdb.base/pc-fp.exp +++ b/gdb/testsuite/gdb.base/pc-fp.exp @@ -60,11 +60,10 @@ set valueof_fp [get_hexadecimal_valueof "\$fp" "0"] gdb_test "display/i \$pc" "1: x/i +\\\$pc( +|\r\n)=> ${valueof_pc}.*" gdb_test "display/w \$fp" "2: x/xw +\\\$fp +${valueof_fp}.*" -# FIXME: cagney/2002-09-04: Should also check that ``info registers -# $pc'' et.al.'' come back with the same value as the above displays -# and a print --- assuming that is that people agree to such behavour. -# Need to re-write default_print_registers_info() for it to work (and -# such a rewrite is on the reggroups branch). +gdb_test "info register \$pc" "${valueof_pc}.*" +gdb_test "info register \$fp" "${valueof_fp}.*" -# gdb_test "info registers \$pc" "${valueof_pc}" -# gdb_test "info registers \$fp" "${valueof_fp}" +# Regression test for +# http://sourceware.org/bugzilla/show_bug.cgi?id=12659 +gdb_test "info register pc fp" \ + "pc: ${valueof_pc}\[\r\n\]+fp: ${valueof_fp}\[\r\n\]+" |