From patchwork Wed Oct 14 11:14:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: henrik.wallin@windriver.com X-Patchwork-Id: 9101 Received: (qmail 74484 invoked by alias); 14 Oct 2015 11:14:41 -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 69799 invoked by uid 89); 14 Oct 2015 11:14:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=AWL, BAYES_05, KAM_LAZY_DOMAIN_SECURITY, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mail.windriver.com Received: from mail.windriver.com (HELO mail.windriver.com) (147.11.1.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 14 Oct 2015 11:14:36 +0000 Received: from arn-build2.wrs.com (arn-build2.wrs.com [128.224.95.15]) by mail.windriver.com (8.15.2/8.15.1) with ESMTP id t9EBEYMt010700 for ; Wed, 14 Oct 2015 04:14:34 -0700 (PDT) Received: by arn-build2.wrs.com (Postfix, from userid 18580) id CFF6822073D; Wed, 14 Oct 2015 13:14:33 +0200 (CEST) From: henrik.wallin@windriver.com To: gdb-patches@sourceware.org Subject: [RFC][PATCH 02/15] Fix internal error when saving fast tracepoint definitions Date: Wed, 14 Oct 2015 13:14:20 +0200 Message-Id: <56c885a8de03c9679e8fd2208e3b6c6f8df12dfa.1444820235.git.henrik.wallin@windriver.com> In-Reply-To: References: In-Reply-To: References: From: Par Olsson When trying to save fast tracepoints to file, gdb returns internal failure: gdb/breakpoint.c:13446: internal-error: unhandled tracepoint type 27 A problem internal to GDB has been detected, further debugging may prove unreliable. And no file including the fast tracepoints definition is created. gdb/ChangeLog: * breakpoint.c (tracepoint_print_recreate): Fix logic error if -> else if. Signed-off-by: Par Olsson Signed-off-by: Henrik Wallin --- gdb/breakpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 2c901ff5f2fe..106464888500 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -13423,7 +13423,7 @@ tracepoint_print_recreate (struct breakpoint *self, struct ui_file *fp) if (self->type == bp_fast_tracepoint) fprintf_unfiltered (fp, "ftrace"); - if (self->type == bp_static_tracepoint) + else if (self->type == bp_static_tracepoint) fprintf_unfiltered (fp, "strace"); else if (self->type == bp_tracepoint) fprintf_unfiltered (fp, "trace");