// }
// }
macro_rules! dw {
- ($(#[$meta:meta])* $struct_name:ident($struct_type:ty) { $($name:ident = $val:expr),+ $(,)? }) => {
+ ($(#[$meta:meta])* $struct_name:ident($struct_type:ty)
+ { $($name:ident = $val:expr),+ $(,)? }
+ $(, aliases { $($alias_name:ident = $alias_val:expr),+ $(,)? })?
+ ) => {
$(#[$meta])*
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct $struct_name(pub $struct_type);
$(
pub const $name: $struct_name = $struct_name($val);
)+
+ $($(
+ pub const $alias_name: $struct_name = $struct_name($alias_val);
+ )+)*
impl $struct_name {
pub fn static_string(&self) -> Option<&'static str> {
DW_CFA_GNU_window_save = 0x2d,
DW_CFA_GNU_args_size = 0x2e,
DW_CFA_GNU_negative_offset_extended = 0x2f,
+},
+aliases {
+ DW_CFA_AARCH64_negate_ra_state = 0x2d,
});
dw!(
DW_AT_GNU_all_call_sites = 0x2117,
DW_AT_GNU_all_source_call_sites = 0x2118,
DW_AT_GNU_macros = 0x2119,
+ DW_AT_GNU_deleted = 0x211a,
// Extensions for Fission proposal.
DW_AT_GNU_dwo_name = 0x2130,
/// format of the pointer, the upper four bits describe how the encoding should
/// be applied.
///
-/// Defined in https://refspecs.linuxfoundation.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/dwarfext.html
+/// Defined in `<https://refspecs.linuxfoundation.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/dwarfext.html>`
DwEhPe(u8) {
// Format of pointer encoding.