From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 21 22:58:46 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3875016A4CE for ; Tue, 21 Sep 2004 22:58:46 +0000 (GMT) Received: from mailserv1.neuroflux.com (mailserv1.neuroflux.com [204.228.228.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id D31A943D2D for ; Tue, 21 Sep 2004 22:58:45 +0000 (GMT) (envelope-from ryans@gamersimpact.com) Received: (qmail 71797 invoked by uid 89); 21 Sep 2004 23:05:24 -0000 Received: from unknown (HELO www2.neuroflux.com) (127.0.0.1) by localhost with SMTP; 21 Sep 2004 23:05:24 -0000 Received: from 216.160.49.134 (SquirrelMail authenticated user ryans@gamersimpact.com) by www2.neuroflux.com with HTTP; Tue, 21 Sep 2004 17:05:24 -0600 (MDT) Message-ID: <1173.216.160.49.134.1095807924.squirrel@www2.neuroflux.com> In-Reply-To: <20040921221438.GA28757@ack.Berkeley.EDU> References: <20040921221438.GA28757@ack.Berkeley.EDU> Date: Tue, 21 Sep 2004 17:05:24 -0600 (MDT) From: "Ryan Sommers" To: "Mike Hunter" User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal cc: freebsd-hackers@freebsd.org Subject: Re: gdb attach on 5.3-beta5? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2004 22:58:46 -0000 Short answer, you still need to supply GDB with the executable name. do 'gdb -p /path/to/executable'. Long answer: http://00f.net/blogs/index.php/2004/09/11/p98 Hope this helps! -- Ryan Sommers ryans@gamersimpact.com Mike Hunter said: > Hi, > > I am having problems with gdb attach. I wrote a demo script that just > prints out it's pid over and over, then tried to sick gdb on it: > > #gdb6 program 29353 > GNU gdb 20040720 [GDB v6.x for FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. > This GDB was configured as "i386-portbld-freebsd5.2"...program: No such > file or directory. > > Attaching to process 29353 > solib-svr4.c:1307: internal-error: legacy_fetch_link_map_offsets called > without legacy link_map support enabled. > A problem internal to GDB has been detected, > further debugging may prove unreliable. > Quit this debugging session? (y or n) y > > solib-svr4.c:1307: internal-error: legacy_fetch_link_map_offsets called > without legacy link_map support enabled. > A problem internal to GDB has been detected, > further debugging may prove unreliable. > Create a core file of GDB? (y or n) n > > The program itself appears to get KILL, aka it says "Killed". > > Same results for gdb and gdb6. Is this a known issue? > > Help will likely enable me to post a question about why my X server is > crashing :) > > Thanks, > > Mike > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >