From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5766 invoked by alias); 18 Aug 2019 04:16:16 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 5661 invoked by uid 89); 18 Aug 2019 04:16:02 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=HCc:U*gdb X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 18 Aug 2019 04:16:00 +0000 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C477B106E961; Sun, 18 Aug 2019 04:15:59 +0000 (UTC) Received: from host1.jankratochvil.net (ovpn-117-1.ams2.redhat.com [10.36.117.1]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0E78C196AE; Sun, 18 Aug 2019 04:15:58 +0000 (UTC) Date: Sun, 18 Aug 2019 04:16:00 -0000 From: Jan Kratochvil To: William Tambe Cc: gdb@sourceware.org Subject: Re: gdb command "next" wrongly working as command "step" Message-ID: <20190818041556.GA11323@host1.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-SW-Source: 2019-08/txt/msg00021.txt.bz2 On Sun, 18 Aug 2019 05:36:34 +0200, William Tambe wrote: > I having an issue where the gdb command "next" wrongly work as the > command "step", in that it will step-into functions instead of > stepping-over functions. > > To support single stepping I have implemnted set_gdbarch_software_single_step(). > > Is there another function that I need to implement to support > stepping-over functions ? "next" needs properly implemented backtrace/unwinding so that can it can do "finish" when "next" detects it stepped into a function. Jan