<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ida-tui.git/server/patch_server.py, branch main</title>
<subtitle>tui for headless ida</subtitle>
<id>https://git.sl0p.foo/ida-tui.git/atom/server/patch_server.py?h=main</id>
<link rel='self' href='https://git.sl0p.foo/ida-tui.git/atom/server/patch_server.py?h=main'/>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/ida-tui.git/'/>
<updated>2026-07-10T12:53:20Z</updated>
<entry>
<title>hex view: file offsets + 'g' goto (dedicated input)</title>
<updated>2026-07-10T12:53:20Z</updated>
<author>
<name>blasty</name>
<email>blasty@local</email>
</author>
<published>2026-07-10T12:53:20Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/ida-tui.git/commit/?id=b8d0335682758ef51eab1c6dea6435b11d4e0bd2'/>
<id>urn:sha1:b8d0335682758ef51eab1c6dea6435b11d4e0bd2</id>
<content type='text'>
Add a file_regions server tool (get_fileregion_offset per segment) and
Program.file_regions/file_offset so a virtual address maps to its raw
on-disk offset without a format-specific header parser. The hex view now
shows a VA column and a file-offset column side by side, and the status
line reports file+off.

Goto moves to its own top-level #goto Input instead of overloading the
function-filter box (which is hidden with the names pane, so goto was
unreachable there). In the hex view 'g' jumps the cursor to an address
(bounds-checked against the image); elsewhere it navigates as before.
</content>
</entry>
<entry>
<title>retype: set variable/function types with 'y' (IDA-style), via structured tools</title>
<updated>2026-07-10T11:30:48Z</updated>
<author>
<name>blasty</name>
<email>blasty@local</email>
</author>
<published>2026-07-10T11:30:48Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/ida-tui.git/commit/?id=6d83015906f850b872261655f014ef14612a8ba5'/>
<id>urn:sha1:6d83015906f850b872261655f014ef14612a8ba5</id>
<content type='text'>
Instead of parsing pseudocode text, add structured server tools (server/
patch_server.py, alongside del_type):
 - func_types(addr): prototype + local variables (name/type/is_arg)
 - set_lvar_type(addr,var,type): retype a decompiler local, working on auto/
   register vars too (stock set_type only updates already-user-modified lvars)

'y' in a code view retypes what's under the cursor: a local variable (prompt
prefilled with its current type) or a function (prompt prefilled with its full
prototype). Applies via set_lvar_type / set_type, then recompiles + refreshes.
Copy-line moved off 'y' to Ctrl+Y.

domain: Program.func_types / set_function_type / set_lvar_type (LVar/FuncTypes).
Pilot: function-prototype retype (prefill + apply). full suite 94/94.
</content>
</entry>
<entry>
<title>server: inject a del_type tool into ida-pro-mcp (enables struct delete)</title>
<updated>2026-07-10T09:55:33Z</updated>
<author>
<name>blasty</name>
<email>blasty@local</email>
</author>
<published>2026-07-10T09:55:33Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/ida-tui.git/commit/?id=25590831d851e9e8ab8ff15b4122e01dfafd6d58'/>
<id>urn:sha1:25590831d851e9e8ab8ff15b4122e01dfafd6d58</id>
<content type='text'>
ida-pro-mcp has no delete-type tool, so struct-editor delete couldn't work. We
don't vendor/fork the server; instead server/patch_server.py idempotently appends
a del_type @tool to the installed ida_pro_mcp/ida_mcp/api_types.py, which every
worker (python -m ida_pro_mcp.idalib_server) imports -&gt; it self-registers on the
shared MCP_SERVER. spawn.sh runs the patch before launching, so it's re-applied
on each start (survives reinstalls) and tracked in-repo instead of hand-editing
site-packages.

del_type calls ida_typeinf.del_named_type(get_idati(), name, NTF_TYPE). After a
supervisor restart, Program.delete_type() now succeeds; the struct editor's Del
removes the type and the list refreshes. Verified end-to-end; pilot 84/84.
</content>
</entry>
</feed>
