From owner-freebsd-hackers Fri Jul 6 21:28: 2 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp2.knology.net (user-24-214-63-14.knology.net [24.214.63.14]) by hub.freebsd.org (Postfix) with SMTP id 9F81337B401 for ; Fri, 6 Jul 2001 21:27:59 -0700 (PDT) (envelope-from steve@havk.org) Received: (qmail 15098 invoked from network); 7 Jul 2001 04:27:58 -0000 Received: from user-24-214-56-224.knology.net (HELO bsd.havk.org) (24.214.56.224) by user-24-214-63-14.knology.net with SMTP; 7 Jul 2001 04:27:58 -0000 Received: by bsd.havk.org (Postfix, from userid 1001) id 61E6F1A7B5; Fri, 6 Jul 2001 23:27:29 -0500 (CDT) Date: Fri, 6 Jul 2001 23:27:29 -0500 From: Steve Price To: hackers@freebsd.org Subject: FW: gdb debugging tips Message-ID: <20010706232729.J93367@bsd.havk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD 4.3-STABLE i386 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Not sure if this is hackers@ material but since it is FreeBSD- related and is probably something people on this can do in their sleep I'm forwarding this here after no response on chat. ----- Forwarded message from Steve Price ----- I've been having problems with a software package for which I only have a binary with no debugging symbols. In talking to the folks that wrote the software I know what arguments the routine takes I just need to be able to see them in the debugger. Here's what I've done: Fire up the program. Attach to the pid of the running process with 'gdb lsv 10336'. I've set the breakpoint at the routine that I'm interested in 'break LH2P' and I've coerced the program to run to the breakpoint. Here's where I'm lost. I'm back in gdb and it is waiting for me to tell it what to do. I know the function LH2P takes one argument a 'char *'. How do I view a function's arguments? With debugging symbols this is as easy as 'where'. I figured 'info args' would be the ticket but all it says is 'No symbol table info avialable'. Now I'm betting the information from 'info frame' is the key but how to decipher it. Thanks. -steve ----- End forwarded message ----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message