From owner-freebsd-questions@FreeBSD.ORG Sun Sep 23 10:08:28 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 A51FA16A419 for ; Sun, 23 Sep 2007 10:08:28 +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 7B3BC13C49D for ; Sun, 23 Sep 2007 10:08:28 +0000 (UTC) (envelope-from ghirai@ghirai.com) Received: from [89.123.40.16] (port=52777 helo=deimos.bsd.nix) by iota.fastbighost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1IZOHS-0000Ke-EK; Sun, 23 Sep 2007 10:01:38 +0000 Date: Sun, 23 Sep 2007 13:07:57 +0000 From: Ghirai To: Dmitry Gorbik Message-Id: <20070923130757.71173297.ghirai@ghirai.com> In-Reply-To: <20070923115914.bf06378b.e@recolon.ru> References: <20070923002923.92db3efd.ghirai@ghirai.com> <20070923115914.bf06378b.e@recolon.ru> 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: Cc: freebsd-questions@freebsd.org Subject: Re: 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: Sun, 23 Sep 2007 10:08:28 -0000 On Sun, 23 Sep 2007 11:59:14 +0400 Dmitry Gorbik wrote: > You can start gdb session like this: > $gdb program > break main > set disassembly-flavor intel > disassemble main > > Now you can use "nexti" to run program till break & "next" will step one instruction (if there were no debugging symbols". That was tested on a program, compiled with nasm. Thanks for the info :) -- Regards, Ghirai.