TTD API cleanup chores (follow-up from PR #1125 review)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Ambito
- devtools, reverse-engineering
Direzione di ricerca
Start with the TTD declarations in api/debuggerapi.h, the controller and adapter, especially core/adapters/dbgengttdadapter.cpp and ParseSingleTTDRegisterWriteObject. Then inspect api/python/debuggercontroller.py and architecture.py's RegisterName definition. Done means the listed C++ return types and parameter conventions, logging patterns, and Python event classes and register-name types are updated consistently across the TTD APIs.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Follow-up chores from @plafosse's review of #1125 (approved contingent only on the std::pair<bool,…> → std::optional fix, which has been done). These are the remaining "holistic / light mechanical refactor" items. They aren't specific to the register-write code — most apply to the surrounding TTD query APIs generally — so tracking them here rather than blocking that PR.
C++
-
std::pair<bool, T>→std::optional<T>everywhere. Done for the register-write methods in #1125; the pre-existing TTD memory-access methods (GetTTDNext/PrevMemoryAccess) still returnstd::pair<bool, TTDMemoryEvent>and should be migrated for consistency. - Register-name parameters:
const std::string&→std::string_view. Applies to the TTD query methods that take a register name (api/debuggerapi.h, controller, adapter). -
ParseSingleTTDRegisterWriteObject: takeexpressionby value (std::string) andstd::moveit intowExpressionrather thanconst std::string&+ copy (core/adapters/dbgengttdadapter.cpp). - Logging: avoid
Log*without a logger, and prefer theLog*Fvariants (faster, more readable, more featureful). The new TTD code uses bareLogInfo/LogError/LogWarnwith printf-style args — this pattern is repo-wide in the debugger, so worth a broader sweep.
Python (api/python/debuggercontroller.py)
- Make the event classes frozen
@dataclasses instead of hand-rolled classes with manual__eq__/__hash__/__setattr__(TTDRegisterWriteEvent, and the siblingTTDMemoryEvent/ related event classes). - Use a typedef'd register-name type instead of native
str. Mirror architecture.py'sRegisterName = NewType('RegisterName', str)for register-name parameters.
Review comments: https://github.com/Vector35/debugger/pull/1125#pullrequestreview
- Lingua principale
- C++
- Stelle
- 342
- Fork
- 34
- Merge medio
- 7g 21h
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Vector35/debugger
-
bug Effort: Trivial
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
bug Effort: Trivial Impact: Low
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
fix wine documentation linkAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
-
Effort: Trivial enhancement UI
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Tutte le issue di Vector35/debugger
Issue simili
-
Bug Core VIF
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
ESPresense/ESPresense#2680 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 75/100
stew675/llama-cpp-rdna-boosts#348 ·
I maintainer di solito rispondono entro 1 giorno
-
Documentation: Add comprehensive newcomer onboarding guide, project structure, and local usage to READMEForse già presa @Ash-Blanc l’ha presa oggi. Apertaarea/other status/bot-triaged status/need-triage
Difficoltà 2/5 Mezza giornata Idoneità per principianti 85/100
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno