From patchwork Thu Sep 25 15:53:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 2973 Received: (qmail 2051 invoked by alias); 25 Sep 2014 15:53:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 1994 invoked by uid 89); 25 Sep 2014 15:53:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 25 Sep 2014 15:53:30 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8PFrTQH023690 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 25 Sep 2014 11:53:29 -0400 Received: from brno.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s8PFrRF7010436 for ; Thu, 25 Sep 2014 11:53:28 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [pushed] breakpoint.c: debug output when we skip inserting a breakpoint Date: Thu, 25 Sep 2014 16:53:27 +0100 Message-Id: <1411660407-23920-1-git-send-email-palves@redhat.com> gdb/ 2014-09-25 Pedro Alves * breakpoint.c (should_be_inserted): Add debug output. --- gdb/ChangeLog | 4 ++++ gdb/breakpoint.c | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 20a8a8b..a191b62 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2014-09-25 Pedro Alves + * breakpoint.c (should_be_inserted): Add debug output. + +2014-09-25 Pedro Alves + * infrun.c (stepping_past_instruction_at) (clear_exit_convenience_vars): Point at infrun.h instead of inferior.h. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 3675b4f..bec7f68 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -2201,7 +2201,16 @@ should_be_inserted (struct bp_location *bl) || bl->loc_type == bp_loc_hardware_breakpoint) && stepping_past_instruction_at (bl->pspace->aspace, bl->address)) - return 0; + { + if (debug_infrun) + { + fprintf_unfiltered (gdb_stdlog, + "infrun: skipping breakpoint: " + "stepping past insn at: %s\n", + paddress (bl->gdbarch, bl->address)); + } + return 0; + } return 1; }