From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 509 invoked by alias); 17 Oct 2003 18:51:43 -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 440 invoked from network); 17 Oct 2003 18:51:42 -0000 Received: from unknown (HELO localhost.redhat.com) (65.49.0.121) by sources.redhat.com with SMTP; 17 Oct 2003 18:51:42 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 4230C2B89 for ; Fri, 17 Oct 2003 14:51:36 -0400 (EDT) Message-ID: <3F903A38.9020908@gnu.org> Date: Fri, 17 Oct 2003 18:51:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Re: Should push_target pop all targets? References: <3F8DCD32.4070009@redhat.com> <20031015230525.GA23956@nevyn.them.org> <3F902DEA.3060100@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00216.txt.bz2 > On GNU/Linux, attach breaks (yet the exact same test passes on BSD ...) I believe this happens: (gdb) attach pid -> calls attach_command() -> calls ... find_default_run_target's attach -> calls exec_file_attach() -> calls push_target (&exec_ops) pops the "run" target outch! Andrew