} else if (q_event_name == debug_info->q_statedump_build_id) {
/* Build ID info */
handle_event_statedump_build_id(debug_info, event);
- } else if (q_event_name == debug_info-> q_lib_unload) {
+ } else if (q_event_name == debug_info->q_lib_unload) {
handle_event_lib_unload(debug_info, event);
}
* Babeltrace - Debug info utilities
*/
+#include <stdbool.h>
#include <string.h>
#include <babeltrace2/babeltrace.h>
}
BT_HIDDEN
-bt_bool is_event_common_ctx_dbg_info_compatible(const bt_field_class *in_field_class,
+bool is_event_common_ctx_dbg_info_compatible(const bt_field_class *in_field_class,
const char *debug_info_field_class_name)
{
const bt_field_class_structure_member *member;
const bt_field_class *ip_fc, *vpid_fc;
- bt_bool match = BT_FALSE;
+ bool match = false;
/*
* If the debug info field is already present in the event common
* context. Do not try to add it.
*/
- member =
- bt_field_class_structure_borrow_member_by_name_const(
+ member = bt_field_class_structure_borrow_member_by_name_const(
in_field_class, debug_info_field_class_name);
if (member) {
goto end;
member);
if (bt_field_class_get_type(ip_fc) !=
BT_FIELD_CLASS_TYPE_UNSIGNED_INTEGER) {
- match = BT_FALSE;
goto end;
}
vpid_fc = bt_field_class_structure_member_borrow_field_class_const(
member);
-
if (bt_field_class_get_type(vpid_fc) !=
BT_FIELD_CLASS_TYPE_SIGNED_INTEGER) {
goto end;
goto end;
}
- match = BT_TRUE;
+ match = true;
end:
return match;
#ifndef BABELTRACE_PLUGIN_DEBUG_INFO_UTILS_H
#define BABELTRACE_PLUGIN_DEBUG_INFO_UTILS_H
+#include <stdbool.h>
+
#include <babeltrace2/babeltrace.h>
#include "common/macros.h"
const char *get_filename_from_path(const char *path);
BT_HIDDEN
-bt_bool is_event_common_ctx_dbg_info_compatible(
+bool is_event_common_ctx_dbg_info_compatible(
const bt_field_class *in_field_class,
const char *debug_info_field_class_name);