Mentions légales du service

Skip to content
Snippets Groups Projects
Commit db301b49 authored by Kevin Pouget's avatar Kevin Pouget
Browse files

fix a bit

parent 4d1d3916
No related branches found
No related tags found
No related merge requests found
......@@ -165,7 +165,7 @@ class GOMP_task_function_Breakpoint(OmpFunctionBreakpoint):
taskjob = self.identify()
if taskjob is None:
log.warn("Could not identify the current task.")
log.error("Could not identify the task currently running ...")
return True, False, data
else:
data["taskjob"] = taskjob
......@@ -191,17 +191,20 @@ class GOMP_task_function_Breakpoint(OmpFunctionBreakpoint):
def identify(self):
task = None
try:
task = gdb.newest_frame().older().read_var("child_task")
if task.is_optimized_out:
task = None
except ValueError:
pass
if task is None:
assert gdb.newest_frame().older().name() == "GOMP_taskwait"
try:
#assert gdb.newest_frame().older().name() == "GOMP_taskwait"
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:
log.critical("Could not read task register: {}".format(e))
log.error("Maybe it's not the right architecture ... ?")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment