• <tfoot id='hg5AE'></tfoot>

          <bdo id='hg5AE'></bdo><ul id='hg5AE'></ul>

        <i id='hg5AE'><tr id='hg5AE'><dt id='hg5AE'><q id='hg5AE'><span id='hg5AE'><b id='hg5AE'><form id='hg5AE'><ins id='hg5AE'></ins><ul id='hg5AE'></ul><sub id='hg5AE'></sub></form><legend id='hg5AE'></legend><bdo id='hg5AE'><pre id='hg5AE'><center id='hg5AE'></center></pre></bdo></b><th id='hg5AE'></th></span></q></dt></tr></i><div id='hg5AE'><tfoot id='hg5AE'></tfoot><dl id='hg5AE'><fieldset id='hg5AE'></fieldset></dl></div>
      1. <small id='hg5AE'></small><noframes id='hg5AE'>

        <legend id='hg5AE'><style id='hg5AE'><dir id='hg5AE'><q id='hg5AE'></q></dir></style></legend>
      2. 如何传递参数并将标准输入从文件重定向到在

        时间:2023-05-23
      3. <legend id='3DChi'><style id='3DChi'><dir id='3DChi'><q id='3DChi'></q></dir></style></legend>

          • <bdo id='3DChi'></bdo><ul id='3DChi'></ul>
            <tfoot id='3DChi'></tfoot>

                  <tbody id='3DChi'></tbody>
                • <i id='3DChi'><tr id='3DChi'><dt id='3DChi'><q id='3DChi'><span id='3DChi'><b id='3DChi'><form id='3DChi'><ins id='3DChi'></ins><ul id='3DChi'></ul><sub id='3DChi'></sub></form><legend id='3DChi'></legend><bdo id='3DChi'><pre id='3DChi'><center id='3DChi'></center></pre></bdo></b><th id='3DChi'></th></span></q></dt></tr></i><div id='3DChi'><tfoot id='3DChi'></tfoot><dl id='3DChi'><fieldset id='3DChi'></fieldset></dl></div>

                  <small id='3DChi'></small><noframes id='3DChi'>

                  本文介绍了如何传递参数并将标准输入从文件重定向到在 gdb 中运行的程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我通常将程序运行为:

                  ./a.out arg1 arg2 <file
                  

                  我想用 gdb 调试它.

                  I would like to debug it using gdb.

                  我知道 set args 功能,但它只能在 gdb 提示符下工作.

                  I am aware of the set args functionality, but that only works from the gdb prompt.

                  推荐答案

                  从 gdb 中将参数传递给 run 命令.

                  Pass the arguments to the run command from within gdb.

                  $ gdb ./a.out
                  (gdb) r < t
                  Starting program: /dir/a.out < t
                  

                  这篇关于如何传递参数并将标准输入从文件重定向到在 gdb 中运行的程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何在 gdb 中打印长字符串的完整值? 下一篇:如何使用 MinGW gdb 调试器在 Windows 中调试 C++ 程序

                  相关文章

                  最新文章

                  1. <tfoot id='VijGV'></tfoot>

                  2. <small id='VijGV'></small><noframes id='VijGV'>

                  3. <legend id='VijGV'><style id='VijGV'><dir id='VijGV'><q id='VijGV'></q></dir></style></legend>

                        <bdo id='VijGV'></bdo><ul id='VijGV'></ul>
                      <i id='VijGV'><tr id='VijGV'><dt id='VijGV'><q id='VijGV'><span id='VijGV'><b id='VijGV'><form id='VijGV'><ins id='VijGV'></ins><ul id='VijGV'></ul><sub id='VijGV'></sub></form><legend id='VijGV'></legend><bdo id='VijGV'><pre id='VijGV'><center id='VijGV'></center></pre></bdo></b><th id='VijGV'></th></span></q></dt></tr></i><div id='VijGV'><tfoot id='VijGV'></tfoot><dl id='VijGV'><fieldset id='VijGV'></fieldset></dl></div>