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
8088e1be
Commit
8088e1be
authored
Oct 14, 2013
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: Don't clobber saved context when catching signal.
From-SVN: r203577
parent
f637ebc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
libgo/runtime/go-signal.c
+3
-2
No files found.
libgo/runtime/go-signal.c
View file @
8088e1be
...
...
@@ -399,6 +399,7 @@ sig_tramp_info (int sig, Siginfo *info, void *context)
{
G
*
gp
;
M
*
mp
;
void
*
stack_context
[
10
];
/* We are now running on the stack registered via sigaltstack.
(Actually there is a small span of time between runtime_siginit
...
...
@@ -409,7 +410,7 @@ sig_tramp_info (int sig, Siginfo *info, void *context)
if
(
gp
!=
NULL
)
{
#ifdef USING_SPLIT_STACK
__splitstack_getcontext
(
&
gp
->
stack_context
[
0
]);
__splitstack_getcontext
(
&
stack_context
[
0
]);
#endif
}
...
...
@@ -432,7 +433,7 @@ sig_tramp_info (int sig, Siginfo *info, void *context)
if
(
gp
!=
NULL
)
{
#ifdef USING_SPLIT_STACK
__splitstack_setcontext
(
&
gp
->
stack_context
[
0
]);
__splitstack_setcontext
(
&
stack_context
[
0
]);
#endif
}
}
...
...
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