-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - Debug Info Stage for Explorer * - Added methods to return method regions to source code * - Added methods to return method regions to source code * - Minor fixes * - Minor fixes * Merge branch '027-dwarf' Corrected conflicts, bugs, and formatting issues
- Loading branch information
Showing
36 changed files
with
1,142 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,3 +54,4 @@ build.force | |
# exclude test directory | ||
.test/ | ||
|
||
.gdb_history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
# This file will be invoked from the gdb script. For internal use only. | ||
|
||
qemu-system-i386 -kernel bin/Mosa.HelloWorld.x86.bin -S -gdb stdio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
####################### | ||
# general configuration | ||
|
||
set history remove-duplicates unlimited | ||
set disassembly-flavor intel | ||
|
||
define hook-quit | ||
# kill | ||
set confirm off | ||
end | ||
|
||
define hook-kill | ||
set confirm off | ||
end | ||
|
||
######################## | ||
# specific configuration | ||
|
||
file bin/Mosa.HelloWorld.x86.bin | ||
target remote | Demos/unix/debug-helloworld-internal.sh | ||
b *0x0 | ||
# b *0xc010609f | ||
|
||
hbreak System.Void Mosa.HelloWorld.x86.Boot::Main() | ||
|
||
#################### | ||
# continue debugging | ||
|
||
continue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Tool.Compiler", | ||
"type": "mono", | ||
"request": "launch", | ||
"program": "${workspaceRoot}/../bin/Mosa.Tool.Compiler.exe", | ||
"args": [ | ||
"-o", | ||
"Mosa.HelloWorld.x86.bin", | ||
"-a", | ||
"x86", | ||
"--mboot", | ||
"v1", | ||
"--map", | ||
"Mosa.HelloWorld.x86.map", | ||
"--debug-info", | ||
"Mosa.HelloWorld.x86.debug", | ||
"--x86-irq-methods", | ||
"--base-address", | ||
"0x00500000", | ||
"mscorlib.dll", | ||
"Mosa.Plug.Korlib.dll", | ||
"Mosa.Plug.Korlib.x86.dll", | ||
"Mosa.HelloWorld.x86.exe" | ||
], | ||
"cwd": "${workspaceRoot}/../bin", | ||
"internalConsoleOptions": "openOnSessionStart" | ||
} | ||
/* | ||
{ | ||
"name": "Attach", | ||
"type": "mono", | ||
"request": "attach", | ||
"address": "localhost", | ||
"port": 55555 | ||
} | ||
*/ | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build solution", | ||
"type": "shell", | ||
"command": "msbuild", | ||
"args": [ | ||
"/property:GenerateFullPaths=true", | ||
"/t:build" | ||
], | ||
"group": "build", | ||
"presentation": { | ||
"reveal": "always" | ||
}, | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "build tool.compiler", | ||
"type": "shell", | ||
"command": "msbuild", | ||
"args": [ | ||
"/property:GenerateFullPaths=true", | ||
"/t:build", | ||
"Mosa.Tool.Compiler/Mosa.Tool.Compiler.csproj" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"presentation": { | ||
"reveal": "always" | ||
}, | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "build solution", | ||
"type": "shell", | ||
"command": "msbuild", | ||
"args": [ | ||
"/property:GenerateFullPaths=true", | ||
"/t:build" | ||
], | ||
"group": "build", | ||
"presentation": { | ||
"reveal": "always" | ||
}, | ||
"problemMatcher": "$msCompile" | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
Source/Mosa.Compiler.Extension.Dwarf/DwarfCompilerExtension.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) MOSA Project. Licensed under the New BSD License. | ||
|
||
using Mosa.Compiler.Framework; | ||
using Mosa.Compiler.Framework.CompilerStages; | ||
|
||
namespace Mosa.Compiler.Extensions.Dwarf | ||
{ | ||
public class DwarfCompilerExtension : BaseCompilerExtension | ||
{ | ||
public override void ExtendCompilerPipeline(Pipeline<BaseCompilerStage> pipeline) | ||
{ | ||
pipeline.InsertBefore<LinkerFinalizationStage>(new DwarfCompilerStage()); | ||
} | ||
|
||
public override void ExtendMethodCompilerPipeline(Pipeline<BaseMethodCompilerStage> pipeline) | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.