How to show the commands taken from stdin?

Peng Yu pengyu.ut@gmail.com
Thu Jan 28 17:32:22 GMT 2021


Hi,

The screen output does not contain the command 'echo Hello World!'. Is
there a way to show the original command along with the command output
(the commands must be taken from stdin)? (Just like the effect of `set
-v` in bash.)

$ gdb -q <<< 'echo Hello World!'
(gdb) Hello World!(gdb) quit

-- 
Regards,
Peng


More information about the Gdb mailing list