gdb/
authorPedro Alves <palves@redhat.com>
Fri, 28 Jan 2011 16:18:55 +0000 (16:18 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 28 Jan 2011 16:18:55 +0000 (16:18 +0000)
commitffd5ec2486b4786e903d72aca3cc42aade30b15f
tree356ac10e3f74d39f759adf0f8778a39820a6046a
parente8c9e0a18f11d0247f43aecf6771494ee033177a
gdb/
* tracepoint.c (tfile_xfer_partial): If there's no traceframe
selected, don't try iterating over the traceframe's blocks.
(tfile_has_stack): If there's no traceframe selected, then there's
no stack.
(tfile_has_registers): If there's no traceframe selected, then
there's no registers.

gdb/testsuite/
* gdb.trace/tfile.exp: Test that with no traceframe selected,
there's no stack or registers.
gdb/ChangeLog
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/tfile.exp
gdb/tracepoint.c