From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id DD4483844685 for ; Sat, 10 Dec 2022 16:33:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DD4483844685 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p42mu-00014y-V8; Sat, 10 Dec 2022 11:33:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=TcN/4r4cKUz++aZQPDjNu+tXLIdH+Wj6JYNIFZad4No=; b=cDeI2a4sHz+g qJuXw/ne0rxNLcWUjUvdgiE6U+HfIlO9kWF4ODWWifVDViU3MaGis9OUAzz8Ky8GsY+pKEh6Humkp Gvub9NhqKKFotkARoW81Nu5sLIhFP97ZtSBi+O6O5co7IKOo/BniAKQmDlmcQ7K11YecM/44G42Qi IoewfJxD63S9Ha1CxpI/m8VCva0S0X8R7fgLzYYa3JqhEkmTB0CVJ3jB2P1/Inm4l1sQ4zOPOYbcH DVXIHPU90lsBQMTwKT7Lrg6UTGAumtVhYHmx40qMYYQnS6kMTU0PpT0+MdsyaEdxoBbDibqzW7jiC WxWw070YXFHquUFJNx2ggw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p42mg-0008Uh-9l; Sat, 10 Dec 2022 11:33:20 -0500 Date: Sat, 10 Dec 2022 18:33:01 +0200 Message-Id: <83edt7w75u.fsf@gnu.org> From: Eli Zaretskii To: Hannes Domani Cc: gdb-patches@sourceware.org In-Reply-To: <20221210162326.854-3-ssbssa@yahoo.de> (message from Hannes Domani via Gdb-patches on Sat, 10 Dec 2022 17:23:26 +0100) Subject: Re: [PATCH 3/3] [RFC] Implement printing of return values of stepped-over functions References: <20221210162326.854-1-ssbssa@yahoo.de> <20221210162326.854-3-ssbssa@yahoo.de> X-Spam-Status: No, score=1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_BARRACUDACENTRAL,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > Date: Sat, 10 Dec 2022 17:23:26 +0100 > From: Hannes Domani via Gdb-patches > > It shows the return values of all function which were stepped over > with 'next', and puts them into convenience variables, similar to > 'finish'. > > --------- > I wonder if it should always collect the return value and put into the > value history, even if they are not printed, similar to how 'finish' works. > > Or maybe make them available from python somehow (plus the function symbols), > so it could be used e.g. in a new special TUI window. > --- > gdb/doc/gdb.texinfo | 11 ++++++ > gdb/infcmd.c | 91 +++++++++++++++++++++++++++++++++++++++++++++ > gdb/infrun.c | 10 ++++- > gdb/thread-fsm.h | 11 ++++++ > 4 files changed, 122 insertions(+), 1 deletion(-) OK for the documentation part, thanks. I think it also warrants a NEWS entry.