Comments (3)
Hi there!
For now, QemuTarget would be responsible for spawning the QemuInstance.
If you want to attach to another Qemu instance, you could advice Qemu to spawn a GDBServer as well, and attach to it using the GDBTarget! Just add:
-gdb tcp::127.0.0.1:[PORT]
to your command line arguments for Qemu. Additionally, if you want to halt the CPU on startup, add also the -S
flag. Note that this way, you won't be able to access features of avatar-qemu like remote memory.
If you need access to Qemus QMP, you could set the Monitor protocol of your GDBTarget to qmp.
This may work like this (assuming the port for qmp is 9999):
qmp = QMPProtocol(9999, origin=self)
gdbtargetInstance.protocols.monitor= qmp
qmp.connect()
This would require your Qemu instance started with the qmp server:
-qmp tcp:127.0.0.1:9999,server,nowait
Note that this is not tested and just written from my memory - normally we use the QemuTarget to drive QEMU, and we haven't implemented a RemoteQemuTarget
yet - but this could be totally done the way described above. :)
from avatar2.
Thanks for the feedback, I will give it a try!
from avatar2.
As there where no further comments, I'm closing the issue for now.
from avatar2.
Related Issues (20)
- PyPanda: disable -monitor HOT 3
- Docker container avatar2 cannot run handbook 0x02 HOT 2
- Unable to modify memory from Peripheral handlers HOT 6
- RemoteMemoryRead failed: Failed to read memory!
- Exception: GDBProtocol was unable to connect HOT 4
- Installer has invalid references to GitHub repos HOT 2
- Is it possible to dynamically analyse the firmware of a ESP32 just with the default avatar2 tools? HOT 4
- avatar2/handbook/0x03_memory.md/Avatar² Peripheral Emulation Ranges HOT 20
- AvatarPeripheral with x86 target HOT 5
- A naive question: what means rcc dump HOT 1
- Stuck when openocd_target try to wait HOT 2
- RecursionError: maximum recursion depth exceeded in comparison HOT 2
- geting to halt state when transfer state from QemuTarget to gdbTarget
- How to deal with interrupt (NVIC) HOT 2
- avatar.CRITICAL | No Memory range specified at 0x400008
- qemu-system-arm, configurable does not work with cpu_model=cortex-m4 HOT 7
- questions regarding gdbstub, SerialICE and avatar[one] HOT 2
- Failure to check for qemu failure at startup HOT 2
- query: per-opcode filters/logging? HOT 2
- AvatarPeripheral: pci/pcie devices
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avatar2.