From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by sourceware.org (Postfix) with ESMTPS id 70EF639AF18C for ; Thu, 28 Jan 2021 17:32:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 70EF639AF18C Received: by mail-io1-xd2e.google.com with SMTP id u8so1306509ior.13 for ; Thu, 28 Jan 2021 09:32:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=P95r5wsfTLCjLM1F0m19V9aqJTzeI4YxADVbFvh9ieU=; b=fFP3XPqOHGr0dUpc8CgPdUJmSPBAvV2HP/efI8NNMJG6JdAbkq6LbtB3IqDQVpZnDT 8g/2bzMMoXZ/REN0zYzxo7NGGefP4qK+ByJNJBzs7D09mVeoeGhl6YI3DU5jN4RIf78o cNTWdXxDbJ3t9h9gt1F/WRT5skx9ljTnMYUikhRMNq5F1UzIw5Xm3xPpMvACzUd+kVsz gmjjm33gE392YYUEcqEsVPO8//40jNaUZf91u2s3D6oZ0cYidJ8IEm3O4n4zOtsRfAzv 613pgTTsX0sHwBmn9zZyrv7BVfE1Wpyxl4RjmXh3h+QB5+bXFEC4XHAHy/d477YoM9NI NG+Q== X-Gm-Message-State: AOAM531TtttMWzQ5hIB6he128HRJxqHECRCpczqYOiFqNrQ6sxayRDZP SgU9RVf0duBsIaiWCYNYJAaFh7yXjvHglX+KPv+66BPCDXI= X-Google-Smtp-Source: ABdhPJxj184L7sEufnAsq+iCWxjrjccrYNh5SpPHoNtr7UjXhYrYHLy7YWtcGDNZmyn/HoCQhCDy1muyktCUSbSHWFQ= X-Received: by 2002:a5e:db0d:: with SMTP id q13mr568423iop.52.1611855143573; Thu, 28 Jan 2021 09:32:23 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a6b:c88b:0:0:0:0:0 with HTTP; Thu, 28 Jan 2021 09:32:22 -0800 (PST) From: Peng Yu Date: Thu, 28 Jan 2021 11:32:22 -0600 Message-ID: Subject: How to show the commands taken from stdin? To: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jan 2021 17:32:25 -0000 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