No obvious way to retrieve on IL instruction given an IL basic block from the C++ API

Aperta
#4,654 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp, python

Direzione di ricerca

Start with the Python implementation in lowlevelil.py around the linked lines, then inspect the corresponding C++ IL basic-block and function API. Determine how direct instruction lookup should be exposed consistently with existing indexing or iteration, and verify that callers can retrieve an instruction from a basic block through the C++ API.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Component: API Effort: Trivial Impact: Low

There is no obvious way to retrieve on IL instruction given an IL basic block from the C++ API. It is easy in Python, that we can either directly index the IL basic block or iterate over it.

By looking at the Python source code, I noticed that a viable is to first retrieve the IL function and then index into it. https://github.com/Vector35/binaryninja-api/blob/2f415e3da3a417160c07928cc8b91f42eddbac3f/python/lowlevelil.py#L5289C1-L5290. It would be better if there is an API to do it directly.

Lingua principale
C++
Stelle
1.3k
Fork
298
Merge medio
5g 5h
PR unite (30g)
19

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Vector35/binaryninja-api

Tutte le issue di Vector35/binaryninja-api

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.