Added examining memory locations (fix #64)
also added a way to run mi commands over unix domain sockets so other applications can communicate with code-debug
This commit is contained in:
parent
e78733308e
commit
87ff8b8644
5 changed files with 184 additions and 7 deletions
|
|
@ -556,6 +556,14 @@ export class MI2 extends EventEmitter implements IBackend {
|
|||
});
|
||||
}
|
||||
|
||||
examineMemory(from: number, length: number): Thenable<any> {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.sendCommand("data-read-memory-bytes 0x" + from.toString(16) + " " + length).then((result) => {
|
||||
resolve(result.result("memory[0].contents"));
|
||||
}, reject);
|
||||
});
|
||||
}
|
||||
|
||||
evalExpression(name: string): Thenable<any> {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.sendCommand("data-evaluate-expression " + name).then((result) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue