Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cbl-gdb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Simon Sobisch
cbl-gdb
Commits
47bf90df
Commit
47bf90df
authored
Jul 29, 2020
by
rdubner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tolerate ANY NUMERIC and ANY LENGTH; include f_name in VARIABLE_STRING
parent
84bffe25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
4 deletions
+27
-4
cobcd-st/cobst.vcxproj.user
cobcd-st/cobst.vcxproj.user
+4
-4
cobcd-st/vartree.cpp
cobcd-st/vartree.cpp
+23
-0
No files found.
cobcd-st/cobst.vcxproj.user
View file @
47bf90df
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"Current"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
<LocalDebuggerCommandArguments>
-f C:\Users\Bob\repos\cbl-gdb-samples\ref_test_
2\rtest C:\Users\Bob\repos\cbl-gdb-samples\ref_test_2
\rtest.cbl
</LocalDebuggerCommandArguments>
<LocalDebuggerCommandArguments>
-f C:\Users\Bob\repos\cbl-gdb-samples\ref_test_
9\rtest C:\Users\Bob\repos\cbl-gdb-samples\ref_test_9
\rtest.cbl
</LocalDebuggerCommandArguments>
<DebuggerFlavor>
WindowsLocalDebugger
</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
<LocalDebuggerCommandArguments>
-f C:\Users\Bob\repos\cbl-gdb-samples\ref_test_
2\rtest C:\Users\Bob\repos\cbl-gdb-samples\ref_test_2
\rtest.cbl
</LocalDebuggerCommandArguments>
<LocalDebuggerCommandArguments>
-f C:\Users\Bob\repos\cbl-gdb-samples\ref_test_
9\rtest C:\Users\Bob\repos\cbl-gdb-samples\ref_test_9
\rtest.cbl
</LocalDebuggerCommandArguments>
<DebuggerFlavor>
WindowsLocalDebugger
</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
>
<LocalDebuggerCommandArguments>
-f C:\Users\Bob\repos\cbl-gdb-samples\ref_test_
2\rtest C:\Users\Bob\repos\cbl-gdb-samples\ref_test_2
\rtest.cbl
</LocalDebuggerCommandArguments>
<LocalDebuggerCommandArguments>
-f C:\Users\Bob\repos\cbl-gdb-samples\ref_test_
9\rtest C:\Users\Bob\repos\cbl-gdb-samples\ref_test_9
\rtest.cbl
</LocalDebuggerCommandArguments>
<DebuggerFlavor>
WindowsLocalDebugger
</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|x64'"
>
<LocalDebuggerCommandArguments>
-f C:\Users\Bob\repos\cbl-gdb-samples\ref_test_
2\rtest C:\Users\Bob\repos\cbl-gdb-samples\ref_test_2
\rtest.cbl
</LocalDebuggerCommandArguments>
<LocalDebuggerCommandArguments>
-f C:\Users\Bob\repos\cbl-gdb-samples\ref_test_
9\rtest C:\Users\Bob\repos\cbl-gdb-samples\ref_test_9
\rtest.cbl
</LocalDebuggerCommandArguments>
<DebuggerFlavor>
WindowsLocalDebugger
</DebuggerFlavor>
</PropertyGroup>
</Project>
\ No newline at end of file
cobcd-st/vartree.cpp
View file @
47bf90df
...
...
@@ -359,6 +359,28 @@ VARIABLE_TREE::ReadFromFile(std::ifstream &ifs)
continue
;
}
// I'm getting bored with some of this nonsense.
// But as we run more and more code through this program, we keep
// coming up with stuff that needs to be skipped over
size_t
nfound
=
input
.
find
(
"ANY LENGTH"
);
if
(
nfound
!=
string
::
npos
)
{
input
.
replace
(
nfound
,
10
,
" "
);
}
nfound
=
input
.
find
(
"ANY NUMERIC"
);
if
(
nfound
!=
string
::
npos
)
{
input
.
replace
(
nfound
,
11
,
" "
);
}
nfound
=
input
.
find
(
"ALIGNED"
);
if
(
nfound
!=
string
::
npos
)
{
input
.
replace
(
nfound
,
7
,
" "
);
}
vector
<
string
>
tokens
=
Split
(
input
,
"
\t
"
);
if
(
tokens
.
size
()
EQ
0
)
{
// Ignore blank lines
...
...
@@ -1131,6 +1153,7 @@ VARIABLE_TREE::FormatVariablesInfo(stringstream &ss,
ss
<<
node
->
section
.
substr
(
0
,
2
)
<<
"|"
;
ss
<<
ZeroIsNull
(
node
->
level
)
<<
"|"
;
ss
<<
node
->
canonical_name
<<
"|"
;
ss
<<
node
->
f_name
<<
"|"
;
ss
<<
node
->
b_name
<<
"|"
;
ss
<<
ZeroIsNull
(
node
->
offset
)
<<
"|"
;
ss
<<
node
->
type
.
substr
(
0
,
1
)
<<
"|"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment