tfile.exp: Test printing a non-const global that is not covered by the trace frame...
authorPedro Alves <palves@redhat.com>
Wed, 20 Mar 2013 11:28:55 +0000 (11:28 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 20 Mar 2013 11:28:55 +0000 (11:28 +0000)
commit3f1175a995f09c90a2e026afae3602c33e1e3e19
tree471394e7b6f936d8366b274d1713fa0318596ada
parent35a7120b8ccbd9e58daf8a9d108923a8cf4fdc98
tfile.exp: Test printing a non-const global that is not covered by the trace frame; test disassembling.

Make sure we don't fallback to printing the initial value of a
non-const variable in the executable.

Also make sure we can do 'disassemble', as another test that GDB is
able to read read-only parts from the executable (the existing test of
printing constglob also covers that case).

gdb/testsuite/
2013-03-20  Pedro Alves  <palves@redhat.com>
    Yao Qi  <yao@codesourcery.com>

* gdb.trace/tfile.c: Add comments.
(nonconstglob): New global.
* gdb.trace/tfile.exp: Add comments.  Test printing a non-const
global that is not covered by the trace frame.  Test
disassembling.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/tfile.c
gdb/testsuite/gdb.trace/tfile.exp