Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
37512c03
Commit
37512c03
authored
Nov 14, 2013
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: Don't use filename without '/' for backtrace library.
Fixes
http://golang.org/issue/6715
. From-SVN: r204828
parent
58c55a32
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
libgo/runtime/go-caller.c
+7
-0
No files found.
libgo/runtime/go-caller.c
View file @
37512c03
...
@@ -101,6 +101,13 @@ __go_get_backtrace_state ()
...
@@ -101,6 +101,13 @@ __go_get_backtrace_state ()
const
char
*
filename
;
const
char
*
filename
;
filename
=
(
const
char
*
)
runtime_progname
();
filename
=
(
const
char
*
)
runtime_progname
();
/* If there is no '/' in FILENAME, it was found on PATH, and
might not be the same as the file with the same name in the
current directory. */
if
(
__builtin_strchr
(
filename
,
'/'
)
==
NULL
)
filename
=
NULL
;
back_state
=
backtrace_create_state
(
filename
,
1
,
error_callback
,
NULL
);
back_state
=
backtrace_create_state
(
filename
,
1
,
error_callback
,
NULL
);
}
}
runtime_unlock
(
&
back_state_lock
);
runtime_unlock
(
&
back_state_lock
);
...
...
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