From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27738 invoked by alias); 3 Mar 2010 21:08:56 -0000 Received: (qmail 27730 invoked by uid 22791); 3 Mar 2010 21:08:54 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 03 Mar 2010 21:08:49 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o23L8mCO005379 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 3 Mar 2010 16:08:48 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o23L8keE008392; Wed, 3 Mar 2010 16:08:47 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o23L8kCQ022116; Wed, 3 Mar 2010 16:08:46 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id B8E99379963; Wed, 3 Mar 2010 14:08:45 -0700 (MST) From: Tom Tromey To: gdb-patches@sourceware.org Subject: Re: [RFA] defs.h: Define GDB_DEFAULT_TARGET_[WIDE_]CHARSET for Cygwin and MingW builds References: <20100228184749.GA17375@caradoc.them.org> <20100228192159.GP5683@calimero.vinschen.de> <20100228222702.GC29360@caradoc.them.org> <20100301103125.GB9730@calimero.vinschen.de> <20100301173054.GD5683@calimero.vinschen.de> <20100301193126.GA9416@caradoc.them.org> <20100303170645.GA23545@caradoc.them.org> Reply-To: Tom Tromey Date: Wed, 03 Mar 2010 21:08:00 -0000 In-Reply-To: <20100303170645.GA23545@caradoc.them.org> (Daniel Jacobowitz's message of "Wed, 3 Mar 2010 12:08:37 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2010-03/txt/msg00126.txt.bz2 >>>>> "Daniel" == Daniel Jacobowitz writes: >> This patch nearly works -- it regresses on a Python test that looks at >> gdb.parameter('target-charset') directly and then gets confused by >> "auto". I think the only solution for this is to add a new Python API. >> (It would be easy enough to just hack the test case somehow -- but the >> libstdc++ printers use this same idiom, so a real solution is needed.) Daniel> I agree. This is a general problem: I had the same issue with Daniel> gdb.parameter('endian'). It'd be nice to have a standard way to query Daniel> the effective value of the parameter! Yes, I agree. I don't know of a generic way to do that in gdb, so I suppose we would need a new method on set/show commands and then a bunch of new implementations all over. Daniel> This is an interesting mess. We have both a Windows target issue and Daniel> a Windows native issue. Handling Windows has become a separate issue; Daniel> I don't see any need to wait on this patch which fixes Cygwin. Ok, thanks. I will finish the patch soon. Daniel> What I'd suggest: create an i386-windows-tdep.c. Define a new OSABI Daniel> for Windows, and sniff for it. Then you have an i386_windows_init_abi Daniel> and you can put things there. Someone else will have to do these parts. Tom