Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
a647f59c
Commit
a647f59c
authored
Oct 17, 2010
by
Luuk van Dijk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[68]l: proper end of instruction ranges in dwarf.
R=rsc CC=golang-dev
https://golang.org/cl/2542042
parent
cc9e6b5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
dwarf.c
src/cmd/ld/dwarf.c
+6
-9
No files found.
src/cmd/ld/dwarf.c
View file @
a647f59c
...
...
@@ -667,7 +667,7 @@ flushunit(vlong pc, vlong unitstart)
static
void
writelines
(
void
)
{
Prog
*
p
,
*
q
;
Prog
*
q
;
Sym
*
s
;
char
*
unitname
;
vlong
unitstart
;
...
...
@@ -676,7 +676,6 @@ writelines(void)
int
i
;
Linehist
*
lh
;
q
=
nil
;
unitstart
=
-
1
;
epc
=
pc
=
0
;
lc
=
1
;
...
...
@@ -741,20 +740,18 @@ writelines(void)
if
(
!
s
->
reachable
)
continue
;
p
=
s
->
text
;
if
(
unitstart
<
0
)
{
diag
(
"reachable code before seeing any history: %P"
,
p
);
diag
(
"reachable code before seeing any history: %P"
,
s
->
text
);
continue
;
}
dwinfo
->
child
=
newdie
(
dwinfo
->
child
,
DW_ABRV_FUNCTION
);
newattr
(
dwinfo
->
child
,
DW_AT_name
,
DW_CLS_STRING
,
strlen
(
s
->
name
),
s
->
name
);
newattr
(
dwinfo
->
child
,
DW_AT_low_pc
,
DW_CLS_ADDRESS
,
s
->
text
->
pc
,
0
);
newattr
(
dwinfo
->
child
,
DW_AT_high_pc
,
DW_CLS_ADDRESS
,
s
->
text
->
pc
+
s
->
size
,
0
);
newattr
(
dwinfo
->
child
,
DW_AT_low_pc
,
DW_CLS_ADDRESS
,
s
->
value
,
0
);
epc
=
s
->
value
+
s
->
size
;
newattr
(
dwinfo
->
child
,
DW_AT_high_pc
,
DW_CLS_ADDRESS
,
epc
,
0
);
for
(
q
=
p
;
q
!=
P
&&
(
q
==
p
||
q
->
as
!=
ATEXT
);
q
=
q
->
link
)
{
epc
=
q
->
pc
;
for
(
q
=
s
->
text
;
q
!=
P
;
q
=
q
->
link
)
{
lh
=
searchhist
(
q
->
line
);
if
(
lh
==
nil
)
{
diag
(
"corrupt history or bad absolute line: %P"
,
q
);
...
...
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