J'ai un projet "hello World" appelé test. je fais
gdb test r> log.txt
Je reçoishttp: //stackoverflow.com/editing-help
(gdb) r > log.txt
Starting program: /usr/bin/test > log.txt
[New Thread 6408.0x1454]
[New Thread 6408.0x1198]
[New Thread 6408.0x1458]
[New Thread 6408.0x1504]
[New Thread 6408.0xef0]
/usr/bin/test: missing argument after 'log.txt'
[Thread 6408.0x1198 exited with code 2]
[Thread 6408.0x1458 exited with code 2]
[Thread 6408.0x1504 exited with code 2]
[Inferior 1 (process 6408) exited with code 02]
(gdb)
J'utilise GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1
Ce qui est faux?
Testé sur cygwin
touch log.txt
gdb wc
tty log.txt
run cygcheck.out
quit
cat log.txt
973 2919 73904 cygcheck.out
Si le fichier de sortie n'existe pas, la commande tty échoue, de sorte que le touch
Cet article est collecté sur Internet, veuillez indiquer la source lors de la réimpression.
En cas d'infraction, veuillez [email protected] Supprimer.
laisse moi dire quelques mots