Command Line READ in idb does not wait

Command Line READ in idb does not wait

A coworker is having problems getting idb to wait at command line READ statement.

idbc stops at the READ statement and waits for input but idb does not wait.

Is there a setting in idb that controls this?

He said the previous version of idb worked fine. 11.1 073.

Intel(R) Debugger for applications running on Intel(R) 64, Version 11.1, Build [1.2097.2.385]

Current version.

Intel(R) Debugger for applications running on Intel(R) 64, Version 12.1, Build [78.226.14]

example test code.

      PROGRAM RD_KEY

                                !   this proram is for debugging keyboard read

      IMPLICIT NONE

      CHARACTER*10 COM
      INTEGER*4 IOS

      WRITE(*,60)
 60   FORMAT(' ENTER TEST STRING>')
      READ(*,10,IOSTAT=IOS,err=20,ADVANCE='NO')COM
 10   FORMAT(A)
      WRITE(*,30)COM
 30   FORMAT(/,'keyboard entry ',A10)
      goto 40
 20   CONTINUE
      WRITE(*,50)IOS
 50   FORMAT('ERROR=',I1)
 40   CONTINUE

      END

4 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

Hi Rich,

let me check with our development team whether this is a known issue and whether it may already be fixed.

I'll let you know as soon as I hear back.

Thanks, Rob

Hi Rich,

the underlying issue is probably with the CIN definition in Fortran. I think if you redirect the console output to the debugger, than the GUI debugger should halt at the READ statement as well.

Can you try launching idb with the command line options "–tty /dev/tty"?
I think that should do the trick
.

Thanks, Rob

That worked!
He is back to fixing problems in his code.

Thank You for the quick response.

Rich

发表评论

登录添加评论。还不是成员?立即加入