Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Isn't the better way to interact with python embedded into gdb? #41

Open
ponyatov opened this issue May 29, 2019 · 2 comments
Open

Isn't the better way to interact with python embedded into gdb? #41

ponyatov opened this issue May 29, 2019 · 2 comments

Comments

@ponyatov
Copy link

ponyatov commented May 29, 2019

Modern gdb versions have --enable--python option which included Python interpreter into the debugger for any target processor/MCU. This option looks me much better to embed gdb interface into Jython, as we'll have a portable way to interact directly with hardware using any mainstream i/o interfaces like J-Link, ST-Link,.. or any UART/USB/ETH coupled with gdb stub on the device.

Factically, we can even write the firmware model without the use of any C code, as all MCU i/o mapped to a memory address space, and we need only small interrupt handling code and a sort of generic i/o gateway written in C.

@ponyatov
Copy link
Author

Also, we can wrap cross-LLVM library built into Jupyter session, and play with dynamic compilation. It will be notable complex comparing to C programming, but Python can be used as a core for the interactive compiler by calling LLVM and rewriting parts of machine code on a hardware device.

@goatchurchprime
Copy link
Owner

Not sure I follow this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants