2022-11-01 22:06:37 +00:00
|
|
|
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
2022-11-02 00:05:16 +00:00
|
|
|
// SPDX-License-Identifier: LGPL-2.1-or-later
|
2022-11-01 22:06:37 +00:00
|
|
|
// Generated by scripts/gen_dwarf_constants.py.
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "dwarf_constants.h"
|
|
|
|
|
2023-09-28 18:36:15 +01:00
|
|
|
#define X(name, _) if (value == name) return #name;
|
2022-11-01 22:06:37 +00:00
|
|
|
|
2023-09-28 18:45:09 +01:00
|
|
|
const char *dw_op_str(int value, char buf[static DW_OP_STR_BUF_LEN])
|
|
|
|
{
|
|
|
|
DW_OP_DEFINITIONS
|
|
|
|
snprintf(buf, DW_OP_STR_BUF_LEN, DW_OP_STR_UNKNOWN_FORMAT, value);
|
|
|
|
return buf;
|
|
|
|
}
|
|
|
|
|
2022-11-01 22:06:37 +00:00
|
|
|
const char *dw_tag_str(int value, char buf[static DW_TAG_STR_BUF_LEN])
|
|
|
|
{
|
|
|
|
DW_TAG_DEFINITIONS
|
2023-09-28 18:36:15 +01:00
|
|
|
snprintf(buf, DW_TAG_STR_BUF_LEN, DW_TAG_STR_UNKNOWN_FORMAT, value);
|
|
|
|
return buf;
|
2022-11-01 22:06:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#undef X
|