私は1行で複数のコマンドを実行しようとしています、例えば
(gdb) info threads; c
Args must be numbers or '$' variables.
しかし、gdbはサポートしていないようです。何か案は?
使用しdefine
、独自のコマンドを定義するためのコマンド:
(gdb) define mycommand
Type commands for definition of "mycommand".
End with a line saying just "end".
>info threads
>c
>end
(gdb) mycommand
詳細については、https://sourceware.org/gdb/onlinedocs/gdb/Define.html#Defineを参照してください。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加