Skip to content

Commit

Permalink
fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaos1323 committed Dec 21, 2021
1 parent 36a29c9 commit 359c5c7
Show file tree
Hide file tree
Showing 7 changed files with 294 additions and 85 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Change Log

All notable changes to the "ASD" extension will be documented in this file.

## [V1.1.0]

- fix some smali file parsing problems
- fix single step problem
- add field access or modify breakpoint
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Android Smali bytecode Debugger
- Line breakpoints
- Display variables
- Modify variable's value
- field access or modify breakpoints

## Requirements

Expand Down Expand Up @@ -52,9 +53,6 @@ Android Smali bytecode Debugger
- implement the evaluate function totally
- make the array value to display better
- add the unit-test suite
- support class-type breakpoint
- support function-type breakpoint
- support watch breakpoint
- support conditional breakpoint

## Other
Expand Down
6 changes: 3 additions & 3 deletions src/JDWPClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class JDWPClient extends EventEmitter
return completer.promise;
}

protected handlePkt(data : Buffer) : void
protected async handlePkt(data : Buffer) : Promise<void>
{
const resolveres = (id : number, response : Buffer) =>
{
Expand Down Expand Up @@ -129,7 +129,7 @@ export class JDWPClient extends EventEmitter
resolveres(id, response);
}
else{
this.E_Composite(response);
await this.E_Composite(response);
}

if (this.replyBuffer.length < JDWP_HEADERLEN)
Expand Down Expand Up @@ -2328,7 +2328,7 @@ export class JDWPClient extends EventEmitter
"location" : response.readLocation(),
});

this.ER_Clear({
await this.ER_Clear({
"eventKind" : JdwpEventKind.EK_SINGLE_STEP,
"requestID" : requestID,
});
Expand Down
Loading

0 comments on commit 359c5c7

Please sign in to comment.