From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#6097: 23.1; PDB should pop "up" the stack on return Date: Fri, 13 Sep 2019 13:38:26 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="9363"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 6097@debbugs.gnu.org To: David Abrahams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 13 13:39:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i8juw-0002LS-Vn for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Sep 2019 13:39:11 +0200 Original-Received: from localhost ([::1]:42650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i8juv-00060D-Qf for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Sep 2019 07:39:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46894) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i8jup-000602-BI for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2019 07:39:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i8juo-00081H-Dj for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2019 07:39:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35630) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i8juo-000819-Ad for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2019 07:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i8juo-0005YD-7A for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2019 07:39:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Sep 2019 11:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6097 X-GNU-PR-Package: emacs Original-Received: via spool by 6097-submit@debbugs.gnu.org id=B6097.156837472521309 (code B ref 6097); Fri, 13 Sep 2019 11:39:02 +0000 Original-Received: (at 6097) by debbugs.gnu.org; 13 Sep 2019 11:38:45 +0000 Original-Received: from localhost ([127.0.0.1]:44450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i8juX-0005Xd-2k for submit@debbugs.gnu.org; Fri, 13 Sep 2019 07:38:45 -0400 Original-Received: from mail-pf1-f172.google.com ([209.85.210.172]:42802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i8juU-0005XP-Vg for 6097@debbugs.gnu.org; Fri, 13 Sep 2019 07:38:43 -0400 Original-Received: by mail-pf1-f172.google.com with SMTP id w22so17911789pfi.9 for <6097@debbugs.gnu.org>; Fri, 13 Sep 2019 04:38:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=4PXWSMPbJDDprSlXikO5xbf5QX8dQthWl5kTRTOzJz4=; b=YSa8LqzzSck1IB5H0JMhM4rvEtSpDO1pbr6nUsfhj5qJ8Nen7h8B1q/9cqgYLXGh+u VzpoupCPoqYKkiMvu2bbpRoebdqTjtCK+Gypsw4fvw/qERIyx0gqG7KIia/AFsV+cOkb J/PiAs53950qO/sS8v7raPlJe5Fx2HbkNHX4WNBgQ2HGsupWpxBGE5j/4ZY/lOBk2/IM MSm6fhdBb7F86JHvzrBpf3yTAzu64Vkyhe0bGDLt4LuFPRDsO5KB2W//l5WoYdyXDCs+ ZY/J93IwGmWFm0YO2/q53GaClCeyJKMWwvjBvc4LvwLiD8qo9in1hgyOH5T/gFF6yOtW rn1Q== X-Gm-Message-State: APjAAAWfr0T+WmoO9eVWUmruOF6kGGsrJxWADIlDcnipX3AF6OK+be28 r/HeceQNDJu3UeCAe0S709MXrxS1xkBo3oALGFT8DnZu X-Google-Smtp-Source: APXvYqw9XjUDe4dd0vgbA9bZyI9Llcrl9fVzfmlQXekzN/mEAngUIcohJA4Mcnsr55exQG1gXKWpRRZlSGCqfiuSiSg= X-Received: by 2002:a63:ef4d:: with SMTP id c13mr6725674pgk.200.1568374717001; Fri, 13 Sep 2019 04:38:37 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166393 Archived-At: David Abrahams writes: > 1) Debug a python program using PDB, say > > def g(): > pass > > def h(): > pass > > def f(): > g() > h() > > 2) step into g() > 3) hit `n' until you see > > --Return-- > > in the *gud* buffer > > 4) Note that the GUD line marker is still pointing at the last line of g, > just as it was before the last `n' > > 5) Hit `n' again. Note that the GUD line marker is now pointing at > the first line of h() > > It would be more consistent and easier to use if, at step 4, the line > marker indicated the 3rd line of f(), i.e. the call to h() I'm not exactly sure what you are requesting here. To determine what line to jump to, pdb is parsing lines such as: > /home/skangas/foo.py(2)g()->None ^ > /home/skangas/foo.py(9)f() ^ This works as expected on the latest master branch. I'm not sure how we could do better here, unless pdb changes it's output. I'm therefore leaning towards closing this as notabug. Please clarify if there is something I'm missing. Best regards, Stefan Kangas