6

I have _fgets call in a program I want to debug in IDA. My program receives SIGTTIN while calling it, that's normal. But when I mark to pass SIGTTIN to application, program waits for input in terminal, but neither pressing Enter key, nor Ctrl-D stop reading from input. What should I do to finish the input?

  • What version of IDA are you using? If I'm not wrong, I fixed myself that in 6.3 or something. – joxeankoret Dec 3 '13 at 15:48
  • @joxeankoret IDA 6.3. But there are no problems when debugging in GDB. – michaeluskov Dec 5 '13 at 8:48
  • GDB is not IDA. Have you tried redirecting input? You can use in the arguments field "< some_file" to pass input to STDIN. Or if running via linux_remote you can run a command line like: $ linux_remote < some_file_with_inputs. This way no problem should arise. – joxeankoret Dec 5 '13 at 12:35
5

This problem can be avoided by calling IDA this way:

cat | idaq
  • 1
    Finally I can use IDA's debugger, thanks @jvoisin. I still do not understand why this command works, but it really works. – Ta Thanh Dinh Mar 4 '16 at 0:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.