From owner-freebsd-hackers Tue Feb 16 9:42:51 1999 Received: from picnic.mat.net (b133.mat.net [206.246.122.133] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA14530; Tue, 16 Feb 1999 09:42:43 -0800 (PST) (envelope-from chuckr@mat.net) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.9.3/8.8.5) with ESMTP id MAA00747; Tue, 16 Feb 1999 12:41:34 -0500 (EST) Date: Tue, 16 Feb 1999 12:41:34 -0500 (EST) From: Chuck Robey To: Eivind Eklund cc: hackers@FreeBSD.ORG Subject: Re: gdb sucks - and I need to get around it. help? In-Reply-To: <19990216170310.C60651@bitbox.follo.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 16 Feb 1999, Eivind Eklund wrote: > 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. You can tell the absolute address of main(), right? Can't you just set a breakpoint of the program to the address of main() directly (not symbolically) then start the program. It should stop immediately, then you can single step until you fall asleep, right? That's all if this is a C program. If it's C++, where there is stuff active even before main(), then I'm not sure the address you'd want, but it'd NOT be main(). I think I'd get it via objdump. It could read the elf headers and get it. > > Eivind. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@glue.umd.edu | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run picnic (FreeBSD-current) (301) 220-2114 | and jaunt (Solaris7). ----------------------------+----------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message