Git Product home page Git Product logo

Comments (3)

mariusmue avatar mariusmue commented on May 22, 2024 1

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.

phros avatar phros commented on May 22, 2024

Thanks for the feedback, I will give it a try!

from avatar2.

mariusmue avatar mariusmue commented on May 22, 2024

As there where no further comments, I'm closing the issue for now.

from avatar2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.