Skip to content

Commit

Permalink
v3.10.8 update
Browse files Browse the repository at this point in the history
  • Loading branch information
github0null committed Jan 1, 2023
1 parent cd353c7 commit cef6711
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 16 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ All notable version changes will be recorded in this file.

***

### [v3.10.8] update

**New**:
- `Project Resource`: Add `Symbol Table` virtual file in `Output Files`, click it to show `elf symbols` (support 'armcc', 'gcc', 'iar').
- `Builder Options` : Add `X/O Base`, `R/O Base`, `R/W Base` options for armcc, and allow import them from keil project.

**Optimize**:
- `launch.json Generator`: Don't force override 'svdPath' in launch.json config.
- `Project Resource`: Show promt when remove a filesystem source dir.

***

### [v3.10.7] revision

**Fix**:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"homepage": "https://em-ide.com",
"license": "MIT",
"description": "A mcu development environment for 8051/AVR/STM8/Cortex-M/RISC-V",
"version": "3.10.7",
"version": "3.10.8",
"preview": false,
"engines": {
"vscode": "^1.67.0"
Expand Down
30 changes: 17 additions & 13 deletions src/EIDEProjectExplorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1396,19 +1396,23 @@ class ProjectDataProvider implements vscode.TreeDataProvider<ProjTreeItem>, vsco
// put virtual views
{
// Symbol Table
let vFile = File.fromArray([project.getRootDir().path, `${project.getUid()}.elf-symbols`]);
iList.push(new ProjTreeItem(TreeItemType.OUTPUT_FILE_ITEM, {
label: `Symbol Table`,
value: vFile,
isVirtualFile: true,
collapsibleState: vscode.TreeItemCollapsibleState.None,
projectIndex: element.val.projectIndex,
tooltip: `Symbols Of Program`,
icon: `Table_16x.svg`
}));
if (VirtualDocument.instance().hasDocument(vFile.path) == false) {
VirtualDocument.instance().registerDocumentGetter(vFile.path,
(uri, args) => this.printProjectBinarySymbols(uri, args[0], args[1]));
// - not support sdcc, keil_c51 now !
if (!['Keil_C51', 'SDCC'].includes(project.getToolchain().name)) {

let vFile = File.fromArray([project.getRootDir().path, `${project.getUid()}.elf-symbols`]);
iList.push(new ProjTreeItem(TreeItemType.OUTPUT_FILE_ITEM, {
label: `Symbol Table`,
value: vFile,
isVirtualFile: true,
collapsibleState: vscode.TreeItemCollapsibleState.None,
projectIndex: element.val.projectIndex,
tooltip: `Symbols Of Program`,
icon: `Table_16x.svg`
}));
if (VirtualDocument.instance().hasDocument(vFile.path) == false) {
VirtualDocument.instance().registerDocumentGetter(vFile.path,
(uri, args) => this.printProjectBinarySymbols(uri, args[0], args[1]));
}
}
}
}
Expand Down
8 changes: 6 additions & 2 deletions src/KeilXmlParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -980,8 +980,12 @@ class ARMParser extends KeilParser<KeilARMOption> {
if (armAdsObj.LDads) {
const LDads = armAdsObj.LDads;
LDads.umfTarg = config.useCustomScatterFile ? '0' : '1';
const absPath = prj.ToAbsolutePath(config.scatterFilePath);
LDads.ScatterFile = this.ToRelativePath(absPath);
if (config.scatterFilePath) {
const absPath = prj.ToAbsolutePath(config.scatterFilePath);
LDads.ScatterFile = this.ToRelativePath(absPath);
} else {
LDads.ScatterFile = '';
}
}

const info = armAdsObj.ArmAdsMisc;
Expand Down

0 comments on commit cef6711

Please sign in to comment.