-
Notifications
You must be signed in to change notification settings - Fork 11
llcppsymg: support users to modify the symbol mapping table in the llcppg.cfg file #232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tsingbx
wants to merge
19
commits into
goplus:main
Choose a base branch
from
tsingbx:symMap
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
1eee68f
modify GenerateAndUpdateSymbolTable to GenerateSymbolTable
tsingbx c6f26db
support llcppg.cfg symMap
tsingbx fbcb1ce
delete debug info & fix compile error
tsingbx f0f62c9
change symMap field of llcppg.cfg to map type
tsingbx a979ecd
fix llcppgtest for cjson demo failed
tsingbx e69a01d
symMap field of llcppg.cfg support -
tsingbx 659c729
add DbgProcess to control log Process... output
tsingbx 8de2206
add GetDebugNewFuncDecl to control NewFuncDecl log output
tsingbx 660c72d
add DbgGetCurFile flag to control GetCurFile log output
tsingbx 6ad3428
add GetDebugCollectFuncInfo to control collectFuncInfo log output
tsingbx a772dee
add GetDebugNewSymbol function to control new symbol log output
tsingbx 8397cef
add GetDebugMacro function to control Macro log output
tsingbx e101d4b
add debug flag to control debug log output
tsingbx 6b0d13e
add GetDebugWrite function to control Packate write debug log
tsingbx a90cb31
add GetDebugUnmarshalling to control error unmarshalling log
tsingbx 617a91d
fix run demos error
tsingbx e32d671
change llcppg.symb.json for _llcppgtest
tsingbx a1a858e
delete llcppg.symb.json
tsingbx 7066a7a
add tests for dbg
tsingbx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,9 +1,10 @@ | ||
| package main | ||
|
|
||
| import ( | ||
| "cjson" | ||
| "unsafe" | ||
|
|
||
| "cjson" | ||
|
|
||
| "github.com/goplus/llgo/c" | ||
| ) | ||
|
|
||
|
|
||
This file contains hidden or 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 |
|---|---|---|
| @@ -1,9 +1,10 @@ | ||
| package main | ||
|
|
||
| import ( | ||
| "cjson" | ||
| "fmt" | ||
|
|
||
| "cjson" | ||
|
|
||
| "github.com/goplus/llgo/c" | ||
| ) | ||
|
|
||
|
|
||
This file contains hidden or 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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,129 @@ | ||
| package dbg | ||
|
|
||
| import "testing" | ||
|
|
||
| func TestSetDebugParse(t *testing.T) { | ||
| tests := []struct { | ||
| name string | ||
| }{ | ||
| { | ||
| name: "TestSetDebugParse", | ||
| }, | ||
| } | ||
| for _, tt := range tests { | ||
| t.Run(tt.name, func(t *testing.T) { | ||
| SetDebugParse() | ||
| if !GetDebugParse() { | ||
| t.Errorf("GetDebugParse() = %v, want %v", false, true) | ||
| } | ||
| }) | ||
| } | ||
| } | ||
|
|
||
| func TestSetDebugAll(t *testing.T) { | ||
| tests := []struct { | ||
| name string | ||
| }{ | ||
| { | ||
| name: "TestSetDebugAll", | ||
| }, | ||
| } | ||
| for _, tt := range tests { | ||
| t.Run(tt.name, func(t *testing.T) { | ||
| SetDebugAll() | ||
| if flags != DbgFlagAll { | ||
| t.Errorf("flags = %v, want %v", flags, DbgFlagAll) | ||
| } | ||
| }) | ||
| } | ||
| } | ||
|
|
||
| func TestSetDebugVisitTop(t *testing.T) { | ||
| tests := []struct { | ||
| name string | ||
| }{ | ||
| { | ||
| name: "TestSetDebugVisitTop", | ||
| }, | ||
| } | ||
| for _, tt := range tests { | ||
| t.Run(tt.name, func(t *testing.T) { | ||
| SetDebugVisitTop() | ||
| if !GetDebugVisitTop() { | ||
| t.Errorf("GetDebugVisitTop() = %v, want %v", false, true) | ||
| } | ||
| }) | ||
| } | ||
| } | ||
|
|
||
| func TestSetDebugProcess(t *testing.T) { | ||
| tests := []struct { | ||
| name string | ||
| }{ | ||
| { | ||
| name: "TestSetDebugProcess", | ||
| }, | ||
| } | ||
| for _, tt := range tests { | ||
| t.Run(tt.name, func(t *testing.T) { | ||
| SetDebugProcess() | ||
| if !GetDebugProcess() { | ||
| t.Errorf("GetDebugProcess() = %v, want %v", false, true) | ||
| } | ||
| }) | ||
| } | ||
| } | ||
|
|
||
| func TestSetDebugGetCurFile(t *testing.T) { | ||
| tests := []struct { | ||
| name string | ||
| }{ | ||
| { | ||
| name: "TestSetDebugGetCurFile", | ||
| }, | ||
| } | ||
| for _, tt := range tests { | ||
| t.Run(tt.name, func(t *testing.T) { | ||
| SetDebugGetCurFile() | ||
| if !GetDebugGetCurFile() { | ||
| t.Errorf("GetDebugGetCurFile() = %v, want %v", false, true) | ||
| } | ||
| }) | ||
| } | ||
| } | ||
|
|
||
| func TestSetDebugMacro(t *testing.T) { | ||
| tests := []struct { | ||
| name string | ||
| }{ | ||
| { | ||
| name: "TestSetDebugMacro", | ||
| }, | ||
| } | ||
| for _, tt := range tests { | ||
| t.Run(tt.name, func(t *testing.T) { | ||
| SetDebugMacro() | ||
| if !GetDebugMacro() { | ||
| t.Errorf("GetDebugMacro() = %v, want %v", false, true) | ||
| } | ||
| }) | ||
| } | ||
| } | ||
|
|
||
| func TestSetDebugFileType(t *testing.T) { | ||
| tests := []struct { | ||
| name string | ||
| }{ | ||
| { | ||
| name: "TestSetDebugFileType", | ||
| }, | ||
| } | ||
| for _, tt := range tests { | ||
| t.Run(tt.name, func(t *testing.T) { | ||
| SetDebugFileType() | ||
| if !GetDebugFileType() { | ||
| t.Errorf("GetDebugFileType() = %v, want %v", false, true) | ||
| } | ||
| }) | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
与当前Pr无关的风格问题,需要去除~