Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mcgdb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dema
mcgdb
Commits
db301b49
Commit
db301b49
authored
8 years ago
by
Kevin Pouget
Browse files
Options
Downloads
Patches
Plain Diff
fix a bit
parent
4d1d3916
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
model/task/environment/openmp/capture/gomp/GOMP_task.py
+6
-3
6 additions, 3 deletions
model/task/environment/openmp/capture/gomp/GOMP_task.py
with
6 additions
and
3 deletions
model/task/environment/openmp/capture/gomp/GOMP_task.py
+
6
−
3
View file @
db301b49
...
@@ -165,7 +165,7 @@ class GOMP_task_function_Breakpoint(OmpFunctionBreakpoint):
...
@@ -165,7 +165,7 @@ class GOMP_task_function_Breakpoint(OmpFunctionBreakpoint):
taskjob
=
self
.
identify
()
taskjob
=
self
.
identify
()
if
taskjob
is
None
:
if
taskjob
is
None
:
log
.
warn
(
"
Could not identify the current
task
.
"
)
log
.
error
(
"
Could not identify the
task
current
ly running ..
.
"
)
return
True
,
False
,
data
return
True
,
False
,
data
else
:
else
:
data
[
"
taskjob
"
]
=
taskjob
data
[
"
taskjob
"
]
=
taskjob
...
@@ -191,17 +191,20 @@ class GOMP_task_function_Breakpoint(OmpFunctionBreakpoint):
...
@@ -191,17 +191,20 @@ class GOMP_task_function_Breakpoint(OmpFunctionBreakpoint):
def
identify
(
self
):
def
identify
(
self
):
task
=
None
task
=
None
try
:
try
:
task
=
gdb
.
newest_frame
().
older
().
read_var
(
"
child_task
"
)
task
=
gdb
.
newest_frame
().
older
().
read_var
(
"
child_task
"
)
if
task
.
is_optimized_out
:
if
task
.
is_optimized_out
:
task
=
None
task
=
None
except
ValueError
:
except
ValueError
:
pass
pass
if
task
is
None
:
if
task
is
None
:
assert
gdb
.
newest_frame
().
older
().
name
()
==
"
GOMP_taskwait
"
try
:
try
:
#assert gdb.newest_frame().older().name() == "GOMP_taskwait"
task_ptr
=
gdb
.
newest_frame
().
older
().
read_register
(
"
r14
"
)
task_ptr
=
gdb
.
newest_frame
().
older
().
read_register
(
"
r14
"
)
if
int
(
task_ptr
)
==
0
:
raise
ValueError
(
"
Task pointer shouldn
'
t be NULL...
"
)
except
ValueError
as
e
:
except
ValueError
as
e
:
log
.
critical
(
"
Could not read task register: {}
"
.
format
(
e
))
log
.
critical
(
"
Could not read task register: {}
"
.
format
(
e
))
log
.
error
(
"
Maybe it
'
s not the right architecture ... ?
"
)
log
.
error
(
"
Maybe it
'
s not the right architecture ... ?
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment