From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3201 invoked by alias); 21 May 2004 22:57:14 -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 3191 invoked from network); 21 May 2004 22:57:13 -0000 Received: from unknown (HELO mail-out3.apple.com) (17.254.13.22) by sourceware.org with SMTP; 21 May 2004 22:57:13 -0000 Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225]) by mail-out3.apple.com (8.12.11/8.12.11) with ESMTP id i4JIGE3N008109 for ; Wed, 19 May 2004 11:16:14 -0700 (PDT) Received: from relay3.apple.com (relay3.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.3.6) with ESMTP id ; Wed, 19 May 2004 11:15:25 -0700 Received: from apple.com ([17.219.199.188]) by relay3.apple.com (8.12.11/8.12.11) with ESMTP id i4JIFKMA007074; Wed, 19 May 2004 11:15:21 -0700 (PDT) Message-ID: <40ABA436.4090100@apple.com> Date: Fri, 21 May 2004 22:57:00 -0000 From: Stan Shebs User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6) Gecko/20040113 MIME-Version: 1.0 To: Bob Rossi CC: gdb@sources.redhat.com Subject: Re: remote_debug defined in m68k-stub.c and top.c References: <20040519180355.GA23825@white> In-Reply-To: <20040519180355.GA23825@white> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-05/txt/msg00153.txt.bz2 Bob Rossi wrote: >Hi, > >Does m68k-stub.c and top.c ever get linked into the same exe? >Or do you just get one or the other? > >I am noticing that the global remote_debug is defined in both of these files. > They're different variables - m68k-stub.c is for a debugging stub that gets linked into your program, while top.c is part of GDB proper. It *is* a little confusing to have stubs, which are as much example code as anything else, mixed in with GDB sources. Stan