From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9795 invoked by alias); 13 Sep 2011 14:16:11 -0000 Received: (qmail 9786 invoked by uid 22791); 13 Sep 2011 14:16:10 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-wy0-f169.google.com (HELO mail-wy0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Sep 2011 14:15:52 +0000 Received: by wyi11 with SMTP id 11so629298wyi.0 for ; Tue, 13 Sep 2011 07:15:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.178.20 with SMTP id e20mr2226533wem.3.1315923350598; Tue, 13 Sep 2011 07:15:50 -0700 (PDT) Received: by 10.216.159.205 with HTTP; Tue, 13 Sep 2011 07:15:50 -0700 (PDT) Date: Tue, 13 Sep 2011 14:37:00 -0000 Message-ID: Subject: GDB session logging From: Abhijit Halder To: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-09/txt/msg00211.txt.bz2 Hi, I can see that by using the following GDB commands I can enable logging: (gdb) set logging file gdb-session.log (gdb) set logging on My concern here is that the file gdb-session.log contains only the command output and not the command itself. After I complete my debugging if I want to create a debug report out of my session log I cannot do that as most of the output does not make sense to me. I cannot remember which output of which command and in which context. I believe we should log the command as well along with the command output. There should be provision for logging only the command (along with any error thrown by the command) and not the output of that command. Thanks, Abhijit Halder