From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id B8D343858429 for ; Mon, 15 Aug 2022 11:15:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B8D343858429 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-359-BhGfe38WP2K-Y3sKtE7oUA-1; Mon, 15 Aug 2022 07:15:18 -0400 X-MC-Unique: BhGfe38WP2K-Y3sKtE7oUA-1 Received: by mail-wm1-f72.google.com with SMTP id c189-20020a1c35c6000000b003a4bfb16d86so3605551wma.3 for ; Mon, 15 Aug 2022 04:15:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :x-gm-message-state:from:to:cc; bh=/EYAUICIMfnjF3CoyRI8zlJQSKusJdOglkGULGUw8qs=; b=TszT57TGXjSvXUHxt8ulDTfRLkjjpDpwW1v5HTwZ5CLDDp7A3Durml/PWIzC048RaY AqMEHLNhr+m1SBuQWA4Qvx0jzn65stOwuXw7hqBWgqR9YSj/6A6AkeKv8lYLkBfy220Z jNroY6bTJDMS/6PlWLWROos4B5jl0coUD0jgNUQcLJTHTtG+kgmKU/LN286mB43u8AbZ qQf7zdqNBBW9+6SQ1gD8B86JSg5TlAluA6ZAyh3dSjbUDUs1hExZl5hz7RRs6bMA0nsB F/qGDw/69D/xhOHOY+yTxTBblOVAyQKf4cKYgsm330KCFW3n+ahku2Uqf6EOvUpcecP4 5SUw== X-Gm-Message-State: ACgBeo3ZOlCq3bijY4JLjwGljLwlHrENlbCIDIoWj6EkLwoNO40/rGdM RBJMiuVC2t8PcGGwcYsNi11ARDk0Ao6QQyUzQfJ3zvSSePzXL9YHKl2F3UvmCdIEMoXdirBOw4u ei2not7npLYc= X-Received: by 2002:a5d:47a1:0:b0:221:7e3b:b3b4 with SMTP id 1-20020a5d47a1000000b002217e3bb3b4mr8681805wrb.694.1660562116822; Mon, 15 Aug 2022 04:15:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR6VwvTm5yXYzwGgtwIusWYIwXtRxuCn0oEex0ClLhNtlIAw544OLBEL04Xewnfap2ajXtzCtA== X-Received: by 2002:a5d:47a1:0:b0:221:7e3b:b3b4 with SMTP id 1-20020a5d47a1000000b002217e3bb3b4mr8681789wrb.694.1660562116612; Mon, 15 Aug 2022 04:15:16 -0700 (PDT) Received: from localhost (15.72.115.87.dyn.plus.net. [87.115.72.15]) by smtp.gmail.com with ESMTPSA id o6-20020a1c7506000000b003a2f6367049sm8955441wmc.48.2022.08.15.04.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Aug 2022 04:15:16 -0700 (PDT) From: Andrew Burgess To: hilbert , gdb@sourceware.org Subject: Re: [question] How to output logs In-Reply-To: <3d259367.8ad1.182a0ab6aef.Coremail.swdtian@163.com> References: <3d259367.8ad1.182a0ab6aef.Coremail.swdtian@163.com> Date: Mon, 15 Aug 2022 12:15:15 +0100 Message-ID: <87k079zrjw.fsf@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: Mon, 15 Aug 2022 11:15:20 -0000 hilbert via Gdb writes: > Can log information be output like other projects? I don't see the relevant parameters. > This will make it easier to read the source code. > I don't see the relevant configuration options. Maybe the 'set debug ....' options are what you're looking for? These are all mentioned in the manual, but they are mostly scattered throughout and don't have a section of their own. You can use 'set logging file ....' and 'set logging enabled on' to have GDB record its output to a logfile if that helps too. Thanks, Andrew