From owner-freebsd-hackers Thu Feb 18 0: 3:28 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from detlev.UUCP (56-sweet.camalott.com [208.239.153.56]) by hub.freebsd.org (Postfix) with ESMTP id 8CC5C1132B; Thu, 18 Feb 1999 00:02:48 -0800 (PST) (envelope-from joelh@gnu.org) Received: (from joelh@localhost) by detlev.UUCP (8.9.2/8.9.1) id CAA02100; Thu, 18 Feb 1999 02:01:27 -0600 (CST) (envelope-from joelh) To: Greg Lehey Cc: Terry Lambert , Eivind Eklund , hackers@FreeBSD.ORG Subject: Re: gdb sucks - and I need to get around it. help? References: <19990216170310.C60651@bitbox.follo.net> <199902170227.TAA16880@usr08.primenet.com> <19990217133032.A515@lemis.com> From: Joel Ray Holveck Date: 18 Feb 1999 02:01:24 -0600 In-Reply-To: Greg Lehey's message of "Wed, 17 Feb 1999 13:30:32 +1030" Message-ID: <864sok9m3v.fsf@detlev.UUCP> Lines: 22 X-Mailer: Gnus v5.5/Emacs 20.3 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>> Anybody know of any way of getting gdb to step from the start of the >>> program? >>> I have an executable with absolutely no symbol data (symbol data is >>> absolutely non-available) which I *have* to get to step through, if >>> necessary by re-implementing gdb. >> One really snotty way to do it is to write a small program that >> exec's the other program, and follow it through the exec. I've used >> this technique to work on ld.so before. > Does this work on ELF executables? I used this technique (using ld.so) to debug Emacs when I brought it to FreeBSD-ELF. This was before ELF became stabilized, but it used to work. Cheers, joelh -- Joel Ray Holveck - joelh@gnu.org Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message