c++ - GDB stuck in infinite loop when debugging progam with standard input -
i'm using gdb reverse engineering of basic c program. program not accept command line input. accept input standard in during run time. i'm trying script standard in doing
run < temp where temp file containing like
1 0 aaaaaaaaa aaaaa 0 unfortunately, when this, gdb appears loop infinitely on programs input.
i tried make file using python
python -c 'print "aaaaa"' > temp and solution presented here: how debug program takes user input stdin gdb?
but no luck. when step through program gdb, can pass input via standard in , work's fine.
i'm bit stumped...
Comments
Post a Comment