binutils-gdb/gdb/python/lib/gdb
Tom Tromey 83b645b833 avoid python exception in FrameDecorator.py
This fixes a bug in FrameDecorator.py.

FrameVars seems to assume that Frame.block can return None if there is
no block.  However, it actually throws an exception.

I saw this bug while developing a frame filter, but unfortunately I
don't know how to reproduce it.  It seems to me that the SAL tests in
_is_limited_frame should exclude the bad cases; and in my attempts to
write a test they do.

Nevertheless I think the fix is reasonably obvious and ought to go in.

2014-01-23  Tom Tromey  <tromey@redhat.com>

	PR python/16485:
	* python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
	Handle exception from frame.block.
	(FrameVars.fetch_frame_locals): Likewise.
2014-01-23 08:03:52 -07:00
..
command Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
function Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
__init__.py Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
FrameDecorator.py avoid python exception in FrameDecorator.py 2014-01-23 08:03:52 -07:00
FrameIterator.py Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
frames.py Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
printing.py Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
prompt.py Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
types.py Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00