Class Guardian can raise std::bad_function_call exception if wrong functions provided.
In this case, the caller should catch the exception (coverity issue number:
1836347).
Change-Id: Ia5ed46fb3d44ff40149a5dc719814b147b405972
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
m_core.SaveStacks(mem_fd, m_core_file, m_tpids, m_registers);
}
close(mem_fd);
+ } catch (std::bad_function_call &e) {
+ logger.log_error("DumpCore: %s", e.what());
+ result = false;
} catch (std::system_error &e) {
logger.log_error("DumpCore: %s", e.what());
result = false;