From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2935 invoked by alias); 19 Dec 2009 16:26:52 -0000 Received: (qmail 2927 invoked by uid 22791); 19 Dec 2009 16:26:52 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 19 Dec 2009 16:26:49 +0000 Received: from jupiter.vmware.com (mailhost5.vmware.com [10.16.68.131]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 1DAED1F047 for ; Sat, 19 Dec 2009 08:26:47 -0800 (PST) Received: from [10.20.94.141] (msnyder-server.eng.vmware.com [10.20.94.141]) by jupiter.vmware.com (Postfix) with ESMTP id 12A02DC071 for ; Sat, 19 Dec 2009 08:26:47 -0800 (PST) Message-ID: <4B2CFE2C.3040105@vmware.com> Date: Sat, 19 Dec 2009 16:26:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20090624) MIME-Version: 1.0 To: gdb@sourceware.org Subject: Is this a bug? "target remote" doesn't follow "set architecture" Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-12/txt/msg00126.txt.bz2 I built a gdb with target=i686-linux. I also want to use it for remote debugging. I was surprised to find that, even though I told it to "set architecture i386:x86-64", both before and after "target remote", it still tried to interpret the "g" regs packet as 32 bit regs, and to display the 32 bit reg set for "info reg". Am I wrong to expect this to work?