(thread: number, frame: number)
| 738 | } |
| 739 | |
| 740 | async getStackVariables(thread: number, frame: number): Promise<Variable[]> { |
| 741 | if (trace) |
| 742 | this.log("stderr", "getStackVariables"); |
| 743 | |
| 744 | const result = await this.sendCommand(`stack-list-variables --thread ${thread} --frame ${frame} --simple-values`); |
| 745 | const variables = result.result("variables"); |
| 746 | const ret: Variable[] = []; |
| 747 | for (const element of variables) { |
| 748 | const key = MINode.valueOf(element, "name"); |
| 749 | const value = MINode.valueOf(element, "value"); |
| 750 | const type = MINode.valueOf(element, "type"); |
| 751 | ret.push({ |
| 752 | name: key, |
| 753 | valueStr: value, |
| 754 | type: type, |
| 755 | raw: element |
| 756 | }); |
| 757 | } |
| 758 | return ret; |
| 759 | } |
| 760 | |
| 761 | async getRegisters(): Promise<Variable[]> { |
| 762 | if (trace) |
nothing calls this directly
no test coverage detected