From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 690 invoked by alias); 26 Mar 2003 22:25:04 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 679 invoked from network); 26 Mar 2003 22:25:04 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 26 Mar 2003 22:25:04 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id F171B2B23; Wed, 26 Mar 2003 17:24:54 -0500 (EST) Message-ID: <3E8228B6.2030007@redhat.com> Date: Wed, 26 Mar 2003 22:25:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Warkentin Cc: Daniel Jacobowitz , gdb@sources.redhat.com Subject: Re: problem with exec-file when targetting remote machine References: <003101c2f241$078b7050$0202040a@catdog> <20030324203652.GA27939@nevyn.them.org> <019c01c2f3e2$a0e02dc0$0202040a@catdog> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-03/txt/msg00364.txt.bz2 > Can anyone tell me the possible ramifications of commenting out this line? > I wouldn't normally contemplate this kind of fix but I have only a short > while to get this in a patch. In my preliminary tests, everything seems to > work but I'm worried that there might be other consequences. Assume the code was originally added because of a bug :-) I'm guessing something like: (gdb) file executable (gdb) disassemble main will break. It will select the wrong disassembler. Why isn't the executable being recognized, and why do the defaults fail? (NickC pointed me at an endian problem recently). Andrew