From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29973 invoked by alias); 17 Mar 2004 15:16:19 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 29966 invoked from network); 17 Mar 2004 15:16:18 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 17 Mar 2004 15:16:18 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 5715A2B92; Wed, 17 Mar 2004 10:16:19 -0500 (EST) Message-ID: <40586BC3.1080706@gnu.org> Date: Wed, 17 Mar 2004 15:16:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: [rfa/remote] Reread symbols on 'target remote' References: <20040228173955.GA15910@nevyn.them.org> <404810C2.8050005@gnu.org> <20040306235436.GA10071@nevyn.them.org> In-Reply-To: <20040306235436.GA10071@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-03.o/txt/msg00386.txt > On Fri, Mar 05, 2004 at 12:31:46AM -0500, Andrew Cagney wrote: > >>>> >2004-02-28 Daniel Jacobowitz >>>> > >>>> > * remote.c (remote_open_1): Reopen the exec file and reread symbols >>>> > if necessary. >> >>> >>> What happens if the target is "extended-remote"? > > > Works fine. remote_open_1 is only called when we create the initial > connection and handles any rereading at that time; run_command in > infcmd.c will handle if the "run" command is issued over an existing > extended-remote connection. Sorry, I ment without the patch (but I think you've answered that anyway). While "run" and "load" are fairly obvious sync points for GDB and its executable I'm not sure that "target remote" is - it's behavior is kind of sort of a screwed up version of attach. What does that do (as far as I can tell it doesn't re-read symbols)? Andrew From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29973 invoked by alias); 17 Mar 2004 15:16:19 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 29966 invoked from network); 17 Mar 2004 15:16:18 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 17 Mar 2004 15:16:18 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 5715A2B92; Wed, 17 Mar 2004 10:16:19 -0500 (EST) Message-ID: <40586BC3.1080706@gnu.org> Date: Fri, 19 Mar 2004 00:09:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: [rfa/remote] Reread symbols on 'target remote' References: <20040228173955.GA15910@nevyn.them.org> <404810C2.8050005@gnu.org> <20040306235436.GA10071@nevyn.them.org> In-Reply-To: <20040306235436.GA10071@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-03/txt/msg00386.txt.bz2 Message-ID: <20040319000900.tedfmnNc_NK0cVHYRI9S3fdPHE1rm5FYqTkGClvneXQ@z> > On Fri, Mar 05, 2004 at 12:31:46AM -0500, Andrew Cagney wrote: > >>>> >2004-02-28 Daniel Jacobowitz >>>> > >>>> > * remote.c (remote_open_1): Reopen the exec file and reread symbols >>>> > if necessary. >> >>> >>> What happens if the target is "extended-remote"? > > > Works fine. remote_open_1 is only called when we create the initial > connection and handles any rereading at that time; run_command in > infcmd.c will handle if the "run" command is issued over an existing > extended-remote connection. Sorry, I ment without the patch (but I think you've answered that anyway). While "run" and "load" are fairly obvious sync points for GDB and its executable I'm not sure that "target remote" is - it's behavior is kind of sort of a screwed up version of attach. What does that do (as far as I can tell it doesn't re-read symbols)? Andrew