From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70821 invoked by alias); 19 Jan 2018 20:09:37 -0000 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 Received: (qmail 70809 invoked by uid 89); 19 Jan 2018 20:09:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=resets X-HELO: gateway36.websitewelcome.com Received: from gateway36.websitewelcome.com (HELO gateway36.websitewelcome.com) (192.185.186.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 Jan 2018 20:09:34 +0000 Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway36.websitewelcome.com (Postfix) with ESMTP id 2333D40110E6F for ; Fri, 19 Jan 2018 14:09:32 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id ccyiepUyJzzFjccyieWEEl; Fri, 19 Jan 2018 14:09:32 -0600 Received: from 71-218-90-63.hlrn.qwest.net ([71.218.90.63]:56046 helo=pokyo) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eccyh-003mcV-Sq; Fri, 19 Jan 2018 14:09:31 -0600 From: Tom Tromey To: Xavier Roirand Cc: gdb-patches@sourceware.org Subject: Re: [RFC] expected behavior for "bt" command used with "set language ..." ? References: Date: Fri, 19 Jan 2018 20:09:00 -0000 In-Reply-To: (Xavier Roirand's message of "Wed, 17 Jan 2018 18:17:16 +0100") Message-ID: <87vafxk3us.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BWhitelist: no X-Source-L: No X-Exim-ID: 1eccyh-003mcV-Sq X-Source-Sender: 71-218-90-63.hlrn.qwest.net (pokyo) [71.218.90.63]:56046 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-SW-Source: 2018-01/txt/msg00414.txt.bz2 >>>>> "Xavier" == Xavier Roirand writes: Xavier> When printing one frame arguments, should we do it using the language Xavier> of the frame, and it may be different for each frame in a single "bt" Xavier> command or should we leave things as they are, and possibly allow the Xavier> "bt" command to display weird values for frame arguments or even Xavier> worse, crash GDB because the user set language manually so he has to Xavier> know what he's doing ? I tend to think the answer should be: * If the language is "auto", then use each frame's language; otherwise * If the user specified a particular language, use that language for everything. Xavier> This can also probably be done by adding frame language parameter to a Xavier> lot of language specific functions for each language and finally to Xavier> value_cast but this second solution requires a huge amount of work. That would be good to have but I don't think it ought to be tied to this particular project. Certainly plenty of other code already just sets and resets the global. Tom