Skip to content

DELETing a type member #48

Closed
Closed

Description

@shrddr

Currently DELETing a types_members entry results in all following members of the type shifting. This is unwieldy and unexpected by agent, to the point of giving up when deleting a member in the middle of a 100+ member type and witnessing the outcome. And I fully agree with it since when working in IDA interactively as a human when deleting a member in most cases what you actually mean is Undefine (U shortcut) which preserves the other members offsets by creating a gap instead:

Image

There is even an IDASDK function tinfo_t::del_udm() that does exactly that (instead of https://github.com/allthingsida/idasql/blob/main/src/lib/src/types_members.cpp#L361). This is a semantic change however, needs maintainer decision - will also influence how insert-in-the-middle #47 needs to be implemented (shift the following members or keep them pinned?)

Activity

  1. 0xeb commented on Jul 17, 2026

    @0xeb
    Member

    Fixed for v0.0.18 (coming shortly). DELETE is now non-collapsing: it leaves a gap and preserves the following members' offsets — exactly IDA's Undefine — on any struct (auto or fixed), so it no longer shifts the members after it. To deliberately compact/repack, toggle is_fixed 1→0. We've made this explicit in the type-editing skill + agent guidance. Thanks @shrddr for flagging it!

  2. added 2 commits that reference this issue on Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions