From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16430 invoked by alias); 25 Feb 2014 15:55:34 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 16418 invoked by uid 89); 25 Feb 2014 15:55:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,UNWANTED_LANGUAGE_BODY autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 25 Feb 2014 15:55:31 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1WIKLw-0001jH-Bm from Hui_Zhu@mentor.com for gdb-patches@sourceware.org; Tue, 25 Feb 2014 07:55:28 -0800 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Tue, 25 Feb 2014 07:55:28 -0800 Received: from localhost.localdomain (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.2.247.3; Tue, 25 Feb 2014 07:55:27 -0800 Message-ID: <530CBCED.3000200@mentor.com> Date: Tue, 25 Feb 2014 15:55:00 -0000 From: Hui Zhu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: gdb-patches ml Subject: [OB PATCH] target.h (to_traceframe_info): Fix TARGET_DEFAULT_RETURN Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00752.txt.bz2 Hi. make-target-delegates target.h >target-delegates.c git diff target-delegates.c diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c index 5b27b59..fdea5d6 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -1297,7 +1297,7 @@ delegate_traceframe_info (struct target_ops *self) static struct traceframe_info * tdefault_traceframe_info (struct target_ops *self) { - return NULL; + return tcomplain (); } Committed as obvious. Thanks, Hui 2014-02-25 Hui Zhu * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of to_traceframe_info. diff --git a/gdb/target.h b/gdb/target.h index db248a8..7ce66c1 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -976,7 +976,7 @@ struct target_ops higher layers take care of caching, invalidating, and re-fetching when necessary. */ struct traceframe_info *(*to_traceframe_info) (struct target_ops *) - TARGET_DEFAULT_RETURN (tcomplain ()); + TARGET_DEFAULT_RETURN (NULL); /* Ask the target to use or not to use agent according to USE. Return 1 successful, 0 otherwise. */