From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16465 invoked by alias); 21 Apr 2012 11:07:28 -0000 Received: (qmail 16456 invoked by uid 22791); 21 Apr 2012 11:07:26 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-lpp01m010-f41.google.com (HELO mail-lpp01m010-f41.google.com) (209.85.215.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 21 Apr 2012 11:06:50 +0000 Received: by lagz14 with SMTP id z14so9002891lag.0 for ; Sat, 21 Apr 2012 04:06:49 -0700 (PDT) Received: by 10.112.99.198 with SMTP id es6mr4294381lbb.66.1335006409364; Sat, 21 Apr 2012 04:06:49 -0700 (PDT) Received: from il.localnet ([178.70.137.58]) by mx.google.com with ESMTPS id fe6sm11009542lbb.9.2012.04.21.04.06.47 (version=SSLv3 cipher=OTHER); Sat, 21 Apr 2012 04:06:48 -0700 (PDT) Date: Sat, 21 Apr 2012 11:07:00 -0000 From: Ilya Basin Reply-To: Ilya Basin Message-ID: <1224346844.20120421150636@gmail.com> To: gdb@sourceware.org Subject: feature request: set step-mode smart MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 X-SW-Source: 2012-04/txt/msg00169.txt.bz2 Hi! Sometimes you need to step into a function that is called via a jump table. In this case gdb behaves inconveniently: Either you leave default step-mode and gdb can't step into that function or you set step-mode on and gdb will step into all functions without sources. I think, gdb should try to stepi a fixed number of instructions (~100) searching for a code line and if not found, step out.