Comments (2)
It is actually usable with importing gdbfrontend
module in any GDB session when you install it with PIP but I must do something for that usage.
Can you explain more?
from gdb-frontend.
、
It is actually usable with importing
gdbfrontend
module in any GDB session when you install it with PIP but I must do something for that usage.Can you explain more?
For example
https://github.com/rohanrhu/gdb-frontend/tree/master/api
https://github.com/rohanrhu/gdb-frontend/blob/master/plugins/hello/hello.py
import importlib
import json
import plugin
import api
gdb = importlib.import_module("gdb")
class HelloPlugin(plugin.GDBFrontendPlugin):
def __init__(self):
plugin.GDBFrontendPlugin.__init__(self)
def loaded(self):
gdb.events.new_objfile.connect(self.gdb_on_new_objfile)
def unloaded(self):
gdb.events.new_objfile.disconnect(self.gdb_on_new_objfile)
def gdb_on_new_objfile(self, event):
print("[HELLO] GDB Event: new_objfile:", event)
def event(self, client, event, message):
print("[HELLO] GDBFrontend Event Client#%d: %s: %s" % (client.client_id, event, message))
for _client in api.globalvars.httpServer.ws_clients:
_client.wsSend(json.dumps({
"event": "hello",
"replt_to": event
}))
Maybe can remove http
parts of hello.py
(module parser), just keep I/O Interface.
Establish unit testing for module parser.
Rewrite the API/HTTP
parts to load all module parser.
Just like
|- api
|- module
|- __init__.py
|- modules
|- test
|- http
|- ...
from gdb-frontend.
Related Issues (20)
- Startup issue on MacOS HOT 25
- Can't scroll up the terminal HOT 15
- PoC Flatpak packaging HOT 14
- Maybe something other than tmux is available for Windows? HOT 3
- Failure with Python 3.6: unexpected keyword argument 'capture_output' HOT 3
- gdb prompt is behind bottom status bar HOT 6
- Alert!: Unable to connect to remote host. HOT 22
- sorting files in folder in the sources aids the navigation HOT 3
- GDB executable not found due to $PWD is modified by gdbfrontend HOT 6
- a
- Not support risc-v HOT 3
- How to debug a GDB Python extension (pdb)? HOT 1
- How to debug apps get inputs from TTY? HOT 4
- gdb main thread is bloocking ... HOT 7
- FeatReq: Close windows in right sidebar HOT 5
- Update Ace editor HOT 3
- building gdb on arch failed HOT 1
- Accessing debugger interface from another machine (Access is denied) HOT 2
- Problems encountered during trying out gdb-frontend HOT 2
- macOS Thread no longer exists HOT 7
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 gdb-frontend.