libpayload: x86: Add support for catching processor exceptions.

This functionality is already available for ARM, so lets add it to x86 as
well. We'll want to be able to hook exceptions when running as a remote GDB

Change-Id: I42f640b08eb9eb86a1bcab3c327f7780191a2eb5
Signed-off-by: Gabe Black <>
Reviewed-by: Aaron Durbin <>
Tested-by: Gabe Black <>
Commit-Queue: Gabe Black <>
(cherry picked from commit 5b8cf0c9f70a7e14766a2b095e6739a8d6321a34)
Signed-off-by: Isaac Christensen <>
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <>
6 files changed