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?
Asked
Active
Viewed 1,886 times
7
jvoisin
- 2,516
- 16
- 23
michaeluskov
- 171
- 3
-
What version of IDA are you using? If I'm not wrong, I fixed myself that in 6.3 or something. – joxeankoret Dec 03 '13 at 15:48
-
@joxeankoret IDA 6.3. But there are no problems when debugging in GDB. – michaeluskov Dec 05 '13 at 08: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 05 '13 at 12:35
1 Answers
5
This problem can be avoided by calling IDA this way:
cat | idaq
jvoisin
- 2,516
- 16
- 23
-
1Finally 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 04 '16 at 00:52