• Bug#1110138: ltrace: wtb bitfield-enum decoding

    From =?utf-8?B?0L3QsNCx?=@21:1/5 to All on Thu Jul 31 21:40:01 2025
    --2leyxc5sfaegudup
    Content-Type: text/plain; charset=us-ascii
    Content-Disposition: inline

    Control: tags -1 + patch

    memcpy(0x7ffeae63e888, ".", 1) = 0x7ffeae63e888
    inotify_add_watch(3, ".", IN_MOVED_TO|IN_CREATE|IN_DELETE_SELF|IN_MOVE_SELF|IN_ONLYDIR|IN_EXCL_UNLINK) = 1
    reallocarray(nil, 2, 8) = 0x55fb0d39a2e0

    --2leyxc5sfaegudup
    Content-Type: text/x-diff; charset=us-ascii
    Content-Disposition: attachment;
    filename="0001-Add-typedef-bitenum-Closes-1110138.patch" Content-Transfer-Encoding: quoted-printable

    From 6e26699817640d09fd0c493f5722dd9057212400 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= <[email protected]>
    Date: Thu, 31 Jul 2025 21:27:08 +0200
    Subject: [PATCH] Add typedef = bitenum() (Closes: #1110138)
    X-Mutt-PGP: OS

    ---
    Makefile.am | 2 +-
    lens_bitenum.c | 145 +++++++++++++++++++++++++++++++++++++++++++++
    lens_bitenum.h | 47 +++++++++++++++
    read_config_file.c | 118 ++++++++++++++++++++++++++++++++++++
    4 files changed, 311 insertions(+), 1 deletion(-)
    create mode 100644 lens_bitenum.c
    create mode 100644 lens_bitenum.h

    diff --git a/Makefile.am b/Makefile.am
    index 394d91c..df408bb 100644
    --- a/Makefile.am
    +++ b/Makefile.am
    @@ -33,7 +33,7 @@ libltrace_la_SOURCES = bits.c breakpoints.c debug.c demangle.c dict.c \
    options.c output.c proc.c read_config_file.c summary.c \
    library.c filter.c glob.c type.c value.c value_dict.c expr.c \
    fetch.c vect.c param.c printf.c zero.c lens.c lens_default.c \
    - lens_enum.c memstream.c prototype.c
    + lens_enum.c lens_bitenum.c memstream.c prototype.c
    if HAVE_LIBDW
    libltrace_la_SOURCES += dwarf_prototypes.c
    endif
    diff --git a/lens_bitenum.c b/lens_bitenum.c
    new file mode 100644
    index 0000000..42a7581
    --- /dev/null
    +++ b/lens_bitenum.c