From owner-freebsd-questions@FreeBSD.ORG Sat Sep 22 21:29:57 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FCA016A417 for ; Sat, 22 Sep 2007 21:29:57 +0000 (UTC) (envelope-from ghirai@ghirai.com) Received: from iota.fastbighost.com (iota.fastbighost.com [65.98.8.190]) by mx1.freebsd.org (Postfix) with ESMTP id 391AB13C45A for ; Sat, 22 Sep 2007 21:29:57 +0000 (UTC) (envelope-from ghirai@ghirai.com) Received: from [89.123.40.16] (port=65184 helo=deimos.bsd.nix) by iota.fastbighost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1IZCRX-0007RV-0D for freebsd-questions@freebsd.org; Sat, 22 Sep 2007 21:23:15 +0000 Date: Sun, 23 Sep 2007 00:29:23 +0000 From: Ghirai To: freebsd-questions@freebsd.org Message-Id: <20070923002923.92db3efd.ghirai@ghirai.com> X-Mailer: Sylpheed 2.4.6 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-PopBeforeSMTPSenders: ghirai@ghirai.com X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - iota.fastbighost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - ghirai.com X-Source: X-Source-Args: X-Source-Dir: Subject: gdb question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Sep 2007 21:29:57 -0000 Hello list, I'm playing with a small nasm executable, is there any way i can get gdb to show me the deadlisting, and allow me to break at a certain offset, without any debugging symbols? Since my code is raw assembly, seeing the sourcecode file or the deadlisting is the exact same. Atm i'm doing like this, and it doesn't seem to work: (gdb) file wp Reading symbols from wp...(no debugging symbols found)...done. (gdb) break 0x8048099 No symbol table is loaded. Use the "file" command. (gdb) run Starting program: wp warning: shared library handler failed to enable breakpoint Program exited with code 0267. Using gdbtui seems yield the exact same result. What i really want is to see the deadlisting and be able to step through it, seeing what happens with the registers, stack, etc. Can gdb do that? And are there any other usermode debuggers i could use? Thanks for reading. -- Regards, Ghirai.