소스 검색

avoid crashing on no model name

Samuel Thibault 13 년 전
부모
커밋
d7c53078b1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tools/gdbinit

+ 1 - 1
tools/gdbinit

@@ -7,7 +7,7 @@ define starpu-print-job
   printf "\tsubmitted:\t\t\t<%d>\n", $job->submitted
   printf "\tterminated:\t\t\t<%d>\n", $job->terminated
   printf "\tjob_id:\t\t\t\t<%d>\n", $job->job_id
-  if _starpu_use_fxt == 1
+  if _starpu_use_fxt == 1 && $job->model_name
     printf "\tmodel_name:\t\t\t<%s>\n", $job->model_name
   end
 end