the following patch was just integrated into master: commit 9907c6edeb2c30a9c243219803141f6c0fa91ae6 Author: Ronald G. Minnich rminnich@gmail.com Date: Sun Mar 3 20:52:05 2013 -0800
libpayload: Catch exceptions and print out an error message.
Give some indication what happened instead of just crashing. As part of setup, cause an exception and make sure that we get the right one, and that we recover correctly. Hence we have some assurance that if they really happen we can handle them.
Built and booted into test payload on Snow. Saw the built in test function worked correctly. Artificially added code which got an exception and saw that the error information prints correctly.
Change-Id: I2e0d022f090ee422fb988074fbb197afa2485caa Signed-off-by: Gabe Black gabeblack@google.com Signed-off-by: Ronald G. Minnich rminnich@gmail.com Reviewed-on: http://review.coreboot.org/2569 Reviewed-by: Stefan Reinauer stefan.reinauer@coreboot.org Tested-by: build bot (Jenkins)
Build-Tested: build bot (Jenkins) at Mon Mar 4 22:30:22 2013, giving +1 Reviewed-By: Stefan Reinauer stefan.reinauer@coreboot.org at Mon Mar 4 22:21:01 2013, giving +2 Reviewed-By: Ronald G. Minnich rminnich@gmail.com at Mon Mar 4 22:22:49 2013, giving +2 See http://review.coreboot.org/2569 for details.
-gerrit