Wrap main functions to handle uncaught exceptions
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 8 Jun 2023 18:20:09 +0000 (14:20 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 8 Jun 2023 18:42:18 +0000 (14:42 -0400)
commitd5ed3e6f3a8b52d7f2a3e2277873e0f1914ba515
tree41369589e9ac6eae7cb893c89003cbca2d47c580
parent58561706ca99e043a4687a776dc781bdf7e78e07
Wrap main functions to handle uncaught exceptions

Coverity reports multiple instances where formatting facilities can
throw (e.g. invalid format string).

A wrapper to handle formatting exceptions is added in a follow-up
change, but it is a good practice to catch exceptions at the top level
nonetheless.

Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ie55af338b9ef1f7d6e8825055cfc2e7037cdd80e
src/bin/lttng/commands/start.cpp
src/bin/lttng/commands/stop.cpp
src/bin/lttng/lttng.cpp
tests/regression/tools/trigger/utils/notification-client.cpp
tests/unit/test_action.cpp
This page took 0.026891 seconds and 4 git commands to generate.